| | |
ClamShell Menu Not Working in Foxfire
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Nov 2007
Posts: 1
Reputation:
Solved Threads: 0
Hi,
This clamshell menu code works fine in IE and Safari, but level 3 does not work in Firefox. When I click on 3-Level Menu - Level 2, the menu closes. Clicking on 3-Level Menu - Level 1 again shows the level 3 items were indeed opened. The 2-level menu works fine.
Does anyone know why this does not work in Firefox? Thanks!
This clamshell menu code works fine in IE and Safari, but level 3 does not work in Firefox. When I click on 3-Level Menu - Level 2, the menu closes. Clicking on 3-Level Menu - Level 1 again shows the level 3 items were indeed opened. The 2-level menu works fine.
Does anyone know why this does not work in Firefox? Thanks!
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<HTML> <HEAD> <script> function toggleMenu(objectID) { var objectblock = document.getElementById(objectID).style; if (objectblock.display == 'block') { objectblock.display = 'none'; window.event.cancelBubble = true; window.event.returnValue = false; } else { objectblock.display = 'block'; window.event.cancelBubble = true; window.event.returnValue = false; } } </script> </HEAD> <BODY> <div onClick="toggleMenu('3level1')">3-Level Menu - Level 1 <div id='3level1' style='margin-left: 10%; display: none'> <div onClick="toggleMenu('3level2')">3-Level Menu - Level 2 (clicking here not working in FF) <div id='3level2' style='margin-left: 10%; display: none'> <div onclick="event.cancelBubble = 'true'">Level 3 - anchor to desired page here</div> <div onclick="event.cancelBubble = 'true'">Level 3 - another anchor here</div> </div> </div> </div> </div> <div onClick="toggleMenu('2level1')">2-Level Menu - Level 1 <div id='2level1' style='margin-left: 10%; display: none'> <div onclick="event.cancelBubble = 'true'">Level 2 - anchor to desired page here (works in FF)</div> </div> </div> </BODY> </HTML>
![]() |
Similar Threads
- css menu in ie7 : a:hover behaviour only on text not on the whole box (HTML and CSS)
- php/mysql dynamic multi-level menu problem (MySQL)
- CSS Menu Not Working on Mac (HTML and CSS)
- Non working windows explorer - hijack log file please help (Viruses, Spyware and other Nasties)
- Easy drop down menu? (JavaScript / DHTML / AJAX)
- JS opacity menu Problems In IE - rare (HTML and CSS)
- Firefox vs. IE-menu not working please help (JavaScript / DHTML / AJAX)
- search bar not working (Windows NT / 2000 / XP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: drop down quantity box to update price
- Next Thread: preloading image (white page between) problem
Views: 2382 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxcode ajaxexample ajaxjspservlets api blackjack browser bug calendar captchaformproblem checkbox child class close cookies createrange() cursor dependent disablefirebug dom dropdown editor element embed engine events explorer ext file firehose flash form forms game gears google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe image() images internet java javascript javascripthelp2020 jquery jsf jsfile jump libcurl math matrixcaptcha media mp3 mysql object onerror onmouseoutdivproblem onreadystatechange parent passing paypal pdf php player position post progressbar rated regex runtime scroll search security session shopping size software solutions sql star stars stretch synchronous text textarea tweet unicode web webkit window windowsxp wysiwyg xspf \n





