Forum Moderators: open
<HTML>
<HEAD>
<TITLE>screen saver slide show</TITLE>
<SCRIPT>
var intCount=2
function RotateImages()
{
}
function StartTrans()
{
setInterval("RotateImages()", 1000);
}
</SCRIPT>
</HEAD>
<BODY onLoad="StartTrans();">
<IMG SRC="Picture001.jpg" ID=Img1 BORDER=1 WIDTH=100% Height=100% STYLE="visibility: visible; filter: revealTrans(Duration=20, Transition=12)">
</BODY>
</HTML>
<!--
This file retrieved from the JS-Examples archives
[js-examples.com...]
100s of free ready to use scripts, tutorials, forums.
Author: JS-Examples - [js-examples.com...]
-->
<script>
var n=0;
var a=null;
var imgs = new Array();
imgs[0] = new Image(); imgs[0].src = "pic1.gif";
imgs[1] = new Image(); imgs[1].src = "pic2.gif";
imgs[2] = new Image(); imgs[2].src = "pic3.gif";
function rotate(){
n=(n+1)%3;
document.p1.src=imgs[n].src;
if(a==null)a=setInterval("rotate()",300);
}
</script>
<img name=p1 width=25 height=25 src="pic4.gif">
This would negate the use of your second function calling the interval.
HTH