dcsimg
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

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


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