Tuesday, March 15, 2011

Javascript Code: Magic title for weblogs or any pages on the internet

A title for the page which is always changing and moving so nice!

<!-- this script got from www.javascriptfreecode.com-Coded by: Krishna Eydat -->
     <SCRIPT language=javascript>
msg = "Krishna edyatoula is the best programmer in the world";

msg = "..." + msg;pos = 0;
function scrollMSG() {
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos);
pos++;
if (pos >  msg.length) pos = 0
window.setTimeout("scrollMSG()",200);
}
scrollMSG();
    </SCRIPT>
<font face="Tahoma"><a target="_blank" href="http://www.javascriptfreecode.com/"><span style="font-size: 8pt; text-decoration: none">JavaScript Free Code</span></a></font>
 

No comments:

Post a Comment