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-07-17 19:03:51 +02:00

18 lines
469 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();
setTimeout(scroll, 100);
}
</script>
</head>
<body onload="scroll()">
<div id="s"></div>
</body>