Hallo ich habe hier folgendes menu:
<STYLE>
#contextMenu
{
position: absolute;
visibility: hidden;
width: 202px;
background-color: #F0F0F0;
layer-background-color: #F0F0F0;
border: 2px outset white;
}
a.menu
{
font-weight: bold;
color: #777777;
width: 100%;
cursor: default;
}
a.menuOn
{
color: #999999;
font-weight: bold;
width: 100%;
cursor: hand;
}
</STYLE>
<SCRIPT>
var menu;
var a, b, c, g;
function showMenu (evt,d,e,f,h) {
a = d;
b = e;
c = f;
g = h;
if (document.all) {
document.all.contextMenu.style.left = document.body.scrollLeft + event.clientX
document.all.contextMenu.style.top = document.body.scrollTop + event.clientY
document.all.contextMenu.style.visibility = 'visible';
return false;
}
else if (document.layers) {
if (evt.which == 3) {
document.contextMenu.left = evt.x;
document.contextMenu.top = evt.y;
document.contextMenu.onmouseout =
function (evt) { this.visibility = 'hide'; };
document.contextMenu.visibility = 'show';
return false;
}
}
else if (document.getElementById) {
if (evt.button == 3) {
evt.preventDefault();
var menu = document.getElementById('contextMenu');
menu.style.left = evt.pageX + 'px';
menu.style.top = evt.pageY + 'px';
menu.style.visibility = 'visible';
return false;
}
}
return true;
}
function goto_kolo()
{
location.href = "index.php?p=inseln&p2=reserve&k_o=" + escape(a) + "&k_ig=" + escape(b) + "&k_in=" + escape(c);
}
function goto_spio()
{
location.href = "index.php?p=spio&view=true&id=" + escape(g);
}
</SCRIPT>
mein problem is, dass das ganze nur im IE mit onclick=showMenu(onclick,1,1,1,1) funktioniert aber bei Netscape nix geht... vielleicht kann mir ja jemand helfen
gruss paschy