From the Firefox Error Console (Tools > Error Console):
Code:
Error: document.getElementById("dot" + i) is null
Source File: http://users.skynet.be/osty/scootervrienden/
Line: 618
For some reason, lines 598-602 apparently have no effect, although they are running (according to Firebug).
Code:
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.
Bookmarks