Mijn menu werkt niet in Firefox.....

Status
Niet open voor verdere reacties.

Deejaylaurens

Nieuwe gebruiker
Lid geworden
15 nov 2010
Berichten
2
Het menu wat ik in mijn site gebruik wil niet werken in Firefox. Het werkt wel in safari en internet explorer. Weet iemand een oplossing? Hieronder het script uit de head:

<SCRIPT>
<!--

if (window.Event) // Only Netscape will have the CAPITAL E.
document.captureEvents(Event.MOUSEUP); // catch the mouse up event

function nocontextmenu() // this function only applies to IE4, ignored otherwise.
{
event.cancelBubble = true
event.returnValue = false;

return false;
}

function norightclick(e) // This function is used by all others
{
if (window.Event) // again, IE or NAV?
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}

}

document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
//-->
</SCRIPT>

Dit is het script uit de body:

<script language="JavaScript">
function toonmenu(elmnt)
{
document.all(elmnt).style.visibility="visible"
}
function verstopmenu(elmnt)
{
document.all(elmnt).style.visibility="hidden"
}
</script>
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan