|
|
I have an iframe menu item for the dhtml menu sample, and when I click a link in iframe, I would like to close the menu.
Return to Recent Questions
Q:
I have a quick question:
I have an iframe menu item (see note 1) for the dhtml menu sample, and when I click a link in that
iframe, I would like to close the menu.
Is this possible, perhaps by using a javascript call?
A:
You couldn't close the menu, you can only hide it. You can try to
use the following code to hide the menu.
["||test menuitem <iframe src='test.php' onClick='document.getElementById(\'dm0m0\').style.visibility=\'hidden\';' ></iframe>","", , , , ,"0" , , , ],
You can also place your Iframe in DIV tag with indents.
["||test menuitem <div style='padding: 10px;'><iframe
src='test.php' onClick='document.getElementById(\'dm0m0\').style.visibility=\'hidden\';'></iframe></div>","", , , , ,"0" , , , ],
Return to Recent Questions
Related:
- Aug 28, 2006 - Top menu in a 6x4 cell layout (effectively a rectangle)
- Sep 02, 2006 - Can I show / hide the javascript floating menu .
- Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
- Sep 04, 2006 - Set a menu item to pressed when a page is loaded.
- Sep 05, 2006 - Can I say to deluxe-menu "use wrapping"?
- Sep 05, 2006 - Change cursor to a hand when over a menu link...
- Sep 06, 2006 - The alighment of the dropdown menu is off to the right in Firefox...
- Sep 06, 2006 - Can't see my javascript vertical tree menu in FireFox.
- Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
- Sep 11, 2006 - How can I hide my dropdown menu on print?
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
|