Da dass Problem nun gelöst ist und alles funktioniert, kommt hier die Lösung:
<html>
<head>
<link type="text/css" rel="stylesheet" href="../_Scripts/Default.css" />
<title></title>
<script language="JavaScript" type="text/javascript">
<!--
var x = 0;
var y = 0;
document.write('<div id="lctm" class="jsmenu"></div><div id="lsctm" class="jsmenu"></div>');
document.onmousedown = click;
function click() {
if (event.button == 2 || event.button == 3) {
x = event.clientX;
y = event.clientY;
lctm.style.left =x;
lctm.style.top = y;
lsctm.style.visibility = "hidden";
setTimeout('lctm.style.visibility = "visible";', 250);
}
else if (event.button == 1) {
setTimeout('lctm.style.visibility = "hidden";lsctm.style.visibility = "hidden";', 250);
}}
function change(item,xitem,men,type){
item.childNodes[0].childNodes[0].childNodes[1].setAttribute("bgcolor", "#316AC5", "false");
item.childNodes[0].childNodes[0].childNodes[2].setAttribute("bgcolor", "#316AC5", "false");
item.childNodes[0].childNodes[1].childNodes[1].setAttribute("bgcolor", "#316AC5", "false");
item.childNodes[0].childNodes[1].childNodes[2].setAttribute("bgcolor", "#C1D2EE", "false");
item.childNodes[0].childNodes[1].childNodes[3].setAttribute("bgcolor", "#C1D2EE", "false");
item.childNodes[0].childNodes[1].childNodes[4].setAttribute("bgcolor", "#C1D2EE", "false");
item.childNodes[0].childNodes[1].childNodes[5].setAttribute("bgcolor", "#C1D2EE", "false");
item.childNodes[0].childNodes[1].childNodes[6].setAttribute("bgcolor", "#C1D2EE", "false");
item.childNodes[0].childNodes[1].childNodes[7].setAttribute("bgcolor", "#C1D2EE", "false");
item.childNodes[0].childNodes[1].childNodes[8].setAttribute("bgcolor", "#C1D2EE", "false");
item.childNodes[0].childNodes[1].childNodes[9].setAttribute("bgcolor", "#316AC5", "false");
item.childNodes[0].childNodes[2].childNodes[1].setAttribute("bgcolor", "#316AC5", "false");
item.childNodes[0].childNodes[2].childNodes[2].setAttribute("bgcolor", "#316AC5", "false");
if (type == 0) {
if (xitem != 0) {
lsctm.style.left = x + 199;
lsctm.style.top = y + 5 + (men * 23);
document.all.lsctm.innerHTML = '';
cm(xitem,'lsctm');
setTimeout('lsctm.style.visibility = "visible";', 250);
}
else if(xitem == 0) {
setTimeout('lsctm.style.visibility = "hidden";', 250);
}
}
}
function xchange(item,xitem,men,type){
item.childNodes[0].childNodes[0].childNodes[1].setAttribute("bgcolor", "#ECE9D8", "false");
item.childNodes[0].childNodes[0].childNodes[2].setAttribute("bgcolor", "#FFFFFF", "false");
item.childNodes[0].childNodes[1].childNodes[1].setAttribute("bgcolor", "#ECE9D8", "false");
item.childNodes[0].childNodes[1].childNodes[2].setAttribute("bgcolor", "#ECE9D8", "false");
item.childNodes[0].childNodes[1].childNodes[3].setAttribute("bgcolor", "#ECE9D8", "false");
item.childNodes[0].childNodes[1].childNodes[4].setAttribute("bgcolor", "#ECE9D8", "false");
item.childNodes[0].childNodes[1].childNodes[5].setAttribute("bgcolor", "#FFFFFF", "false");
item.childNodes[0].childNodes[1].childNodes[6].setAttribute("bgcolor", "#FFFFFF", "false");
item.childNodes[0].childNodes[1].childNodes[7].setAttribute("bgcolor", "#FFFFFF", "false");
item.childNodes[0].childNodes[1].childNodes[8].setAttribute("bgcolor", "#FFFFFF", "false");
item.childNodes[0].childNodes[1].childNodes[9].setAttribute("bgcolor", "#FFFFFF", "false");
item.childNodes[0].childNodes[2].childNodes[1].setAttribute("bgcolor", "#ECE9D8", "false");
item.childNodes[0].childNodes[2].childNodes[2].setAttribute("bgcolor", "#FFFFFF", "false");
if (type == 0 && xitem == 0) {
setTimeout('lsctm.style.visibility = "hidden";', 250);
}
}
var ctm = new Array();
ctm [0] = cme('ctm','Main.htm?Eintrag1','','Eintrag1',0,0,0,0,0,0);
ctm [1] = cme('ctm','Main.htm?Eintrag2','','Eintrag2',0,0,1,1,1,0);
ctm [2] = cme('ctm','Main.htm?Eintrag3','','Eintrag3',0,'sm0',0,2,0,0);
ctm [3] = cme('ctm','Main.htm?Eintrag4','','Eintrag4',0,0,1,3,0,0);
ctm [4] = cme('ctm','Main.htm?Eintrag5','','Eintrag5',0,0,0,4,0,1);
cm(ctm,'lctm');
var sm0 = new Array();
sm0 [0] = cme('sm0','Main.htm?Eintrag3.1','','Eintrag3.1',1,0,1,0,0,0);
sm0 [1] = cme('sm0','Main.htm?Eintrag3.2','','Eintrag3.2',1,0,0,1,1,1);
function cme(lid,url,pic,msg,typ,sme,mmb,men,hme,lme) {
var path = "";
var a = document.location.href;
var b = a.slice(0, a.indexOf("final/")+6);
var c = b.split("/")
for (var i=0; i < c.length; i++) {
path += "../";
}
var entry = '<div id="' + lid + men + '"><table border="0" cellspacing="0" cellpadding="0" width="198" height="22" onMouseover="change(this,';
entry += (sme != 0) ? sme : 0;
entry += ',' + men + ',' + typ + ');" onMouseout="xchange(this,';
entry += (sme != 0) ? sme : 0;
entry += ',' + men + ',' + typ + ');" onClick="document.location.href=' + unescape('%27') + url + unescape('%27') +';"><tbody><tr><td width="1" height="1" bgcolor="#ECE9D8"></td><td width="25" height="1" bgcolor="#ECE9D8" colspan="4"></td><td width="171" height="1" colspan="5"></td><td width="1" height="1"></td></tr><tr><td width="1" height="20" bgcolor="#ECE9D8"></td><td width="1" height="20" bgcolor="#ECE9D8"></td><td width="4" height="20" bgcolor="#ECE9D8"></td><td width="16" height="20" bgcolor="#ECE9D8" align="center" valign="center">';
entry += (pic != '') ? '<img src="' + path + '_Media/menu-' + pic + '.jpg" width="16" height="16" />' : '';
entry += '</td><td width="4" height="20" bgcolor="#ECE9D8"></td><td width="8" height="20"></td><td width="138" height="20" align="left" valign="center">' + msg + '</td><td width="16" height="20" align="center" valign="center">';
entry += (sme != 0) ? '<img border="0" src="' + path + '_Media/menu-arrow.gif" width="16" height="16" />' : '';
entry += '</td><td width="8" height="20"></td><td width="1" height="20"></td><td width="1" height="20"></td></tr><tr><td width="1" height="1" bgcolor="#ECE9D8"></td><td width="25" height="1" bgcolor="#ECE9D8" colspan="4"></td><td width="171" height="1" colspan="5"></td><td width="1" height="1"></td></tr></tbody></table></div>';
if (lme == 0) {
entry += '<table border="0" cellspacing="0" cellpadding="0" width="198" height="1"><tbody><tr><td width="26" height="1" bgcolor="#ECE9D8"></td><td width="172" height="1"></td></tr></tbody></table><table border="0" cellspacing="0" cellpadding="0" width="198" height="1"><tbody><tr><td width="26" height="1" bgcolor="#ECE9D8"></td><td width="8" heigth="1"></td><td width="164" height="1" bgcolor="';
entry += (mmb == 1) ? '#C5C2B8' : '#FFFFFF';
entry += '"></td></tr></tbody></table><table border="0" cellspacing="0" cellpadding="0" width="198" height="1"><tbody><tr><td width="26" height="1" bgcolor="#ECE9D8"></td><td width="172" height="1"></td></tr></tbody></table>';
}
else if (lme == 1) {
entry += '<table border="0" cellspacing="0" cellpadding="0" width="198" height="1"><tbody><tr><td width="198" height="1"></td></tr></tbody></table>';
}
return entry;
}
function cm(aid,lid) {
var output = '<table border="0" cellspacing="0" cellpadding="0" width="200"><tbody><tr><td width="200" height="1" bgcolor="#8A867A" colspan="3"></td></tr><tr><td width="1" bgcolor="#8A867A"></td><td width="198" bgcolor="#FFFFFF" align="center" valign="center"><table border="0" cellspacing="0" cellpadding="0" width="198" height="1"><tbody><tr><td width="198" height="1"></td></tr></tbody></table>';
for (var i = 0; i < aid.length; i++) {
output += aid[i];
}
output += '</td><td width="1" bgcolor="#8A867A"></td></tr><tr><td width="200" height="1" bgcolor="#8A867A" colspan="3"></td></tr></tbody></table>';
document.all[lid].innerHTML = output;
f.xyz.value = output;
}
-->
</script>
</head>
<body oncontextmenu="return false;">
</body>
</html>
Ist natürlich noch nicht fertig!
Nochmals danke und Gruß