Hi,
q1)I did a suckerfish menu copied and altered from the hot dog site. It works in FF but not in IE as all i get is the links but no dropdown as in FireFox. I really hate this when IE fails . I put all the css/JS between the head tag.
q2)I can’t move the menu to the right without problems as i set a margin on #headlinks2 and the links get cluttered?
#headlinks2 {
height:25px;
}
#headlinks2 a {
color:green;
display: block;
text-decoration:none;
width: 100px;
font-size:13pt;
padding-right:5px;
//margin-left:205px;
}
#headlinks2 a:hover {
color: white;
}
#headlinks2, #headlinks2 ul {
padding: 0;
margin: 0;
list-style: none;
}
#headlinks2 li {
float: left;
width: 100px;
}
#headlinks2 li ul {
position: absolute;
width: 100px;
left: -999em;
}
#headlinks2 li:hover ul {
left: auto;
}
#headlinks2 li:hover ul, #headlinks2 li.sfhover ul {
left: auto;
}
</style>
<script type=”text/javascript”>
sfHover = function() {
var sfEls = document.getElementById(“nav”).getElementsByTagName(“LI”);
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=” sfhover”;
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(” sfhover
}
}
}
if (window.attachEvent) window.attachEvent(“onload”, sfHover);
</script>
//html
<div id=”headlinks2″>
<li><a href=”#”>Percoidei</a>
<ul>
<li><a href=”#”>Remoras</a></li>
<li><a href=”#”>Tilefishes</a></li>
<li><a href=”#”>Bluefishes</a></li>
</ul>
</li>
<li><a href=”#”>Anabant</a>
<ul>
<li><a href=”#”>Climbing perches</a></li>
<li><a href=”#”>Labyrinthfishes</a></li>
<li><a href=”#”>mex</a></li>
</ul>
</li>
<li><a href=”#”>Percoidei</a>
<ul>
<li><a href=”#”>Remoras</a></li>
<li><a href=”#”>Tilefishes</a></li>
<li><a href=”#”>Bluefishes</a></li>
</ul>
</li>
<li><a href=”#”>Anabant</a>
<ul>
<li><a href=”#”>Climbing perches</a></li>
<li><a href=”#”>Labyrinthfishes</a></li>
<li><a href=”#”>mex</a></li>
</ul>
</li>
<li><a href=”#”>Percoidei</a>
<ul>
<li><a href=”#”>Remoras</a></li>
<li><a href=”#”>Tilefishes</a></li>
<li><a href=”#”>Bluefishes</a></li>
</ul>
</li>
<!– etc. –>
</div>