This is a discussion on Why do the menu items drop behind some HTML elements.? within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Hi all.... Why do the menu items drop behind some HTML elements.? Thanks & Regards Pvinoth....
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi.... Some elements, like some form elements, and objects like Flash are outside the z-order of the document. They are always on top. This is browser behavior and cannot be changed.  One way to work around that is to temporarely hide the element in question when the menu drops. 1- Put the form(s), element(s) or object(s) inside a named div: <div id='HideDiv1' style="position:relative;"> element(s) </div> 2- Make an array in the document with the elements <script type='text/javascript'> var HideArray=['HideDiv1','HideDiv2',...............]; </script> <body> 3- Replace the empty functions BeforeFirstOpen and AfterCloseAll (Found in the variable file) with: function BeforeFirstOpen(){ if(ScLoc.HideArray){ var H_A,H_Al,H_El,i; H_A=ScLoc.HideArray; H_Al=H_A.length; for (i=0;i<H_Al;i++){ H_El=ScLoc.document.getElementById(H_A[i]).style; H_El.visibility=M_Hide}}} function AfterCloseAll(){ if(ScLoc.HideArray){ var H_A,H_Al,H_El,i; H_A=ScLoc.HideArray; H_Al=H_A.length; for (i=0;i<H_Al;i++){ H_El=ScLoc.document.getElementById(H_A[i]).style; H_El.visibility=M_Show}}} i hope this will help you.... |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to populate items to Drop downlist without postback? | KiruthikaSambandam | ASP and ASP.NET Programming | 4 | 10-11-2008 08:39 PM |
| How to Populate menu using sitemap and asp .net menu control and c#: | Archer | C# Programming | 3 | 04-29-2008 10:23 PM |
| When using a drop down menu, how do I store the value selected in a variable? | GDevakii | C# Programming | 1 | 03-22-2008 02:01 AM |
| double clicking the option in drop down list menu | vijayanand | HTML, CSS and Javascript Coding Techniques | 3 | 08-06-2007 07:27 AM |
| Vertical menu or horizontal menu? | capture | Web Design Help | 1 | 03-12-2007 07:25 PM |