IE JavaScript onMouse event fix

IE JavaScript onMouse event fix

If you are using a known javascript library, then you probably will not meet this situation. For instance, you may have a moving code for an image or a div according to the mouse position on screen:
[code='js']
function onMouseMove(e) {
[/code]

Before to any variables, paste this code to make it to work and on IE browsers:
[code='js']
if (e == null)
e = window.event;
[/code]

Otherwise, your javascript code will be stoped by IE.

Even isn’t a big deal at first sight, following a recent list with javascript animantions, i saw that many was not working on Internet Explorer. We like or not, over 35% from internet users (over 45% according to other statistics) use IE browsers – 10% are just for IE6!?!

About reADactor

Try to be a mixer of inspiration, source of tutorials, tips and a reactor of your future design ideas, a place from where you can download freebies, vectors and web templates. Follow us on Twitter and Facebook

View all posts

Network News

Feedbox

Share this!

Subscribe to our RSS feed. Tweet this! StumbleUpon Reddit Digg This! Bookmark on Delicious Share on Facebook
  1. tripwire magazine | tripwire magazine

  2. 135+ Fresh Community Posts for Designers and Developers | tripwire magazine

  3. IE JavaScript onMouse event fix | reADactor | Drakz Free Online Service

  4. 135+ Fresh Community Posts for Designers and Developers | Afif Fattouh - Web Specialist

  5. CSS Brigit | IE JavaScript onMouse event fix

  6. December 21, 2011 at 2:23 am

    Thanks for the arcticle, very useful!

Leave a reply

*

*

Your email address will not be published. Required fields are marked *