Forum Moderators: not2easy
I created an example of my problem:
<ooops>
edit reason: see posts below, the advice is right, just post here.. it's OK really, even I posted links early on too :)
[edited by: SuzyUK at 10:51 pm (utc) on June 19, 2008]
Welcome to WebmasterWorld!
Please read the Forum charter [webmasterworld.com] which explains how to post your code for review as links aren't permitted for posting.
If you can still edit your post, please remove your link. Thanks :)
You are right, it could be a JaveaScript problem, however, you need to post the relevant code, and let us know the doctype that you are using as well.
This is a portion of the script that I am using to extend compatibility to IE. Is there a way to include a click drag event handler that hides the hover?
#nav li {
float: left;
width: 201px;
height: 27px;
background-image: url(images/dropdown.gif)
}
#nav li ul {
position: absolute;
width: 165px;
left: -999em;
}
#nav li ul li{
width: 165px;
margin-left: 18px;
}
#nav li:hover ul {
left: auto;
}
#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul, #nav li.sfhover ul ul ul {
left: -999em;
}
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul {
left: auto;
}
#nav li:hover ul, #nav li.sfhover ul {
left: auto;
}
.parent {
width: 165px;
height: 27px;
background-image: url(images/hover_bg.gif);
text-decoration: none;
color: #000000;
}
.parent:hover {
background-image:url(images/hover2_bg.gif);
}
Here is the portion of my CSS that handles the listed menu items. Since this problem only occurs in IE, I suspect that the solution may involve modifying the java script.