Created
May 23, 2011 21:21
-
-
Save DimitarChristoff/987647 to your computer and use it in GitHub Desktop.
my oldest javascript i could find
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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