mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Added the test for clearTimeout.
This commit is contained in:
parent
e7386bcd3c
commit
e0dfe13be2
21
test/ecmascript/clearTimeout.html
Normal file
21
test/ecmascript/clearTimeout.html
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user