mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Test case for scroll. Scrolling currently only works with SEE.
TODO: window.status and SpiderMonkey setTimeout.
This commit is contained in:
parent
cc4d02b0ae
commit
31729c7c59
14
test/ecmascript/scroll.html
Normal file
14
test/ecmascript/scroll.html
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<body onload="scroll()">
|
||||||
|
<script>
|
||||||
|
var tekst = ' ELinks';
|
||||||
|
function scrollText() {
|
||||||
|
var znak = tekst.charAt(0);
|
||||||
|
tekst = tekst.substring(1, tekst.length) + znak;
|
||||||
|
return tekst.substring(0, 80);
|
||||||
|
}
|
||||||
|
function scroll () {
|
||||||
|
document.title = scrollText();
|
||||||
|
setTimeout("scroll()", 100);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
Loading…
x
Reference in New Issue
Block a user