Forum Moderators: open

Message Too Old, No Replies

Mouseover issue in Mozilla

Or maybe I'm getting tripped ip by the DOM?

         

photon

5:00 pm on Jan 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've created a a "pop-out" menu that works in IE and Opera, but not Firebird (even when I disable the popup stopper). When I mouse over certain text, a submenu is supposed to appear next to that text.

The HTML:


<span onmouseover="showMenu('television')">Television Links</span>

And the javascript function:


function showMenu(pick_menu) {
menu_top = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop;
document.getElementById(pick_menu).style.top = menu_top - 270;
document.getElementById(pick_menu).style.visibility = "visible";
}

Am I using something specific to IE for this? Or are there differences in the DOM I'm not adjusting for?

Thanks for your help.

korkus2000

6:20 pm on Jan 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmm not sure about that. Are you getting any kind off JS error on Firebird?

BlobFisk

6:23 pm on Jan 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried:

menu_top = eval(window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop);

photon

10:06 pm on Jan 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No error message. Just nothing happens. It's like the
onmouseover
isn't even firing.

I just tried the eval. That didn't help either.

I appreciate the suggestions though.