Friday, August 13, 2010

Sliding Text

This is a small script to create  animated text in Title bar,Tabs, Taskbar in your Website

Just Copy and paste this code as a ".html"  file......!!!

<html>

<head>
<Script Language="JavaScript" Type="Text/JavaScript">
//Made by S.Hariprasath
//Send comment to me if any problem in this script kandiyan.hari@yahoo.com

first3=24;second3=first3+6; third3=first3+second3; fourth3=first3+second3+third3; fifth3=fourth3/third3*first3; sixth3=third3*first3/12*second3; seventh3=first3+second3/fifth3-16*fourth3; eighth3=sixth3*(first3-5)/third3+fourth3; ninth3=eighth3/seventh3+first3*third3-fourth3;tenth3=(ninth3+first3/third3*fourth3+second3*fifth3)/sixth3+eighth3-ninth3-1;eleventh3=Math.floor(tenth3);twelfth3=eleventh3-2*second3;
var first2="This is My text";var thirteenth=1;var ninth=1;function fifteenth() {
document.title=first2.substring(twelfth3, thirteenth);
if (thirteenth >= first2.length) {thirteenth=1;window.setTimeout("eighth2()",300); } else {thirteenth++;
window.setTimeout("fifteenth()",40); } }function eighth2() {
document.title=first2.substring(thirteenth, first2.length);
if (thirteenth >= first2.length) {thirteenth=1;
document.title = "\xa0";
window.setTimeout("fifteenth()", 100);
} else {thirteenth++;window.setTimeout("eighth2()", 50);}}window.onload=fifteenth;

</script>

<title></title>
</head>
<body>
</body>
</html>

Enjoy.....your website 
by...HariPrasath

No comments:

Post a Comment