Реклама на сайте

<script language="JavaScript">

// Keep the follwing line down when you use this script
// Found at the Javascript Libary http://jslibrary.phiberoptix.com
// More scripts are available there


var current = 0

var x = 0

var speed = 100

var speed2 = 2000



function initArray(n) {

this.length = n;

for (var i =1; i <= n; i++) {

this[i] = ' '

}

}



typ = new initArray(4)

typ[0]="Черкните в гостевой книге"

typ[1]="Всем привет!"

typ[2]="Заходите еще"

typ[3]="К тому времени многое появится"



function typewrite() {

var m = typ[current]



window.status = m.substring(0, x++) + "_"



if (x == m.length + 1) {

x = 0

current++



if (current > typ.length - 1) {

current = 0

}



setTimeout("typewrite()", speed2)

}



else {

setTimeout("typewrite()", speed)

}

}



typewrite()

//-->



</script>