Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Intermediate
May 8, 2002

How to Scroll the Text on the Title Bar of a Web Page


This code will do the trick:
 
<HTML>
<HEAD>
<TITLE>ABCDEFGHIJKLMNOPQRSTUVWXYZ</TITLE>
<SCRIPT LANGUAGE = VBSCRIPT>
function fnScroll()
	document.title = Right(document.title,len(document.title)-1) &
Left(document.title,1)
End  Function

function fnUpdate()
	window.setInterval "fnScroll()",500
End Function
</SCRIPT>
</HEAD>

<BODY ONLOAD = "fnUpdate()">
<!-- Works good for a text not having spaces -->
</BODY>
</HTML>
NageswaraRao Kurra
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date