Everything that is done in DynAPI.onLoad can also be done in DynAPI.onResize. Yes its another event, but you don't need to add an eventlistener for that, cause these methods are inherited to the DynAPI object from the (browser) window itself, so its already there. You just use it as another DynAPI.onload function ie
DynAPI.onResize = function() { // whatever you want to do goes in here } One isssue that might ariese in NS4 I think is that the DynLayer isn't created or position not set on resize, so might want to make sure of that if you stumble ino anything... Good luck with it! Henrik Våglin [ [EMAIL PROTECTED] ] BTW I still use tables when it comes to simple layouts that doesn't require special features myself. IE render it perfectly well on its own in realtime, and NS does its best too ;) ----- Original Message ----- From: "Chun Wah Chan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 15, 2001 3:09 PM Subject: [Dynapi-Help] keep layer center when resize! > Hi all: > > I've made a layer center to the DynAPI.document layer > by using one of the tutorial on the web, however, it > doesn't center when I tried to resize the window? > > I notice that there is a addEventListener method for > the DynDocument object, but do I really need to add an > eventListener to the DybDocument if I need to center a > layer in it? or i can modify some code in the > Dyndocument object? > > Thanks in advance! > > Herman > > _______________________________________________________ > Build your own website in minutes and for free at http://ca.geocities.com > > _______________________________________________ > Dynapi-Help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/dynapi-help _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help