Jump to content

Mouseover And Out


Hemlock

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...