|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can anyone help me with this problem. Everytime I resize NETSCAPE, the layers on my page DISAPPEAR!!!
Thanks in Advance, ecastanedo [This message has been edited by ecastanedo (edited April 13, 2000).] |
|
#2
|
|||
|
|||
|
try adding this to your body tag:
<body onResize="window.reload();"> Spookster |
|
#3
|
||||
|
||||
|
although this will still cause errors in most NS versions as it will relaod the page several times for no apparant reason - so try
function (NSized){ function resized(){ if(pageWidth!=innerWidth | | pageHeight!=innerHeight){ location.reload() } } if(document.layers){ pageWidth=innerWidth pageHeight=innerHeight window.onresize=resized }} and stick onload="NSized" in your body tag eeeeerrrr + note document.layers soon to be useless. ------------------ Simon Wheeler FirePages -DHTML/PHP/MySQL |
|
#4
|
||||
|
||||
|
ooooopps "NSized()" !!!!
|
|
#5
|
|||
|
|||
|
I'm finding out that the problem runs a little deeper than I thought.
I am responsible for taking content from one page and making it work on another. The code that I am using was created by someone else and happens to work fine on a remote site, i.e., the original code does not make the layers disappear when the browser is resized. It isn't until I copy the code from the other site and place it on our server that I get these problems with the layers. Maybe the problem has to do with the servers we use, which run Java Server Pages, but that doesn't make sense since the browser is what actually interprets the code. In all, this problem is becoming more of a problem only because there is no difference between the code on the remote site and the code on our site. The only difference is that the layers on our page disappear in Netscape when we are running the code on our servers. Whew... I'm done. Thanks in advance for anyone who can help with this... ecastanedo [This message has been edited by ecastanedo (edited April 14, 2000).] |
|
#6
|
|||
|
|||
|
There's no problem with your code... this is actually a known bug with Netscape 4.xx. Resizing a window trashes layers.
I would suggest using Firepages' code, as Spookster's will refresh the page anytime the window is resized, whereas Firepages' will only refresh it if the page is actually resized (as opposed to just clicking the resize tab) If you happen to use Dreamweaver 3, under Commands there is actually an "Add/Remove Netscape Resize fix", which basically adds or removes the same code. |
|
#7
|
|||
|
|||
|
It's worth noting that any page that relies on layers won't work on Netscape 6.0.
|
|
#8
|
|||
|
|||
|
Even with a javascript function that corrects it (like Firepages' one) there's still one reason that (sometimes) can make the layers dissapear: When the page is inside a frameset. In this case, you have to move the function to the frames page.
|
|
#9
|
||||
|
||||
|
layers and nested layers will and do work in Netscape6 using layered DIV /DIV's . Netscapes very own <layer> tag will not be supported, it is just a lot of sites test for Netscape using the if(document.layers) sniffer which will be redundant in NS6 which was always a bad idea(I use it all the time !) but whoever thought that NS would throw it away? - NS6 even does IE only mouseovers! hmmmmmmmmmm.
Simon ------------------ Simon Wheeler FirePages -DHTML/PHP/MySQL |
|
#10
|
|||
|
|||
|
Thanks everyone for your replies. I just figure out the problem. Netscape being very picky, I realized that I was missing a closing </td> tage in my code. That completely threw everything off. Layer and Netscape are extremely fussy when you happen to miss something like that...
|
|
#11
|
|||
|
|||
|
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Argrajoca:
Even with a javascript function that corrects it (like Firepages' one) there's still one reason that (sometimes) can make the layers dissapear: When the page is inside a frameset. In this case, you have to move the function to the frames page. [/quote] I have a fairly standard page, with a frame each for navigation and content. The nav. frame uses layers, which get broken by this NS bug, and the various fixes on here and elsewhere don't work, so I guessed and put onResize="top.navbanner.location.reload();" somewhere in the frameset taf of frames-index.html. Works fine now ! [This message has been edited by Falken (edited June 28, 2000).] [This message has been edited by Falken (edited June 28, 2000).] |
|
#12
|
|||
|
|||
|
Netscape6 seems to abort when it encounters the javascript line:
var i = new Layer(0); whereas ie5 and earlier versions of netscape are o.k. Is this due to the fact that the layer tag is no longer used in netscape 6. How do I get around this problem. Roger |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Keeping a Layer After a Browser Resize |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|