1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/test/ecmascript/scroll3.html

18 lines
469 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();
setTimeout(scroll, 100);
2021-06-14 15:29:22 -04:00
}
</script>
</head>
<body onload="scroll()">
<div id="s"></div>
</body>