Forum Moderators: not2easy
IDs are meant for one element and one only- you cannot "duplicate" IDs... perhaps Billegal meant for you to create another ID that has the same style information, just with a different position on the page.
If you just created a second version of your menu ID and gave it different position coordinates, this would be a valid reason as to why it's not working for you. As Billegal said, change the ID to a class, or just create a new ID for the new menu.
The SuckerFish JS that tierd is using is probably ID specific.
There is a way to make it less specific, but Im really not sure of it's stability or x-browser compatibility?
So although I don't know of any downsides of using this less specific code here it is.. perhaps someone else can point out if there would be a downside to using this?
<script type="text/javascript"><!--//--><![CDATA[//><!--sfHover = function() {
var sfEls = document.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>
it's less specific as some versions of the SF code get the element by it's ID instead and then grab the childnode <li>'s where as this just blanket targets all <li>'s in page..
but you can just CSS the ones you want effects on, no?
Suzy