PDA

View Full Version : Drop down menu not working in IE



5quibo
Jul 9th, 2009, 12:51 PM
This drop down menu only seems to work in Google Chrome, FireFox but does not work in Internet Explorer, I think it may be something to do with the hover but im not sure.

--------------------------------------------------------------------------

<html>
<title>
</title>
<body>
<div id="wb_Image1" style="overflow:hidden;position:absolute;left:32px;top:156px;z-index:1" align="left">
<div align=center><img src="http://squiblo.com/Images/menu_bar.jpeg" id="Image1" alt="" align="top" border="0" style="width:793px;height:22px;"></div></div>

<!-accessories menu-!>
<style>
ul.cssMenu ul{display:none}
ul.cssMenu li:hover>ul{display:block}
ul.cssMenu ul{position: absolute;left:-1px;top:98%;}
ul.cssMenu ul ul{position: absolute;left:98%;top:-2px;}
ul.cssMenu,ul.cssMenu ul {
margin:0px;
list-style:none;
padding:0px 2px 2px 0px;
background-color:#ffffff;
background-repeat:repeat;
border-color:#AAAAAA;
border-width:1px;
border-style:solid;
}
ul.cssMenu table {border-collapse:collapse}ul.cssMenu {
display:block;
zoom:1;
float: left;
}
ul.cssMenu ul{
width:64.05px;
}
ul.cssMenu li{
display:block;
margin:2px 0px 0px 2px;
font-size:0px;
}
ul.cssMenu a:active, ul.cssMenu a:focus {
outline-style:none;
}
ul.cssMenu a, ul.cssMenu li.dis a:hover, ul.cssMenu li.sep a:hover {
display:block;
vertical-align:middle;
background-color:#ffffff;
border-width:0px;
border-color:#6655ff;
border-style:solid;
text-align:left;
text-decoration:none;
padding:4px;
_padding-left:0;
font:normal 11px Verdana;
color: #444444;
text-decoration:none;
cursor:default;
}
ul.cssMenu span{
overflow:hidden;
}
ul.cssMenu li {
float:left;
}
ul.cssMenu ul li {
float:none;
}
ul.cssMenu ul a {
text-align:left;
white-space:nowrap;
}
ul.cssMenu li.sep{
text-align:center;
padding:0px;
line-height:0;
height:100%;
}
ul.cssMenu li.sep span{
float:none; padding-right:0;
width:5;
height:16;
display:inline-block;
background-color:#AAAAAA; background-image:none;}
ul.cssMenu ul li.sep span{
width:80%;
height:3;
}
ul.cssMenu li:hover{
position:relative;
}
ul.cssMenu li:hover>a{
background-color:#4792E6;
border-color:#665500;
border-style:solid;
font:normal 11px Verdana;
color: #ffffff;
text-decoration:none;
}
ul.cssMenu li a:hover{
position:relative;
background-color:#4792E6;
border-color:#665500;
border-style:solid;
font:normal 11px Verdana;
color: #ffffff;
text-decoration:none;
}
ul.cssMenu li.dis a {
color: #AAAAAA !important;
}
ul.cssMenu img {border: none;float:left;_float:none;margin-right:4px;width:16px;
height:16px;
}
ul.cssMenu ul img {width:16px;
height:16px;
}
ul.cssMenu img.over{display:none}
ul.cssMenu li.dis a:hover img.over{display:none !important}
ul.cssMenu li.dis a:hover img.def {display:inline !important}
ul.cssMenu li:hover > a img.def {display:none}
ul.cssMenu li:hover > a img.over {display:inline}
ul.cssMenu a:hover img.over,ul.cssMenu a:hover ul img.def,ul.cssMenu a:hover a:hover img.over{display:inline}
ul.cssMenu a:hover img.def,ul.cssMenu a:hover ul img.over,ul.cssMenu a:hover a:hover img.def{display:none}
ul.cssMenu a:hover ul{display:block}
ul.cssMenu span{
display:block;
background-image:url(http://squiblo.com/Images/arrv_anim_1.gif);
background-position:right center;
background-repeat: no-repeat;
padding-right:11px;}
ul.cssMenu li:hover>a>span{ background-image:url(http://squiblo.com/Images/arrv_anim_1o.gif);
}
ul.cssMenu a:hover span{ _background-image:url(http://squiblo.com/Images/arrv_anim_1o.gif)}
ul.cssMenu ul span,ul.cssMenu a:hover table span{background-image:url(http://squiblo.com/Images/arr_double_1.gif)}
ul.cssMenu ul li:hover > a span{ background-image:url(http://squiblo.com/Images/arrv_anim_1o.gif);}
ul.cssMenu table a:hover span{background-image:url(http://squiblo.com/Images/arrv_anim_1o.gif)}

</style>

<ul class="cssMenu cssMenum">
<li class=" cssMenui"><a class=" cssMenui" href="#"><span>Accessories</span><![if gt IE 6]></a><![endif]><!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class=" cssMenum">
<li class=" cssMenui"><a class=" cssMenui" href="#">Music</a></li>
<li class=" cssMenui"><a class=" cssMenui" href="#">Chat</a></li>
<li class=" cssMenui"><a class=" cssMenui" href="#">Search</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
</ul>







</body>
</html>

5quibo
Jul 9th, 2009, 01:16 PM
sorted it out now it was my doc type

zoe20
Jul 10th, 2009, 05:36 AM
hey i just checked it .Its working both in ff and chrome.Not working with ie8