Skip to content

Instantly share code, notes, and snippets.

@DimitarChristoff
Created May 23, 2011 21:21
Show Gist options
  • Save DimitarChristoff/987647 to your computer and use it in GitHub Desktop.
Save DimitarChristoff/987647 to your computer and use it in GitHub Desktop.
my oldest javascript i could find
<script>
var Vpos = document.body.clientHeight - 100;
function Video(){
Vpos = Vpos - 10;
document.all.EF.style.top = Vpos;
if (Vpos < -100){
Vpos = document.body.clientHeight -100;
document.all.EF.style.top = -100;
window.clearInterval(VEF);
window.setTimeout('StartVideo()', Math.random()*10000);
}
}
function StartVideo(){
VEF = window.setInterval('Video()',10);
}
window.setTimeout('StartVideo()', Math.random()*10000);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment