Ich habe den Code so umgeschrieben, daß du nun auch ein "target" für die Einträge im Menü bestimmen kannst.
[edit] Ich habe den Code nochmal überarbeitet. Du kannst jetzt für jeden Eintrag im Menü ein eigenes target bestimmen.[/edit]
[code:1]<HEAD>
<STYLE TYPE="text/css">
<!--
.menuh {
BORDER-COLOR : #88FFFF ;
cursor : hand ;
Border-Left : #88FFFF ;
Border-Top : #88FFFF ;
Padding-Left : 1px ;
Padding-Top : 1px ;
Background-Color : #88FFFF ;
}
.menu {
Background-Color : white ;
}
.home {
cursor : hand ;
}
.menulinks{
text-decoration:none;
}
//-->
</STYLE>
<title>Zara's Experiment mit dem Menü</title>
</head>
<body bgcolor="#000000" leftmargin="120" marginwidth="0" text="#FFFFFF" link="#0000FF" vlink="#0000AA" alink="#0077FF">
<SCRIPT Language="Javascript1.2">
<!--
/*
Static menu script II (By maXimus, maximus@nsimail.com, http://maximus.ravecore.com/)
Modified slightly/ permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
//configure below variable for menu width, position on page
var menuwidth=110
var offsetleft=10
var offsettop=20
var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
function makeStatic() {
if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop}
else if (ns6) {document.getElementById("object1").style.top=window.pageYOffset+offsettop}
else if (ns4) {eval(document.object1.top=eval(window.pageYOffset+offsettop));}
setTimeout("makeStatic()",0);
}
if (ie4||ns6) {document.write('<span ALIGN="CENTER" ID="object1" STYLE="Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;background-color:black;"><TABLE BORDER="1" width="'+menuwidth+'" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR=#0000FF bgcolor="white">')}
else if (ns4){ document.write('<LAYER top="20" name="object1" left="'+offsetleft+'" BGCOLOR=black><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="1"><TR><TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="'+menuwidth+'">')}
if (ie4||ns6||ns4)
document.write('<TR><TD BGCOLOR="#3366FF" BORDERCOLORDARK="#99CCFF" BORDERCOLORLIGHT="#000066"><P ALIGN=CENTER><FONT SIZE="4" FACE=ARIAL>Auswahl</FONT></TD></TR>')
var menui = new Array();
var menul = new Array();
var menut = new Array();
//configure below for menu items. Extend list as desired
//Einträge im Menü
menui[0]="Homepage";
menui[1]="Forcena-Inn";
menui[2]="SDC-Forum";
//Link der Einträge
menul[0]="http://zara-x.de.vu";
menul[1]="http://www.forcena-inn.de";
menul[2]="http://www.sdc-forum.de";
//target der Einträge
menut[0]="_blank";
menut[1]="_self";
menut[2]="_self";
for (i=0;i<=menui.length-1;i++)
if (ie4||ns6) {document.write('<TR><TD BORDERCOLOR="white" onmouseover="className=\'menuh\'" onMouseout="className=\'menu\'"><CENTER><A HREF="'+menul+'" target="'+menut+'" class=menulinks>'+menui+'</A></TD></TR>')}
else if (ns4) {document.write('<TR><TD BGCOLOR="white"><ILAYER><LAYER width="'+menuwidth+'" onmouseover="bgColor=\'yellow\'" onmouseout="bgColor=\'white\'"><CENTER><A HREF="'+menul+'" target="'+menut+'" class=menulinks>'+menui+'</A></CENTER></LAYER></ILAYER></TD></TR>')}
if (ie4||ns6) {document.write('</TABLE></span>')}
else if (ns4){document.write('</TABLE></TD></TR></TABLE></LAYER>')}
function menu3(){
if (ns6||ie4||ns4)
makeStatic()
}
window.onload=menu3
//-->
</SCRIPT>
<center><p><b>Viel Spaß mit diesem modifizierten Menü.</b></p>
<p>Du kannst jetzt jedem Menüeintrag ein eigenes target zuordnen.</p></center>
</BODY>[/code:1]
Ich habe das zwar mit Frames noch nicht getestet, aber es sollte problemlos funktionieren.