1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
elinks/test/ecmascript/scroll3.html
2021-11-12 21:53:31 +01:00

18 lines
476 B
HTML

<head>
<script>
var tekst = ' ELinks';
function scrollText() {
var znak = tekst.charAt(0);
tekst = tekst.substring(1, tekst.length) + znak;
return '<pre>' + tekst.substring(0, 80) + '</pre>';
}
function scroll() {
document.getElementById('s').innerHTML = scrollText();
window.setTimeout(scroll, 100);
}
</script>
</head>
<body onload="scroll()">
<div id="s"></div>
</body>