Jump to content
  • Advertisement
Sign in to follow this  
stevenmarky

[web] onmouseover woes

This topic is 3985 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Internet Explorer 6.0 seems to have trouble responding to onmouseover events of table elements when they have an alpha value; the event is simply not fired a lot of the time. Here is my test case: Test Case . If you have any ideas on how I could get around this problem I would be grateful. I know that recent versions of Firefox and Opera have no trouble with this. edit: There is a small mistake on the test page - it says red instead of blue.

Share this post


Link to post
Share on other sites
Advertisement
Filters really shouldn't be used as they are IE only.

That said, for mouseover and mouseout events it's a whole lot easier to change the css class.


<head>
<title>Untitled</title>
<style type="text/css">
td.out {
background-color:#ccff99;
}
td.over {
background-color:#aaff99;
}
</style>
</head>
<body>
<table>
<tr>
<td class="out" onmouseover="this.className='over'" onmouseout="this.className='out'">Your tekst here</td>
</tr>
</table>
</body>
</html>



Hope that helps

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!