Hvorfor virker det ikke i IE 3og 5 men i 4,0
Jeg har et script som fungerer i IE 4.0 men ikke ellers.<script LANGUAGE="JavaScript">
var rotatepict = new Array("bild0.jpg","bild1.jpg","bild2.jpg","bild3.jpg","bild4.jpg","bild5.jpg","bild6.jpg","bild7.jpg")
var pict = 0
var antal = 8
function rot() {
if (document.images) {
pict++
if (pict == antal) {
pict = 0
}
document.rotate.src=rotatepict[pict]
setTimeout("rot()", 20 * 1000)
}
}
// end of comment -->
</script>
God ide til en løsning søges
