Preserved Topic: Netscape resize error |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: Melbourne, Australia |
posted 05-24-2000 07:33
I am having troubles when the window is resized in NN. I have a script which move, shows & hides layers but when the window is resized, it stops working.<P>I remember reading about a NN resize script here some time ago but cannot find it. Can someone help me?<P>http://go.to/hass |
Maniac (V) Inmate From: under the bed |
posted 05-24-2000 07:42
yes, I posted the same question some time ago (it should be in the dhtml/javascript archive), but never really got much of an answer. I know Doc himself has a script which helps, but it didn't actually fix anything for me. All I can say is, warn netscape users to reload if they resize....<P>What care I how time advances? I am drinking Ale today. -- Edgar Allen Poe |
Bipolar (III) Inmate From: Midlothian, VA USA |
posted 05-24-2000 15:09
I use this this code in my pages and unless I missed something while copying and pasting it into here it should work for you guys. Make sure that you put onLoad="init()" in your <body> tag. I know it seems like a lot of code and there is probably another way, but this one's tried, trued, and tested...<P><script language="JavaScript"> |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 05-24-2000 17:20
Funny, I just saw a tip about this from Doc Javascript over at Webreference.com. I just looked again and can't find it, but look around yourself at http://www.webreference.com/js/ |
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
posted 05-25-2000 01:04
I'll tell you, I'm skeptical. I've tried this code and others, and written my own, and here's what appears to happen. When Netscape reszes the window, it doesn't process the styles or javascripts on the page. The script detects the width of the window, and if it changes, it reloads. But! The script wasn't recognized the second time around, and the script that's checking things doesn't work anymore, what will probably happen? Nothing at all, in my experience. YMMV.<P><IMG SRC="http://www.ozones.com/forum/siggie.gif" border=0> |
Maniac (V) Inmate From: under the bed |
posted 05-25-2000 06:15
YMMV????<P>------------<P>:::What care I how time advances? I am drinking Ale today. -- Edgar Allen Poe::: |
Nervous Wreck (II) Inmate From: Melbourne, Australia |
posted 05-25-2000 06:15
Thankyou all for your quick responses. I guess I am not the only person who has experienced this Netscape problem. That is an interesting piece of code eedn. I found this over at www.dynamicdrive.com attached to most of their scripts.<P><BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre>if (document.layers) { |
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
posted 05-25-2000 08:53
var YMMV = "Your Mileage May Vary"; |