Your HostICan Community  


Go Back   Your HostICan Community > Programming & Design > Javascript / Java Applets

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-11-2009, 09:47 AM
valter valter is offline
Junior Member
 
Join Date: Sep 2009
Posts: 3
Default scrolling text in the page title located on my hosting

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?
Reply With Quote
  #2  
Old 09-11-2009, 10:17 AM
hood's Avatar
hood hood is offline
Senior Member
 
Join Date: Jan 2009
Posts: 107
Default Re: scrolling text in the page title located on my hosting

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> 
Put the script between head tag and under title tag.
Reply With Quote
Reply

Tags
hosting, located, page, scrolling, text, title

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:20 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.