PHP ver gevorderde |
|
<SCRIPT language="JavaScript">
var wait = 50 //pause tussen volgende letter (millisecondes)
var message = new Array()
message[0] = "Dit is bericht 0 "
message[1] = "Dit is bericht 1 "
message[2] = "Dit is bericht 2 "
message[3] = "Dit is bericht 3 "
//Als u toe wilt voegen, kopieer de regel hierboven, verander de text en het nummer
var msgs = 3 //maak van 3 het nummer tot hoever het laatste bericht gaat (hier is dat 3)
var curmsg = 0
var a = 0
var counter = 0
function typew(){a = a + 1
check()
window.status = message[curmsg].substring(0, a)
if(a == message[curmsg].length + 5){curmsg = curmsg + 1
a = 0}if(curmsg > msgs){curmsg = 0 }counter = setTimeout("typew()", wait)
}function check(){if(a <= message[curmsg].length)
{if(message[curmsg].substring(a, a + 1) == ""){a = a + 1
check()}}}typew();</SCRIPT>
van leejoo.nl |