Hi,
i recently came across Superfish and i think its amazing. i am however
having a problem with the opacity:"show" animation in ie. it works
fine in ff but when i try my menu in ie7, the right border and top
menu item of the selected drop down menu item appear after the rest of
the menu when selected. you can see what i mean here:
http://www.thepixelhouse.com/byl
(Superfish is only on this page at the moment)
Any ideas why this is happening?
this is my CSS:
/* remove any default styles */
.nav, .nav * {
top:-34px;
margin:0;
padding:0;
list-style:none;
font-family:Arial, Helvetica, sans-serif;
font-size:1em;
}
/* top ul.nav element */
.nav {
line-height:1.0;
font-weight:bold;
}
/* nested submenu ul elements */
.nav ul {
position:absolute;
top:-999em;
width:165px;
}
/* top level spacing and arrows */
.menu li.home {width:60px;}
.menu li.aboutus {width:105px; background:url(drop3/downarrow.gif)
90px 16px no-repeat;}
.menu a.abouttopdrop:hover{background:url(drop3/wdownarrow.gif) no-
repeat 90px 16px;}
.menu :hover > a.abouttopdrop, .menu ul ul :hover > a.abouttopdrop
{color:#fff;background:url(drop3/wdownarrow.gif) no-repeat 90px 16px;}
.menu li.dis {width:110px; background:url(drop3/downarrow.gif) 99px
16px no-repeat;}
.menu a.distopdrop:hover{background:url(drop3/wdownarrow.gif) no-
repeat 99px 16px;}
.menu :hover > a.distopdrop, .menu ul ul :hover > a.distopdrop
{color:#fff;background:url(drop3/wdownarrow.gif) no-repeat 99px 16px;}
.menu li.courses {width:89px; background:url(drop3/downarrow.gif) 79px
16px no-repeat;}
.menu a.coursestopdrop:hover{background:url(drop3/wdownarrow.gif) no-
repeat 79px 16px;}
.menu :hover > a.coursestopdrop, .menu ul ul :hover > a.coursetopdrop
{color:#fff;background:url(drop3/wdownarrow.gif) no-repeat 79px 16px;}
.menu li.articles {width:80px;}
.menu li.links {width:72px; background:url(drop3/downarrow.gif) 59px
16px no-repeat;}
.menu a.linkstopdrop:hover{background:url(drop3/wdownarrow.gif) no-
repeat 59px 16px;}
.menu :hover > a.linkstopdrop, .menu ul ul :hover > a.linkstopdrop
{color:#fff;background:url(drop3/wdownarrow.gif) no-repeat 59px 16px;}
.menu li.vacancies {width:100px; background:url(drop3/downarrow.gif)
90px 16px no-repeat;}
.menu a.vactopdrop:hover{background:url(drop3/wdownarrow.gif) no-
repeat 90px 16px;}
.menu :hover > a.vactopdrop, .menu ul ul :hover > a.vactopdrop
{color:#fff;background:url(drop3/wdownarrow.gif) no-repeat 90px 16px;}
.menu li.contact {width:100px;}
/* all li elements */
.nav li {
float:left;
position:relative;
z-index:99;
}
/* all anchor elements */
.nav a {
display:block;
}
/ Position of second tier of nav /
.nav li:hover ul,
ul.nav li.sfHover ul
{
left:0px;
top:68px;
}
/ Position of third tier of nav /
.nav li:hover li ul,
.nav li.sfHover li ul {
top:-999em;
}
.nav li li:hover ul,
ul.nav li li.sfHover ul
{
left:167px;
top:40px;
}
.nav li li:hover li ul,
.nav li li.sfHover li ul {
top:-999em;
}
.nav li li li:hover ul,
ul.nav li li li.sfHover ul
{
left:167px;
top:40px;
}
.superfish li:hover ul,
.superfish li li:hover ul,
.superfish li li li:hover ul {
top: -999em;
}
embed, object {
position: relative;
z-index: 0;
}
.nav {
float:left;
}
.nav li {
background:#f0d55b;
text-align:center;
}
.nav a, .nav a:visited {
color: #000;
padding: 9px 0px 9px 0px;
text-decoration:none;
}
.nav a:hover {
color:#fff;
}
.nav ul a{
width: 165px;
padding: 10px 0px;
text-indent: 0;
}
.nav li:hover, .nav li.sfHover,
.nav a:focus, .nav a:hover, .nav a:active {
background:#f0d55b; /* hover highlight */
color:#fff;
}
.nav ul li:hover, .nav ul li.sfHover,
.nav ul a:focus, .nav ul a:hover, .nav ul a:active {
background:#4282a1; /* hover highlight */
width:165px;
}
.nav li li {
background:#f0d55b;
font-weight:normal;
text-align:left;
font-size:12px;
border-left:2px solid #f0d55b;
border-right:2px solid #f0d55b;
}
.nav li li li {
background:#f0d55b;
border-left:1px solid #fff;
}
.nav a.subfish {background:url(drop3/arrow.gif) 155px center no-
repeat;}
.nav a.subfish:hover {background:url(drop3/arrow_over.gif) 155px
center no-repeat;}
---
and it is called using
$(document).ready(function(){
$(".nav")
.superfish({
animation : { opacity:"show"},
delay : 0
})
.find(">li:has(ul)")
.mouseover(function(){