Changing the Color of an Image Upon Mouseover

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
See also  5 Ways to Improve Customer Experience

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist