Есть скрипт эффект меняющегося фото вот код:
<html>
<head>
<title></title>
<script language=javaScript>
<!-- Beginning of JavaScript -
sandra0 = new Image();
sandra0.src = "sandraaa0.jpg";
sandra1 = new Image();
sandra1.src = "sandraaa1.jpg";
sandra2 = new Image();
sandra2.src = "sandraaa2.jpg";
var i_strngth=1
var i_image=0
var imageurl = new Array()
imageurl[0] ="sandraaa0.jpg"
imageurl[1] ="sandraaa1.jpg"
imageurl[2] ="sandraaa2.jpg"
function showimage() {
if(document.all) {
if (i_strngth <=110) {
testimage.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+imageurl[i_image]+" border=0>";
i_strngth=i_strngth+10
var timer=setTimeout("showimage()",100)
}
else {
clearTimeout(timer)
var timer=setTimeout("hideimage()",1000)
}
}
if(document.layers) {
clearTimeout(timer)
document.testimage.document.write("<img src="+imageurl[i_image]+" border=0>")
document.close()
i_image++
if (i_image >= imageurl.length) {i_image=0}
var timer=setTimeout("showimage()",2000)
}
}
function hideimage() {
if (i_strngth >=-10) {
testimage.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+imageurl[i_image]+" border=0>";
i_strngth=i_strngth-10
var timer=setTimeout("hideimage()",100)
}
else {
clearTimeout(timer)
i_image++
if (i_image >= imageurl.length) {i_image=0}
i_strngth=1
var timer=setTimeout("showimage()",500)
}
}
// - End of JavaScript - -->
</script>
</head>
<body bgcolor="#737994" text="#FFFFFF" link="#FFFFFF" topmargin="0" leftmargin="0" onLoad="showimage()">
<div id="mainbod" style="position:absolute;visibility:visible;top:50px;left:360px;"></div>
<div id="testimage" style="position:absolute;visibility:visible;top:50px;left:40px"></div>
</body>
</html>
Данный скрипт не работает в Мозилле! Кто-нибудь знает почему?