Pages

Thursday, November 18, 2010

How to make your web title move like a typewriter..

Here's the code..Copy and Paste it to your web page or blog...you can see the demo in my blog here...

<script>
var message="Change your Text Here";
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)
}
window.onload=titler
</script>

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...