Hallo zusammen,
ich habe mit Xara menu maker ein Navigationsmenü erstellt (js). Ich möchte gerne einen Link in dem Menü mit onclick window.open (neues Fenster, bestimmte Größe ) öffnen. Leider weiß ich nicht wo ich das in der js. Datei eingeben muß.
Please help ....
Hier das, was ich einfügen möchte:
code:<a href="cgi-bin/pfad/datei.cgi" title="Titel" target="_top" onclick="window.open(this. href,'','alwaysRaised=yes,toolbar=yes,location=yes,menubar=yes,scrollbars=yes,resizable=yes,director
ies=no,width=650,height=500,screenX=10,top=10,left=10,screenY=10');return false;">Linkname</a>
Hier Inhalt der einen vorhandenen.js Datei:
code:if(typeof(loc)=="undefined"||loc==""){var loc="";if(document.body&&document.body.innerHTML){var tt=document.body.innerHTML.toLowerCase();var last=tt.indexOf("abv.js\"");if(last>0){var first=tt.lastIndexOf("\"",last);if(first>0&&first<last)loc=document.body.innerHTML.substr(first+1,la st-first-1);}}}
var bd=0
document.write("<style type=\"text/css\">");
document.write("\n<!--\n");
document.write(".abv_menu {border-color:black;border-style:solid;border-width:"+bd+"px 0px "+bd+"px 0px;background-color:#cc0000;position:absolute;left:0px;top:0px;visibility:hidden;}");
document.write("a.abv_plain:link, a.abv_plain:visited{text-align:left;background-color:#cc0000;color:#ffffff;text-decoration:none;border-color:black;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:8pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
document.write("a.abv_plain:hover, a.abv_plain:active{background-color:#f3f3f3;color:#555555;text-decoration:none;border-color:black;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:8pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
document.write("a.abv_l:link, a.abv_l:visited{text-align:left;background:#cc0000 url("+loc+"abv_l.gif) no-repeat right;;color:#ffffff;text-decoration:none;border-color:black;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:8pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
document.write("a.abv_l:hover, a.abv_l:active{background:#f3f3f3 url("+loc+"abv_l2.gif) no-repeat right;color: #555555;text-decoration:none;border-color:black;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:8pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
document.write("\n-->\n");
document.write("</style>");
var fc=0x555555;
var bc=0xf3f3f3;
if(typeof(frames)=="undefined"){var frames=4;if(frames>0)animate();}
startMainMenu("",0,0,2,0,0)
mainMenuItem("abv_b1",".gif",14,38,loc+"../../1.php","","Eins",2,2,"abv_plain");
mainMenuItem("abv_b2",".gif",14,58,loc+"../../2.php","","Zwei",2,2,"abv_plain");
mainMenuItem("abv_b3",".gif",14,51,loc+"../../3.php","","Drei",2,2,"abv_plain");
mainMenuItem("abv_b4",".gif",14,54,loc+"../../4.php","","Vier",2,2,"abv_plain");
mainMenuItem("abv_b5",".gif",14,75,loc+"../../5.php","","Fuenf",2,2,"abv_plain");
mainMenuItem("abv_b6",".gif",14,65,loc+"../../cgi-bin/pfad/datei.cgi","","Sechs",2,2,"abv_plain");
mainMenuItem("abv_b7",".gif",14,93,loc+"../../7.php","","Sieben",2,2,"abv_plain");
mainMenuItem("abv_b8",".gif",14,37,loc+"../../8.php","","Acht",2,2,"abv_plain");
mainMenuItem("abv_b9",".gif",14,73,loc+"../../9.php","","Neun",2,2,"abv_plain");
mainMenuItem("abv_b10",".gif",14,50,loc+"../../10.php","","Zehn",2,2,"abv_plain");
endMainMenu("",0,0);
startSubmenu("abv_b3","abv_menu",167);
submenuItem("Unterpunkt_a_zuDrei",loc+"../../a.php","","abv_plain");
submenuItem("Unterpunkt_b_zuDrei",loc+"../../b.php","","abv_plain");
submenuItem("Unterpunkt_3_zuDrei",loc+"../../c.php","","abv_plain");
submenuItem("Unterpunkt_d_zuDrei",loc+"../../d.php","","abv_plain");
submenuItem("Unterpunkt_e_zuDrei",loc+"../../e.php","","abv_plain");
submenuItem("Unterpunkt_f_zuDrei",loc+"../../f.php","","abv_plain");
submenuItem("Unterpunkt_g_zuDrei",loc+"../../g.php","","abv_plain");
submenuItem("Unterpunkt_h_zuDrei",loc+"../../h.php","","abv_plain");
endSubmenu("abv_b3");
startSubmenu("abv_b2_4","abv_menu",118);
submenuItem("x1",loc+"../../x1.php","","abv_plain");
submenuItem("x2",loc+"../../x2.php","","abv_plain");
submenuItem("x3",loc+"../../x3.php","","abv_plain");
submenuItem("x4",loc+"../../x4.php","","abv_plain");
endSubmenu("abv_b2_4");
startSubmenu("abv_b2_2","abv_menu",240);
submenuItem("y1",loc+"../../y1.php","","abv_plain");
submenuItem("y2",loc+"../../y2.php","","abv_plain");
submenuItem("y3",loc+"../../y3.php","","abv_plain");
submenuItem("y4",loc+"../../y4.php","","abv_plain");
submenuItem("y5",loc+"../../y5.php","","abv_plain");
submenuItem("y6",loc+"../../y6.php","","abv_plain");
submenuItem("y7",loc+"../../y7.php","","abv_plain");
submenuItem("y8",loc+"../../y8.php","","abv_plain");
submenuItem("y9",loc+"../../y9.php","","abv_plain");
submenuItem("y10",loc+"../../y10.php","","abv_plain");
endSubmenu("abv_b2_2");
startSubmenu("abv_b2","abv_menu",101);
submenuItem("xx1",loc+"../../xx1.php","","abv_plain");
mainMenuItem("abv_b2_2","yy1",0,0,loc+"../../yy1.php","","",1,1,"abv_l");
submenuItem("xx2",loc+"../../xx2.php","","abv_plain");
mainMenuItem("abv_b2_4","yy2",0,0,loc+"../../yy2.php","","",1,1,"abv_l");
endSubmenu("abv_b2");
loc="";
die andere. .js Datei folgt im nächsten Beitrag ......
ich habe mit Xara menu maker ein Navigationsmenü erstellt (js). Ich möchte gerne einen Link in dem Menü mit onclick window.open (neues Fenster, bestimmte Größe ) öffnen. Leider weiß ich nicht wo ich das in der js. Datei eingeben muß.
Please help ....
Hier das, was ich einfügen möchte:
code:<a href="cgi-bin/pfad/datei.cgi" title="Titel" target="_top" onclick="window.open(this. href,'','alwaysRaised=yes,toolbar=yes,location=yes,menubar=yes,scrollbars=yes,resizable=yes,director
ies=no,width=650,height=500,screenX=10,top=10,left=10,screenY=10');return false;">Linkname</a>
Hier Inhalt der einen vorhandenen.js Datei:
code:if(typeof(loc)=="undefined"||loc==""){var loc="";if(document.body&&document.body.innerHTML){var tt=document.body.innerHTML.toLowerCase();var last=tt.indexOf("abv.js\"");if(last>0){var first=tt.lastIndexOf("\"",last);if(first>0&&first<last)loc=document.body.innerHTML.substr(first+1,la st-first-1);}}}
var bd=0
document.write("<style type=\"text/css\">");
document.write("\n<!--\n");
document.write(".abv_menu {border-color:black;border-style:solid;border-width:"+bd+"px 0px "+bd+"px 0px;background-color:#cc0000;position:absolute;left:0px;top:0px;visibility:hidden;}");
document.write("a.abv_plain:link, a.abv_plain:visited{text-align:left;background-color:#cc0000;color:#ffffff;text-decoration:none;border-color:black;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:8pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
document.write("a.abv_plain:hover, a.abv_plain:active{background-color:#f3f3f3;color:#555555;text-decoration:none;border-color:black;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:8pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
document.write("a.abv_l:link, a.abv_l:visited{text-align:left;background:#cc0000 url("+loc+"abv_l.gif) no-repeat right;;color:#ffffff;text-decoration:none;border-color:black;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:8pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
document.write("a.abv_l:hover, a.abv_l:active{background:#f3f3f3 url("+loc+"abv_l2.gif) no-repeat right;color: #555555;text-decoration:none;border-color:black;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:8pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
document.write("\n-->\n");
document.write("</style>");
var fc=0x555555;
var bc=0xf3f3f3;
if(typeof(frames)=="undefined"){var frames=4;if(frames>0)animate();}
startMainMenu("",0,0,2,0,0)
mainMenuItem("abv_b1",".gif",14,38,loc+"../../1.php","","Eins",2,2,"abv_plain");
mainMenuItem("abv_b2",".gif",14,58,loc+"../../2.php","","Zwei",2,2,"abv_plain");
mainMenuItem("abv_b3",".gif",14,51,loc+"../../3.php","","Drei",2,2,"abv_plain");
mainMenuItem("abv_b4",".gif",14,54,loc+"../../4.php","","Vier",2,2,"abv_plain");
mainMenuItem("abv_b5",".gif",14,75,loc+"../../5.php","","Fuenf",2,2,"abv_plain");
mainMenuItem("abv_b6",".gif",14,65,loc+"../../cgi-bin/pfad/datei.cgi","","Sechs",2,2,"abv_plain");
mainMenuItem("abv_b7",".gif",14,93,loc+"../../7.php","","Sieben",2,2,"abv_plain");
mainMenuItem("abv_b8",".gif",14,37,loc+"../../8.php","","Acht",2,2,"abv_plain");
mainMenuItem("abv_b9",".gif",14,73,loc+"../../9.php","","Neun",2,2,"abv_plain");
mainMenuItem("abv_b10",".gif",14,50,loc+"../../10.php","","Zehn",2,2,"abv_plain");
endMainMenu("",0,0);
startSubmenu("abv_b3","abv_menu",167);
submenuItem("Unterpunkt_a_zuDrei",loc+"../../a.php","","abv_plain");
submenuItem("Unterpunkt_b_zuDrei",loc+"../../b.php","","abv_plain");
submenuItem("Unterpunkt_3_zuDrei",loc+"../../c.php","","abv_plain");
submenuItem("Unterpunkt_d_zuDrei",loc+"../../d.php","","abv_plain");
submenuItem("Unterpunkt_e_zuDrei",loc+"../../e.php","","abv_plain");
submenuItem("Unterpunkt_f_zuDrei",loc+"../../f.php","","abv_plain");
submenuItem("Unterpunkt_g_zuDrei",loc+"../../g.php","","abv_plain");
submenuItem("Unterpunkt_h_zuDrei",loc+"../../h.php","","abv_plain");
endSubmenu("abv_b3");
startSubmenu("abv_b2_4","abv_menu",118);
submenuItem("x1",loc+"../../x1.php","","abv_plain");
submenuItem("x2",loc+"../../x2.php","","abv_plain");
submenuItem("x3",loc+"../../x3.php","","abv_plain");
submenuItem("x4",loc+"../../x4.php","","abv_plain");
endSubmenu("abv_b2_4");
startSubmenu("abv_b2_2","abv_menu",240);
submenuItem("y1",loc+"../../y1.php","","abv_plain");
submenuItem("y2",loc+"../../y2.php","","abv_plain");
submenuItem("y3",loc+"../../y3.php","","abv_plain");
submenuItem("y4",loc+"../../y4.php","","abv_plain");
submenuItem("y5",loc+"../../y5.php","","abv_plain");
submenuItem("y6",loc+"../../y6.php","","abv_plain");
submenuItem("y7",loc+"../../y7.php","","abv_plain");
submenuItem("y8",loc+"../../y8.php","","abv_plain");
submenuItem("y9",loc+"../../y9.php","","abv_plain");
submenuItem("y10",loc+"../../y10.php","","abv_plain");
endSubmenu("abv_b2_2");
startSubmenu("abv_b2","abv_menu",101);
submenuItem("xx1",loc+"../../xx1.php","","abv_plain");
mainMenuItem("abv_b2_2","yy1",0,0,loc+"../../yy1.php","","",1,1,"abv_l");
submenuItem("xx2",loc+"../../xx2.php","","abv_plain");
mainMenuItem("abv_b2_4","yy2",0,0,loc+"../../yy2.php","","",1,1,"abv_l");
endSubmenu("abv_b2");
loc="";
die andere. .js Datei folgt im nächsten Beitrag ......
Kommentar