2007-04-26 16:37:09 -04:00
|
|
|
<body>
|
|
|
|
<!-- test setTimeout and clearTimeout -->
|
2006-10-23 17:08:14 -04:00
|
|
|
<script>
|
2007-04-26 16:37:09 -04:00
|
|
|
var tekst1 = ' ELinks';
|
|
|
|
var tekst2 = ' ELinks';
|
|
|
|
var h;
|
|
|
|
function scrollText(tekst) {
|
2006-10-23 17:08:14 -04:00
|
|
|
var znak = tekst.charAt(0);
|
|
|
|
tekst = tekst.substring(1, tekst.length) + znak;
|
2007-04-26 16:37:09 -04:00
|
|
|
return tekst.substring(0, 40);
|
2006-10-23 17:08:14 -04:00
|
|
|
}
|
2007-04-26 16:37:09 -04:00
|
|
|
function scroll() {
|
|
|
|
tekst1 = scrollText(tekst1);
|
|
|
|
document.title = tekst1 + tekst2;
|
|
|
|
setTimeout("scroll()", 100);
|
2006-10-23 17:08:14 -04:00
|
|
|
}
|
2007-04-26 16:37:09 -04:00
|
|
|
function scroll2() {
|
|
|
|
tekst2 = scrollText(tekst2);;
|
|
|
|
h = setTimeout("scroll2()", 200);
|
|
|
|
}
|
|
|
|
function killer() {
|
|
|
|
setTimeout("clearTimeout(h)", 10000);
|
|
|
|
}
|
|
|
|
|
|
|
|
scroll();
|
|
|
|
scroll2();
|
|
|
|
killer();
|
2006-10-23 17:08:14 -04:00
|
|
|
</script>
|
|
|
|
</body>
|