Topic awaiting preservation: Javascript problem in Firefox (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: iasi, romania |
posted 10-12-2004 08:55
Hi... |
Nervous Wreck (II) Inmate From: UK |
posted 10-12-2004 15:29
I can't see anything obvious, but I'd be suspicious of those eval() statements - because they're interpreting javascript as they go, certain optimisations like preloading images are likely to be missed. A line such as code: eval("document.images." + imag + ".src='images/but2" + imag + ".jpg'");
code: document.images[imag].src='images/but2' + imag + '.jpg'; |
Bipolar (III) Inmate From: Umeå, Sweden |
posted 10-12-2004 15:37
The error seems to me to occur when you are loading files from the server. It could be that the server sends the images without closing the connection. However, that code is junk. Let's see if we can't create something better. code: <img Also, change the hover layers to be named image id + '_hover' consistently, to make the scripting smoother. code: window.onload=function(){
code: var
|