View Full Version : Snow effect working in E5+ and not in FF
ostcalling
10-13-2008, 12:26 PM
Hi,
I copy paste the snow effect from Dynamics Drive Forums in my webpage.
This is working fine if viewed with explorer but not with firefox.
What do I have to do?
Thanks
webpage is
www.westvlaamsescootervrienden.be
Regards
Alain
Jesdisciple
10-14-2008, 06:10 PM
From the Firefox Error Console (Tools > Error Console):
Error: document.getElementById("dot" + i) is null
Source File: http://users.skynet.be/osty/scootervrienden/
Line: 618For some reason, lines 598-602 apparently have no effect, although they are running (according to Firebug).
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
}By the way, I'm suspicious of using the same id attribute value in multiple elements. I think it should be name.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.