Subject: to get the menu closed when on iframes
Posted By: Denny Davis Post Date: 5/15/2006 3:07:06 AM
Hi ,

Could you please tell me how can the menus cum submenus be closed on a window while navigating to an iframe which  is on the right of the menus. The closing of the menus does not happen when navigating onto the iframes,but it occurs once i  leave from the iframes. I have already written the javascript code for the for the onmouseover and onmouseout events of the menu buttons . But the onmouseout event is not fired when navigating onto the iframe.Please Help. It is very urgent. I can sent you the code if necessary

Thanks & Regards



Reply By: interrupt Reply Date: 5/15/2006 4:30:44 AM
Hi Denny,

What do you mean when you say "navigating onto the iframes"? Just moving your mouse over the iframe? If so you could call an onmouseover of the iframe itself.

Joe

Reply By: Denny Davis Reply Date: 5/15/2006 5:22:12 AM
[quote]Originally posted by interrupt

Hi Denny,

What do you mean when you say "navigating onto the iframes"? Just moving your mouse over the iframe? If so you could call an onmouseover of the iframe itself.
Joe

Hi Joe,
When navigating i meant moving my mouse to the iframes which is on the right handside of the menu/submenu lists. There is no onmouseover event for iframes.When my mouse is on the menus all the submenus lists but when I move my mouse onto the iframes which on the right of these menus,the menus still continue to be there until i leave from the iframes to any other part of the window.
I hope this clarifies Joe

  


Reply By: Denny Davis Reply Date: 5/15/2006 5:26:48 AM
quote:
Originally posted by Denny Davis

[quote]Originally posted by interrupt

Hi Denny,

What do you mean when you say "navigating onto the iframes"? Just moving your mouse over the iframe? If so you could call an onmouseover of the iframe itself.
Joe

Hi Joe,
When navigating i meant moving my mouse to the iframes which is on the right handside of the menu/submenu lists. There is no onmouseover event for iframes.When my mouse is on the menus all the submenus lists but when I move my mouse onto the iframes which on the right of these menus,the menus still continue to be there until i leave from the iframes to any other part of the window.
I hope this clarifies Joe

One more thing  Joe . The work i am doing has the similar menus as you see in www.emirates.com/uae
The only difference is that in the above website they have not used an iframe whereas i have tried to use an iframe on the right of the menus.

Thanks&Regards
Denny Davis
  






Reply By: interrupt Reply Date: 5/15/2006 7:18:44 AM
Sorry Denny, perhaps I wasn't making myself clear. What I mean is not to use <iframe onmouseover = "aFunction()">, but to use the actual body element of the iframe source document to call an onmouseover, in turn calling a function from either within the iframe source document, or from the main page (where the menu itself is contained).

As for whther or not there is an onmouseover event for the iframe tag, there actually is. I've just experimented with the following and it worked fine in IE6:

<html>
<head>
<title>IFR Onmousover Test</title>
</head>
<body>
<iframe src = "ifr.html" onmouseover = "alert('Hello World!')">Nothing to Display</iframe>
</body>
</html>

It may be that there are problems validating the markup, if this is the case you may have to write your own DTD to cope with any errors you might get.

Hope this helps
Joe


Go to topic 44263

Return to index page 287
Return to index page 286
Return to index page 285
Return to index page 284
Return to index page 283
Return to index page 282
Return to index page 281
Return to index page 280
Return to index page 279
Return to index page 278