On the external page(s) change this:
Code:
setTimeout("rotate_content()",delay)
to this:
Code:
rotateT=setTimeout("rotate_content()",delay)
Add this variable:
after this:
Code:
var ie4=document.all
Add this function:
Code:
function stopThis(){
clearTimeout(rotateT);
}
right before this:
Code:
window.onload=rotate_content
Now on the containing page, put this in the head:
Code:
<script type="text/javascript">
function stopTic(){
window.tic1.stopThis();
window.tic2.stopThis();
window.tic3.stopThis();
}
function startTic(){
window.tic1.rotate_content();
window.tic2.rotate_content();
window.tic3.rotate_content();
}
</script>
and name each iframe tic1, tic2 and tic3 - ex:
HTML Code:
<iframe name="tic1" id="tickermain1" src="external.htm" width=150 height=120 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=1 scrolling=no></iframe>
Use these two buttons to start and stop:
HTML Code:
<input id="stop" type="button" value="Stop" onclick="stopTic();document.getElementById('start').disabled=0">
<input id="start" type="button" disabled value="Start" onclick="startTic();this.disabled=1">
Bookmarks