1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
elinks/test/ecmascript/scroll3.html

18 lines
476 B
HTML
Raw Normal View History

2021-06-14 15:29:22 -04:00
<head>
<script>
var tekst = ' ELinks';
2021-06-14 15:29:22 -04:00
function scrollText() {
var znak = tekst.charAt(0);
tekst = tekst.substring(1, tekst.length) + znak;
return '<pre>' + tekst.substring(0, 80) + '</pre>';
2021-06-14 15:29:22 -04:00
}
function scroll() {
document.getElementById('s').innerHTML = scrollText();
2021-11-12 15:53:31 -05:00
window.setTimeout(scroll, 100);
2021-06-14 15:29:22 -04:00
}
</script>
</head>
<body onload="scroll()">
<div id="s"></div>
</body>