Forum Moderators: open

Message Too Old, No Replies

Mac-related bugs with my DIV layers

         

monkeycube

1:27 am on Jan 26, 2004 (gmt 0)



Looking for a solution/advice for my recent Mac-related bugs on some DIV layers. I am working on a site and the problem is currently located at:

<Sorry, no URLs. See TOS [webmasterworld.com]>

Mousing over the five main navigation elements will show a menu (it's an image contained within a hidden layer). In all cases, onMouseOut will tell it to hide the layer again, except when mousing over the respective drop-down layer itself. (I've added an onMouseOver to that layer, telling it to keep showing it). Now, this seems to work perfectly in IE in Windows. But in IE on a Mac, the menu disappears completely if you try to mouse over it.

I'm assuming there's some cross-platform issue with how the javascipt code is functioning. If anyone out there could be of assistance, it would be much appreciated.

Thanks!

[edited by: tedster at 2:38 am (utc) on Jan. 26, 2004]

isitreal

3:56 pm on Jan 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Mac IE is very very buggy when it comes to Javascript suppport, the best bet is to neutralize the Javascript if it's Mac IE running it. You can do a test like this:

nua = navigator.userAgent;
if ( (nua.indexOf('Mac')!=-1) && (nua.indexOf('MSIE')!=-1) )
{
execute statement;
}
else
{
execute the code you want to run to change the background
}

Debugging Javascript code so it will work in Mac IE is an exercise in futility, especially since MS IE for Mac has been dumped, and all new macs come with Safari.