![]() |
|
|
|
|
|||||||
| Javascript / Java Applets Are you a JavaScript guy? Do you need help with JavaScript? This is the place to talk about anything related to Java. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I need to focus the attention of my visitors at the page title located on my hosting. I want to add a scrolling text to my website title. How can I make the text of the title of my site to move?
|
|
#2
|
||||
|
||||
|
There is nothing easier than this:
HTML Code:
<title>http://hostican.com/ - Affordable Web Hosting</title> <script> var repeat=0 //enter 0 to not repeat scrolling after 1 run, otherwise, 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> |
![]() |
| Tags |
| hosting, located, page, scrolling, text, title |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|