F
Fox
Hi there!
I'm new on the group
I recently started to learn JavaScript, and I have a really weird
problem...
The script below (a simple slideshow) is working okay in both IE and
FireFox, but in Opera it displays only the first image.... I would
like to make it working on any browsers, I already tried many
variations, but it is still not working in Opera (I am using Opera
9.23 build 660 on Linux).
<HTML>
<HEAD>
</HEAD>
<BODY>
<DIV NAME=Photo>
<IMG SRC=snap1.png BORDER=1 WIDTH=512 HEIGHT=448>
</DIV>
<script>
i=2
function NextImg(){
if(i>2)i=1
document.all["Photo"].innerHTML="<IMG SRC=snap"+i+".png
BORDER=1 WIDTH=512 HEIGHT=448>"
i++
}
setInterval("NextImg()",4000)
</script>
</BODY>
</HTML>
Have anybody already seen such trouble with Opera?
Best regards,
Mateusz Viste
I'm new on the group
I recently started to learn JavaScript, and I have a really weird
problem...
The script below (a simple slideshow) is working okay in both IE and
FireFox, but in Opera it displays only the first image.... I would
like to make it working on any browsers, I already tried many
variations, but it is still not working in Opera (I am using Opera
9.23 build 660 on Linux).
<HTML>
<HEAD>
</HEAD>
<BODY>
<DIV NAME=Photo>
<IMG SRC=snap1.png BORDER=1 WIDTH=512 HEIGHT=448>
</DIV>
<script>
i=2
function NextImg(){
if(i>2)i=1
document.all["Photo"].innerHTML="<IMG SRC=snap"+i+".png
BORDER=1 WIDTH=512 HEIGHT=448>"
i++
}
setInterval("NextImg()",4000)
</script>
</BODY>
</HTML>
Have anybody already seen such trouble with Opera?
Best regards,
Mateusz Viste