Why don't you just hide/show each layer as need be..
far simpler than scrolling a large frame
----- Original Message ----- 
From: "szyslak" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 20, 2001 5:58 AM
Subject: [Dynapi-Dev] offsetWidth : why won't work?


> I'm working with my customized/reduced version of DynAPI. Currently
> when I create a dynlayer for NS6 (or compatible) browser I do the
> following to get its inner width (I mean the width of its contents):
> 
>   this.css.height = this.css.width = 'auto';
>   this.w = this.elm.offsetWidth;
>   this.h = this.elm.offsetHeight;
> 
> This is basically the same as getContentWidth function does. The
> problem is that NS6 reports stranges values. Sometimes it works,
> sometimes it doesn't. Especifically I'm working with a frame wich is
> larger than the browser width so I scroll it dinamically when
> pressing a link. That is, like having 3 pages in one screen; the
> browser window is resized to 780px and inside of it I load a 3-frames
> frameset. The second frame contains a document of 3*780px width and
> when I click on the links of the upper frame this frame gets
> scrolled. The layer I'm trying to get the width is in the second
> "page". When I use this page standind alone offsetWidth returns 90px
> (althought the content width of the layer is 210px) but when using
> the page in the frameset this way I get a value of 0px.
> 
> I read the faq and noticed this bug is known and recommended to use a
> setTimeout. I've tried it but don't know exactly how to do it. Has
> been this problem resolved in DynAPI? if yes how?
> 
> Thanks in advance
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1
> 
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://www.mail-archive.com/[email protected]/
> 


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[email protected]/

Reply via email to