JavaScript : code chữ chạy trên taskbar

var message=”Welcome to :: VO THANH LUAN :: Information Techonology ::”
//var message=message+” “;
i=”0″;
var temptitle=””;
var speed=”200″ ;
function titler(){
if (!document.all&&!document.getElementById)
return;
document.title=temptitle+message.charAt(i);
temptitle=temptitle+message.charAt(i);
i++;
if(i==message.length){
i=”0″;temptitle=””;
}
setTimeout(“titler()”,speed)
}

nhớ khi onLoad thì gọi hàm titler() nhé (onLoad=”titler()”)

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: