The modified script here is just about what you need, just add this line:
Code:
setTimeout("stop_leaves();", 1000)
after this one at the end of the script:
1000 is the number of milliseconds the effect will last.
And, get rid of this line:
Code:
document.getElementById('stpbut').value='Start Leaves';
and this button:
HTML Code:
<form>
<input id="stpbut" type="button" value="Stop Leaves" onClick="stop_leaves();">
</form>
Oh, you can get rid of this bit too:
Code:
if (parent.location.href==location.href)
document.write(parent.location.href)
if(-1 != document.URL.indexOf('leaves'))
document.write('<br>'+document.URL)
and this:
Code:
onload="if(window.parent.resize){window.parent.resize('fred',100,450,500)}"
from the body tag.
Bookmarks