• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

onmouseover in netscape

 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the following code works fine in IE but not in netscape 4.7
(ignore the underscores)


<td width="145" height="40" align="center" valign="bottom"><a href="index.html"><img src="home.gif" border="0" on_mouse_over="this.src='home2.gif'" on_mouse_out="this.src='home.gif'"></a></td>


anyone know how to do this in netscape?
never mind i fixed it. im not sure if it was because i typed on_mouse_over instead of on_Mouse_Over, because i used "this" or because it was in image tag. there was a problem with the way i was doing it anyway because i didnt preload the images. new code looks like this.


<td width="145" height="40" align="center" valign="bottom"><a href="index.html" on_Mouse_Over="document.home.src='home2.gif'" on_Mouse_Out="document.home.src='home1.gif'"><img name="home" src="home1.gif" border="0"></a></td>


[ February 16, 2002: Message edited by: Randall Twede ]
 
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
on_Mouse_Over is not supported in Netscape 4.x for an image tag <img ...> that must be the reason why it didn't work. It works in Netscape 6.x though. on_mouse_over is not case sensitive.
HTH,
- Manish
 
reply
    Bookmark Topic Watch Topic
  • New Topic