Skip to content

Instantly share code, notes, and snippets.

Created November 6, 2011 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/1343297 to your computer and use it in GitHub Desktop.
Save anonymous/1343297 to your computer and use it in GitHub Desktop.
WaitiGer - autoscroll
<script type = "text/javascript" >
var x;
function autoscroll(){
self.scrollBy(0,x)
}
function playautoscroll(){
x = 1;
setInterval('autoscroll()',10.01);
stop();}
function onetozero(){
x=0;
}
function stop(){
setTimeout ("onetozero()",12000);
}
function Func1Delay()
{
setTimeout("playautoscroll()", 3000);
}
window.onload=Func1Delay
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment