Hi,
You can add the basic drop down into your code quite easily.
Code:
ul#navlist li:hover ul#subnavlist,
ul#navlist li.over ul#subnavlist
{
display: block;
position: absolute;
font-size: 8pt;
padding-top: 0px;
border: 3px #ffffff solid;
left:0;
}
* html ul#navlist li.over ul#subnavlist{margin-top:1.5em;}
ul#navlist li:hover ul#subnavlist li a,
ul#navlist li.over ul#subnavlist li a
{
display: block;
width: 350px;
border: none;
padding: 2px;
border: 0px #ffffff solid;
color: #2c5b85;
text-decoration: none;
background-color: #9c3;
}
You may need to tweak the positions a bit for ie but the above is more or less the same.
Then just add the js:
Code:
<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
var sfEls = document.getElementById("navlist").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" over";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" over\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>
Bookmarks