How to make scrolling text in title bar of my site

balaji2u

New Member
Messages
410
Reaction score
2
Points
0
I guess most of you know how to make the title bars text to scroll coz my title bar's text is too long...
i really need this trick..
Demo:www.123musiq.com
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
with this simple javascript:

put it after the <title>yourtitle</title>

Code:
<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()",500)
}
if (document.title)
titlemove()
</script>

(its from javascript.internet.com)

i didn't make it. though I did modify it.

:p
 

balaji2u

New Member
Messages
410
Reaction score
2
Points
0
wow awesome gonna try this and reply with in 3hours . . thx . .
Edit:
thats excellent pls see my site ..
all the credits goes for leafypig :)
 
Last edited:
Top