javascript menus help

Κώδικας, πληροφορίες, ερωτήσεις και απαντήσεις σχετικές με την JavaScript.

Συντονιστές: WebDev Moderators, Super-Moderators

Απάντηση
kuba90
Δημοσιεύσεις: 48
Εγγραφή: 21 Απρ 2003 12:30
Τοποθεσία: almyros bolou

javascript menus help

Δημοσίευση από kuba90 » 24 Ιούλ 2003 22:08

exo ftiaksi ena javascript me to xara menu maker.

to sozi san .js
pao se mai selida kai se ena layer layer10 BAZO TON EKSIS KODIKA

<script menumaker>document.write('<scr'+'ipt src="xaramenu.js">'+'</scr'+'ipt>');document.write('<scr'+'ipt src="camden.js">'+'</scr'+'ipt>');/*img src="camden.png" moduleid="Default (Project)\camden1_off.xws"*/</script>

o kodikas to javascript (camdem.js) einai to eksis:
if(typeof(loc)=="undefined"||loc==""){var loc="";if(document.body&&document.body.innerHTML){var tt=document.body.innerHTML.toLowerCase();var last=tt.indexOf("camden.js\"");if(last>0){var first=tt.lastIndexOf("\"",last);if(first>0&&first<last)loc=document.body.innerHTML.substr(first+1,last-first-1);}}}

var bd=2
document.write("<style type=\"text/css\">");
document.write("\n<!--\n");
var tr="filter:alpha(opacity=99);";if(IE5) tr="";
document.write(".camden_menu {"+tr+"border-color:#cecece;border-style:solid;border-width:"+bd+"px 0px "+bd+"px 0px;background-color:#c0c0be;position:absolute;left:0px;top:0px;visibility:hidden;}");
document.write("a.camden_plain:link, a.camden_plain:visited{text-align:left;background-color:#c0c0be;color:#0b0909;text-decoration:none;border-color:#cecece;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:10pt;font-family:Arial, Helvetica, sans-serif;}");
document.write("a.camden_plain:hover, a.camden_plain:active{background-color:#c01f1f;color:#080202;text-decoration:none;border-color:#cecece;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:10pt;font-family:Arial, Helvetica, sans-serif;}");
document.write("a.camden_l:link, a.camden_l:visited{text-align:left;background:#c0c0be url("+loc+"camden_l.gif) no-repeat right;color:#0b0909;text-decoration:none;border-color:#cecece;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:10pt;font-family:Arial, Helvetica, sans-serif;}");
document.write("a.camden_l:hover, a.camden_l:active{background:#c01f1f url("+loc+"camden_l2.gif) no-repeat right;color: #080202;text-decoration:none;border-color:#cecece;border-style:solid;border-width:0px "+bd+"px 0px "+bd+"px;padding:2px 0px 2px 0px;cursor:hand;display:block;font-size:10pt;font-family:Arial, Helvetica, sans-serif;}");
document.write("\n-->\n");
document.write("</style>");

var fc=0x080202;
var bc=0xc01f1f;
if(typeof(frames)=="undefined"){var frames=0;}

startMainMenu("",0,0,2,0,0)
mainMenuItem("camden_b1",".png",27,114,loc+"index2.htm","","Home",2,2,"camden_plain");
mainMenuItem("camden_b2",".png",27,114,"http://members.lycos.co.uk/textbasedrpg ... mden_plain");
mainMenuItem("camden_b3",".png",27,114,loc+"advertise.htm","","Advertise",2,2,"camden_plain");
mainMenuItem("camden_b4",".png",27,114,"javascript:;","","security",2,2,"camden_plain");
mainMenuItem("camden_b5",".png",27,114,"javascript:;","","Hacking",2,2,"camden_plain");
mainMenuItem("camden_b6",".png",27,114,"javascript:;","","webdesign",2,2,"camden_plain");
endMainMenu("",0,0);

startSubmenu("camden_b6","camden_menu",114);
submenuItem("themes",loc+"themes.php","","camden_plain");
submenuItem("order site",loc+"ordersite.php","","camden_plain");
submenuItem("tips",loc+"tips.php","","camden_plain");
endSubmenu("camden_b6");

startSubmenu("camden_b5","camden_menu",114);
submenuItem("mIRC",loc+"mirc.php","","camden_plain");
submenuItem("Nukers",loc+"nukers.php","","camden_plain");
submenuItem("scanners",loc+"scanners.php","","camden_plain");
submenuItem("trojans",loc+"trojans.php","","camden_plain");
submenuItem("mail bombers",loc+"mailbombers.php","","camden_plain");
endSubmenu("camden_b5");

startSubmenu("camden_b4_1","camden_menu",60);
submenuItem("norton",loc+"anorton.php","","camden_plain");
submenuItem("mcafee",loc+"amcafee.php","","camden_plain");
submenuItem("bid",loc+"abid.php","","camden_plain");
endSubmenu("camden_b4_1");

startSubmenu("camden_b4_2","camden_menu",60);
submenuItem("norton",loc+"fnorton.php","","camden_plain");
submenuItem("mcafee",loc+"fmcafee.php","","camden_plain");
submenuItem("others",loc+"fothers.php","","camden_plain");
endSubmenu("camden_b4_2");

startSubmenu("camden_b4","camden_menu",114);
mainMenuItem("camden_b4_1","antiviruses",0,0,"javascript:;","","",1,1,"camden_l");
mainMenuItem("camden_b4_2","firewalls",0,0,"javascript:;","","",1,1,"camden_l");
submenuItem("port listeners",loc+"portlisteners.php","","camden_plain");
submenuItem("encryption",loc+"encryption.php","","camden_plain");
endSubmenu("camden_b4");






loc="";

loipon afou to etoimaso to bazo se ena layer me name layer10 kai apo akto exi ena layer me onoma layer5 pou mesa exi ena table.
otan kano preview to site tote otan bazo to xri sto arxiko tou menu kai anoigi prosta kato tote i lista fenete piso apo ton pinaka.

please ti na kano?

Άβαταρ μέλους
grjava
Δημοσιεύσεις: 387
Εγγραφή: 13 Μαρ 2002 01:00
Τοποθεσία: athens
Επικοινωνία:

javascript menus help

Δημοσίευση από grjava » 25 Ιούλ 2003 01:27

Για δοκίμασε στο από κάτω layer να δώσεις την εντολή:

z-index : -1;

Αν δεν δουλεψει στείλε μου τον κώδικα όλης της σελίδας για να τον δω καλύτερα. Εικόνα

Απάντηση

Επιστροφή στο “JavaScript και Frameworks”

Μέλη σε σύνδεση

Μέλη σε αυτήν τη Δ. Συζήτηση: Δεν υπάρχουν εγγεγραμμένα μέλη και 0 επισκέπτες