h4tlovevn@yahoo.com.vn[/url]">
function initArray(n) {
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '
}
}
slide = new initArray(3)
slide[0]="Ai cung co mot uoc mo cho rieng minh !"
slide[1]="Con ban thi sao ! Ban cung hay uoc nguyen cho uoc mo ay thanh hien thuc nha !"
slide[2]="Chuc ban dat nhieu may man (^_^)!!!"
slide[3]="Than ai: H4T Love!!!"
var delay1 = 3
var delay2 = 3000
var text = slide[0] + " "
var str = " "
var leftmsg = ""
var nextmsg = 0
function setMessage() {
if (str.length == 1) {
while (text.substring(0, 1) == " ") {
leftmsg += str
str = text.substring(0, 1)
text = text.substring(1, text.length)
}
leftmsg += str
str = text.substring(0, 1)
text = text.substring(1, text.length)
for (var x = 0; x < 120; x++) {
str = " " + str
}
}
else {
str = str.substring(10, str.length)
}
window.status = leftmsg + str
if (text == "") {
str = " "
nextmsg++
if (nextmsg > slide.length) {
nextmsg = 0
}
text = slide[nextmsg] + " "
leftmsg = ""
setTimeout('setMessage()',delay2)
}
else {
setTimeout('setMessage()',delay1)
}
}
setMessage();