1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

Added the test for clearTimeout.

This commit is contained in:
Witold Filipczyk 2007-09-22 18:45:49 +02:00 committed by Witold Filipczyk
parent e7386bcd3c
commit e0dfe13be2

View File

@ -0,0 +1,21 @@
<body onload="scroll()">
<script>
var tekst = ' ELinks';
var b;
function scrollText() {
var znak = tekst.charAt(0);
tekst = tekst.substring(1, tekst.length) + znak;
return tekst.substring(0, 80);
}
function scroll() {
var t = scrollText();
//window.alert(t);
document.title = t;
clearTimeout(b);
b = window.setTimeout("scroll()", 100);
}
b = window.setTimeout("scroll()", 100);
</script>
</body>