I need some javascript code that dynamically adds an img tag to a div, and the img tag needs onmouseover and onmouseout handlers.
I have it working on Firefox. But
Turns out IE doesn't support the addEventListener method. You can check a workaround here.
Anyway, why don't you use jQuery? It almost overrides all the compatibility issues, has a handful of extras and it totally rocks.