Wednesday, July 13, 2011

Scrolling site title bar script

Copy and Paste below cod in website head section :

<head>
<title>Site Name &nbsp;&nbsp; ::: &nbsp;&nbsp;Welcome to A &nbsp;</title>

<script type="text/javascript" language="javascript">
var repeat=2 //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>

</head>

No comments:

Post a Comment