Hi Friends,
I Created one drop down menu by using CSS. It is perfect in Firefox but in IE it creates some problem.
in the header section the drop down menu appear,, below that i used one table to put one list menu box..
The problem is, when we mouse over the drop down menu , list box appears in front of the drop down area.. how can i tackle this . The Error occurs only in IE not in Firefox. -
-
Here the Code : For CSS
-
-
<style type="text/css">
-
/* Root = Horizontal, Secondary = Vertical */
-
ul#navmenu-h {
-
margin: 0;
-
border: 0 none;
-
padding: 0;
-
width: 600px; /*For KHTML*/
-
list-style: none;
-
}
-
-
ul#navmenu-h li {
-
margin: 0;
-
border: 0 none;
-
padding: 0;
-
float: left; /*For Gecko*/
-
display: inline;
-
list-style: none;
-
position: relative;
-
width: 185px;
-
-
}
-
-
-
ul#navmenu-h ul {
-
margin: 0;
-
border: 0 none;
-
padding: 0;
-
width: 600px;
-
list-style: none;
-
display: none;
-
position: absolute;
-
top: 24px;
-
left: 0;
-
-
}
-
-
ul#navmenu-h ul:after /*From IE 7 lack of compliance*/{
-
clear: both;
-
display: block;
-
font: 1px/0px serif;
-
content: ".";
-
height: 0;
-
visibility: hidden;
-
}
-
-
ul#navmenu-h ul li {
-
width: 300px;
-
-
float: left; /*For IE 7 lack of compliance*/
-
display: block !important;
-
display: inline; /*For IE*/
-
}
-
-
/* Root Menu */
-
ul#navmenu-h a {
-
border: 1px solid #FFF;
-
border-right-color: #D6C7A7;
-
border-bottom-color: #D6C7A7;
-
text-align:left;
-
padding: 0 6px;
-
float: none !important; /*For Opera*/
-
float: left; /*For IE*/
-
display: block;
-
background: #F1ECE1;
-
color: #666;
-
font: bold 10px/22px Verdana, Arial, Helvetica, sans-serif;
-
text-decoration: none;
-
height: auto !important;
-
height: 1%; /*For IE*/
-
}
-
-
/* Root Menu Hover Persistence */
-
ul#navmenu-h a:hover,
-
ul#navmenu-h li:hover a,
-
ul#navmenu-h li.iehover a {
-
background: #D6C7A7;
-
color: #FFF;
-
text-align:left;
-
-
}
-
-
/* 2nd Menu */
-
ul#navmenu-h li:hover li a,
-
ul#navmenu-h li.iehover li a {
-
float: none;
-
background: #F1ECE1;
-
color: #666;
-
-
-
-
}
-
-
/* 2nd Menu Hover Persistence */
-
ul#navmenu-h li:hover li a:hover,
-
ul#navmenu-h li:hover li:hover a,
-
ul#navmenu-h li.iehover li a:hover,
-
ul#navmenu-h li.iehover li.iehover a {
-
background: #D6C7A7;
-
color: #FFF;
-
}
-
-
/* 3rd Menu */
-
ul#navmenu-h li:hover li:hover li a,
-
ul#navmenu-h li.iehover li.iehover li a {
-
background: #F1ECE1;
-
color: #666;
-
}
-
-
/* 3rd Menu Hover Persistence */
-
ul#navmenu-h li:hover li:hover li a:hover,
-
ul#navmenu-h li:hover li:hover li:hover a,
-
ul#navmenu-h li.iehover li.iehover li a:hover,
-
ul#navmenu-h li.iehover li.iehover li.iehover a {
-
background: #D6C7A7;
-
color: #FFF;
-
}
-
-
/* 4th Menu */
-
ul#navmenu-h li:hover li:hover li:hover li a,
-
ul#navmenu-h li.iehover li.iehover li.iehover li a {
-
background: #F1ECE1;
-
color: #666;
-
}
-
-
/* 4th Menu Hover */
-
ul#navmenu-h li:hover li:hover li:hover li a:hover,
-
ul#navmenu-h li.iehover li.iehover li.iehover li a:hover {
-
background: #D6C7A7;
-
color: #FFF;
-
}
-
-
ul#navmenu-h ul ul,
-
ul#navmenu-h ul ul ul {
-
display: none;
-
position: absolute;
-
top: 0;
-
left: 160px;
-
}
-
-
/* Do Not Move - Must Come Before display:block for Gecko */
-
ul#navmenu-h li:hover ul ul,
-
ul#navmenu-h li:hover ul ul ul,
-
ul#navmenu-h li.iehover ul ul,
-
ul#navmenu-h li.iehover ul ul ul {
-
display: none;
-
}
-
-
ul#navmenu-h li:hover ul,
-
ul#navmenu-h ul li:hover ul,
-
ul#navmenu-h ul ul li:hover ul,
-
ul#navmenu-h li.iehover ul,
-
ul#navmenu-h ul li.iehover ul,
-
ul#navmenu-h ul ul li.iehover ul {
-
display: block;
-
}
-
-
</style>
-
-
<script type="text/javascript">
-
navHover = function() {
-
var lis = document.getElementById("navmenu-h").getElementsByTagName("LI");
-
for (var i=0; i<lis.length; i++) {
-
lis[i].onmouseover=function() {
-
this.className+=" iehover";
-
}
-
lis[i].onmouseout=function() {
-
this.className=this.className.replace(new RegExp(" iehover\\b"), "");
-
}
-
}
-
}
-
if (window.attachEvent) window.attachEvent("onload", navHover);</script>
-
-
-
-
<table width="100%" border="0" cellspacing="0" cellpadding="0">
-
<tr>
-
<td align="center" valign="top"> <ul id="navmenu-h">
-
-
<li><a href="#"> Top Songs »</a>
-
<ul> <li><a href="#">Song 1</a></li>
-
<li><a href="#"> Song 1</a></li>
-
<li><a href="#">Song 1</a></li>
-
<li><a href="#">Song 1</a></li>
-
<li><a href="#">Song 1</a></li>
-
<li><a href="#">Song 1</a></li>
-
<li><a href="#">Song 1</a></li>
-
<li><a href="#">Song 1</a></li>
-
<li><a href="#">Song 1</a></li>
-
<li><a href="#"> Song 1</a></li>
-
<li><a href="#">Song 1</a></li>
-
<li><a href="#">Song 1</a></li>
-
<li><a href="#">Song 1</a></li>
-
<li><a href="#">Song 1</a></li>
-
<li><a href="#">Song 1</a></li>
-
<li><a href="#">Song 1</a></li>
-
<li><a href="#">Top REVIEW sites »</a>
-
<ul>
-
<li><a href="#"> REVIEW sites 1</a></li>
-
<li><a href="#"> REVIEW sites 2</a></li>
-
<li><a href="#"> REVIEW sites 3</a></li>
-
<li><a href="#"> REVIEW sites 4</a></li>
-
</ul>
-
</li>
-
-
-
</ul>
-
</li>
-
-
</ul></td>
-
</tr>
-
<tr>
-
<td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
-
<tr>
-
<td width="20%" align="left" valign="top"> </td>
-
<td width="80%" align="left" valign="top"><form name="form1" method="post" action="">
-
-
<select name="select">
-
<option>Top A - Z Songs</option>
-
</select>
-
-
</form>
-
</td>
-
</tr>
-
</table></td>
-
</tr>
-
<tr>
-
<td align="center" valign="top"> </td>
-
</tr>
-
</table>
-
3 7382 acoder 16,027
Recognized Expert Moderator MVP
The problem is, when we mouse over the drop down menu , list box appears in front of the drop down area.
This occurs in IE6 and below and is fixed in IE7. For IE6-, either hide the list box when you mouse over the menu (a bit of a fix), or use iframe shimming (place an iframe underneath the menu).
This occurs in IE6 and below and is fixed in IE7. For IE6-, either hide the list box when you mouse over the menu (a bit of a fix), or use iframe shimming (place an iframe underneath the menu).
Hi,
Thanks for giving this suggestion ..
i tried iframe for list box still the problem appears ....and also i used id for list box to hide but other list items are affecting ..
so what to do .....
acoder 16,027
Recognized Expert Moderator MVP
It's not that simple. Search for "iframe shim" and you should find some useful links.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: LG |
last post by:
I have asked before but I did not get all the answer I wanted. Perhaps I
explained too bad.
I have my site in frames, and the dropdown list is in the 'left' frame, and
I have used javascript so that when you click on the selected word in the
dropdown menu, it automatically opens up an URL. I want it to open up in the
right frame. As it now opens in the 'left' frame.
I know you can do it with target in html. But I want it open up the...
|
by: middletree |
last post by:
For an ASp Intranet app, I have some code that should work, but I am not able
to make it happen for some reason, after spending considerable time on this.
I am pretty thick when it comes to javascript; I just don't get the syntax
at all. If
anyone could help, I would appreciate it. I'm probably pretty close. Please
note that because it's an Intranet, all users have to use IE 5 or higher.
Situation:
3 form fields on an ASP. <select>...
|
by: Dino Buljubasic |
last post by:
Hi,
I have a toolbar with several buttons on it, one of which is set up to
be as a DropDown button. I also have a context menu with menu items
assigend to it so when I click that button, my context menu shows up.
I have 2 questions:
1) how do I find out which menu item was clicked so I can use my
Select Case statement to perform appropriate actions depending on menu
|
by: torquehero |
last post by:
Hi all :)
I have created a horizontal navbar using Xara Menumaker. The Menu items have several dropdown menus. Its a javascript. When the mouse cursor is moved over any menu item, a dropdown list/menu appears. When the page is opened in the browser (as it appears by default), the dropdown menu positions are correctly displayed. But when I scroll the page and then move the mouse over any menu item of the navbar, the dropdown menu is not...
|
by: William Youngman |
last post by:
I have a gridview displaying data and would like to use the AJAX dropdown extender so that when the user clicks on a record a dropdown menu will display providing the user with a menu of selections to choose from (yes much like the SharePoint 2007 dropdown menu).
I'm having problems dynamically binding the 'TargetControlID' property of the extender control to the record label in the gridview.
What I'm doing is -
The label's text is the...
| |
by: William Youngman |
last post by:
We are developing an application that presents data to the user in a gridview and we are using the dropdown extender to give the user a SharePoint 2007 type dropdown menu attached to the cells of a given column. We are also using another dropdown menu that the user can use to select data using another quesry using the SelectedIndex change method. Upon initial page load everything works fine and the user is presented with a SharePoint type menu....
|
by: Panna |
last post by:
Hey there
I am using phpMyAdmin and MySQL to develop a dbase application.
I have a dropdown menu on one of the pages which gets populated automatically with data from a table in the database. The code for this is as follows:
$sql3="SELECT ID, UploadDate FROM Telkom";
$result2=mysql_query($sql3);
$options="";
|
by: redgoals |
last post by:
Hi,
I have searched the forum for a similar problem but have been unable to find anything.
What i am trying to achieve is a dropdown menu which behaves in the following way:
1, Someone selects an category from the first dropdown menu
2, if the category has subcategories then dynamically create a new dropdown underneath and in the process fill it with the subcategories from the chosen option in the first menu.
3, keep doing the above...
|
by: sydd |
last post by:
Hi,
I was wondering if it's possible to create a dynamic dropdown menu from this code.
if($rs->getNumRows() > 0){
$intProjectCount = 1;
$htmlOut ="<table width='100%' border='0' align='center' cellpadding='1' cellspacing='0'>";
foreach($rs->fetch() as $prs){
$htmlOut .="<tr><td class=\"projectkiri\" ><a href=\"/index.php?page=PROJECTS&id=".$prs."\">".$prs."</a></td></tr>";
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |