I have a static HTML page, into one layer of which I am pouring content
(text with some simple HTML formatting) taken from a MySQL database,
courtesy of PHP. Simple stuff, really.
Except for that NS4 resize bug. Netscape 4 is determined to throw the layer positioning
out the window , thus scrambling the screen.
I know what you're thinking: use the venerable Netscape Resize Fix script. Get this, the script is already there. The bug doesn't happen upon resizing
the window, it happens upon loading the window. In other words, the first
time you load the page, the screen looks horrible. After you resize,
everything works fine.
Examples:
http://geedev.com/evolt/zaid.php
The orignal problem file, with some
hand-tweaked scripting for liquid layout.
http://geedev.com/evolt/zeam.php
Same idea, but with my customized script
replaced by Dreamweaver's ugly yet commonplace version of the Resize Fix.
http://geedev.com/evolt/zaidSOURCE.htm
View source to see the PHP
scripting.
The questions: What is going on? How can it be fixed?
My theory: The static elements of the page, including
the resize fix scripting, is loading up and NS4 establishes the window
thinking all content fits inside. But then PHP adds the dynamic content,
which is more than will fit in the window, and NS4 throws in a scroll bar.
This counts as a resize in NS4 's head, so it throws out the CSS styles per
the bug. But since it is not an actual resize of the window, the script
does not fire to correct it.
What does the jury think? If the theory is correct that mean the solution
lies within PHP? What would it be? TIA