PDA

Click to See Complete Forum and Search --> : Please take a look at my code


QWERTY
Nov 27th, 2001, 07:50 PM
I have a web page that works just perfect in IE and NS 6. But the problem I have is with NS 4. At the beginning the page contains only one screen worth of content. But as the user gets deeper and deeper into it, the page gets longer and longer (by dynamically changing the layer tag). The thing is that at the very end of the execution of the script (which I won't include here because it uses many external files + I don't think it's necessary for this problem), the page gets very long, but unfortunately NS 4 won't add vertical scroll bar when needed (and there is no way to scroll anything at all). So the question is how to force NS 4 to add vertical scroll bar whether the page needs it or not, so my visitors will be able to see the entire content of the page not only one screen. I tried to initially resize the layer (dvQ) to 5000 so it would force the scrollbar to appear, but when the user resizes the window, the scrollbars disappear, so obviously it doesn't work. I have no more ideas how to force that stupid browser to recognize the need for scrollbars. Thanks for help

Q

P.S. I was getting lots of comments before that NS doesn't support div tag (which appear in my code) - I know that it doesn't that's why I have the layer tags as well (which makes it work in both NS and IE), so in other words there is no need to change div tags, since NS 4 won't recognize them anyways. Just a thought :)

Thanks again

crptcblade
Nov 27th, 2001, 08:16 PM
well, you could add a sh*t load of <br/> tags at the very bottom. That will make the browser able to scroll up/down.

:)

VBSpike
Nov 28th, 2001, 02:16 AM
or you could put in another layer tag and set its top property to something really big like

<layer name="dummy" top=5000></layer>

if you put that code somewhere on your page, it will force Netscape 4 to put scrollbars (which unfortunately will go all the way down to the second layer - very long scroll). The nice thing about it is that it won't affect IE or NS6's output at all.

HTH

Spike