Joomla-SMF Bridge + suckerfish menu + ie = Bug

Started by robertd, August 22, 2006, 10:41:22 AM

Previous topic - Next topic

robertd

Hi there,
I'm currently working on a SMF forum installation within a website based on Joomla! CMS. I use Orstio's Bridge 1.1.5 to connect together Joomla! And SMF and it work perfectly. However I integrated the css suckerfish dropdown menu to the site and the JavaScript used to make suckerfish compatible with Microsoft Internet explorer seems to interfere with the bridge. The menu behaves properly until we log into SMF, then the dropdown flashes every time the mouse is rollout of an element of the submenu. This behavior is only active in Internet explorer as for Firefox the menu works fine, probably because it doesn't use JavaScript.

Here's the JavaScript used:
<script type="text/javascript">
sfHover = function() {
var sfEls = document.getElementById("mainlevelmainnav")
.getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls.onmouseover=function() {
this.className+=" sfhover";
}
sfEls.onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
</script>

Here's the version of the tools I use:
Bridge: Orstio's Bridge 1.1.5
Forum: SMF 1.1 RC2
Joomla!: 1.0.10 Stable
Suckerfish Menu: hxxp:www.alistapart.com/articles/dropdowns/ [nonactive]
If anyone knows where the problem comes from or how to resolve that bug, it would be very appreciated.   

Thanks

Dom

Advertisement: