Web Toolbar by Wibiya

Monday, April 4, 2011

Moving Title

 Write this code just after <head>


<title>click for more code http://computercourner.blogspot.com</title>
<script>
var repeat=0 //enter 0 to not repeat scrolling after 1 run, othersise, enter 1
var title=document.title
var leng=title.length
var start=1
function titlemove() {
  titl=title.substring(start, leng) + title.substring(0, start)
  document.title=titl
  start++
  if (start==leng+1) {
    start=0
    if (repeat==0)
    return
  }
  setTimeout("titlemove()",140)
}
if (document.title)
titlemove()
</script>

No comments:

Related Posts Plugin for WordPress, Blogger...