PDA

View Full Version : iframe disappearing



venturebrowser
21 Jan 2011, 09:17 AM
experience: about a year self taught

Doing the work myself.

problem: iframe element disappears when mousedown anywhere in the body.

Browser: IE8

Hi there,
I have created a drop down menu that drops down over an ActiveX object, so I had to create an iframe element dynamically under each drop down so that I could interact with the z-index of both the ActiveX and the html (otherwise the menu doesn't show as an object element is always on top). This iframe creation and hiding is done on the mouseenter and mouseleave events respectively of the menu.
My problem is when I mousedown anywhere in the body (except in the AcitveX object) my iframe element disappears and my dropdown gets chopped off (because the ActiveX is covering it again). The mousedown is not firing my functions that create or hide the iframe either one. It's something global, but I just can't seem to find the problem.

Any ideas?

venturebrowser
21 Jan 2011, 03:32 PM
Figured it out....Thanks anyway.