Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
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
Sep 11, 1998

Navigator Does Not Support the onMouseOver Event for Images

If you are trying to make an alert box that displays a message when the user passes the mouse over an image, keep in mind that unlike Microsoft Internet Explorer, Netscape Navigator doesn't support the onMouseOver event for images. However, Navigator does support the event for anchor (<A>) tags. The trick is to wrap your image in a set of <A> tags that include your onMouseOver handler, causing your alert box to come up in both browsers. This code shows what I mean:
 
<HTML>
<BODY>
<a href="" onMouseOver="alert('Test');"><img
src="circles.gif"></a>
</BODY>
</HTML>
Boris Feldman
 
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