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 7, 2002

How to Change Text Color Dynamically

 
<HEAD>
<TITLE>Dynamic Color Change of Text</TITLE>

<SCRIPT LANGUAGE = VBSCRIPT>
Function fnColor()
	Randomize
	H.style.color=rgb(Int(255 * Rnd),Int(255 * Rnd),
Int(255 * Rnd))
End function

Function fnTimer()
	window.setInterval "fnColor()",1000
End function
</SCRIPT>
</HEAD>

<BODY LANGUAGE=VBSCRIPT  ONLOAD = "fnTimer()">
<CENTER><H2 id=H>Hello Good Morning</H2></CENTER>
</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