Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Web Development
Expertise: Beginner
Apr 23, 1999



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

Changing the Color of an Image Upon Mouseover

I'm designing a new rollover for my menu frame. I have five graphics, and I want them to change colors when the user mouses over them. Also, how do I make it so that text appears in the status bar at the bottom of the window?

There are a couple of ways to make the images change colors when moused over. One example is to use a single tag and at least two different image files for the tag. You can use VBScript to change the value of the src property of the tag in the onmouseover and onmouseout events:





Adding text to the status bar is easy using the window object. The status property of the window object controls it. In this example, divBigStuff is a
tag. The text will appear in the status bar:
Sub divBigStuff_onmouseover
	window.status="Click here to see big stuff"
End Sub
DevX Pro
Comment and Contribute






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



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