Jump to content

Mouseover And Out


Hemlock
 Share

Recommended Posts

Evening,Not sure what I am doing wrong here in particulair, but I thought this should work.

<script language="JavaScript">			<!-- Start			news = new Image();			news.src = 'imageWeb/newsOn.png';				   //End -->	</script><a href="news.html" onmouseover="news.src=imageWeb/newsOn.png;" onmouseout="news.src=imageWeb/newsOut.png;"><img src="imageWeb/newsOut.png" alt="news" width="172px" height="45px" name="news" /></a>

Or am I missing something here, cause they different images are not being displayed.

Link to comment
Share on other sites

it'll need to have id="news" not just name="news"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...