I'm using the pre-installed scripts in DreamWeaver MX for mouseover buttons and hide/show layer. They seem pretty solid, never had a problem with the mouseover buttons in any browser. Makes my life simpler. It's the hide/show layer addition to the script that makes me want to pull what little hair I have left out.
Here is a demo of a site I'm building at work:
http://www.thegazz.com/demo (I only build them, I don't name them).
In both IE and Firefox the mouseovers with drop down layers work fine. It's when I goto hover over the layers that IE faulters. I figured it was a compatability issue, that maybe IE doesn't recognize mouseovers in div tags. What really confuses me, if you test the demo, the first drop down works and stays. The structure is the same for each layer, so I'm stumped. Why would it work for the first and not the others? And the code obviously works since the mouseover portion shows.
Code:
// Example: showHideLayers(Layer1,'','show',Layer2,'','hide');
function showHideLayers()
{
var i, visStr, obj, args = showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3)
{
if ((obj = MM_findObj(args[i])) != null)
{
visStr = args[i+2];
if (obj.style)
{
obj = obj.style;
if(visStr == 'show') visStr = 'visible';
else if(visStr == 'hide') visStr = 'hidden';
}
obj.visibility = visStr;
}
}
}