Skip to content

Instantly share code, notes, and snippets.

@tubbo
Forked from anonymous/gist:1343297
Created November 6, 2011 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tubbo/1343302 to your computer and use it in GitHub Desktop.
Save tubbo/1343302 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(function() { autoscroll(); },10.01);
stop();}
function onetozero(){
x=0;
}
function stop(){
setTimeout (function() { onetozero(); },12000);
}
function Func1Delay()
{
setTimeout(function() { playautoscroll(); }, 3000);
}
window.onload=Func1Delay
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment