Hallo, habe folgendes problem, habe ein Java Script Menü, kriege das aber nicht zentriert. Wie lautet der befehl dafür, kann mir das jmd sagen, Quelltext ist hier:
function init()
{
//Main Menu items:
menus[0] = new menu(25, "horizontal", 380, 100, -2, -2, "#989b72", "#CCCCCC", "Verdana,Helvetica", 9,
"bold", "bold", "black", "white", 1, "gray", 2, "rollover:images/tri-down1.gif:images/tri-down2.gif", false, true, true, true, 12, true, 4, 4, "black");
menus[0].addItem("index.html", "", 100, "center", "Home", 0);
menus[0].addItem("#", "", 100, "center", "Hengst", 1);
menus[0].addItem("#", "", 100, "center", "Zuchtstuten", 2);
menus[0].addItem("#", "", 120, "center", "Verkaufspferde", 3);
menus[0].addItem("#", "", 100, "center", "Kontakt", 4);
//Sub Menu for 2nd Main Menu Item ("Hengst"):
menus[1] = new menu(135, "vertical", 0, 0, -5, -5, "#989b72", "#CCCCCC", "Verdana,Helvetica", 9, "bold",
"bold", "black", "white", 1, "gray", 2, 62, false, true, false, true, 6, true, 4, 4, "black");
menus[1].addItem("Badger.html", "", 35, "left", "Awesome San Badger", 0);
//Sub Menu for 3rd Main Menu Item ("Zuchtstuten"):
menus[2] = new menu(130, "vertical", 0, 0, 0, 0, "#989b72", "#CCCCCC", "Verdana,Helvetica", 9, "bold",
"bold", "black", "white", 1, "gray", 2, "rollover:images/tri-right1.gif:images/tri-right2.gif", false, true, false, false, 0, true, 4, 4, "black");
menus[2].addItem("Prize.html", "", 22, "left", "A Classic Prize", 0);
menus[2].addItem("Dry.html", "", 35, "left", "Del Rios Dry Lady", 0);
menus[2].addItem("Dolly.html", "", 35, "left", "Miss Otoe Chant", 0);
//Sub Menu for 4th Main Menu Item ("verkaufspferde"):
menus[3] = new menu(130, "vertical", 0, 0, 0, 0, "#989b72", "#CCCCCC", "Verdana,Helvetica", 9, "bold",
"bold", "black", "white", 1, "gray", 2, "rollover:images/tri-right1.gif:images/tri-right2.gif", false, true, false, false, 0, true, 4, 4, "black");
menus[3].addItem("Freckles.html", "", 35, "left", "Freckles otoe Badger", 0);
menus[3].addItem("Flame.html", "", 35, "left", "Dollys Flaming Jet", 0);
//Sub Menu for 4th Main Menu Item ("Kontakt"):
menus[4] = new menu(130, "vertical", 0, 0, 0, 0, "#989b72", "#CCCCCC", "Verdana,Helvetica", 9, "bold",
"bold", "black", "white", 1, "gray", 2, "rollover:images/tri-right1.gif:images/tri-right2.gif", false, true, false, false, 0, true, 4, 4, "black");
menus[4].addItem("Kontakt.html", "", 22, "left", "Kontakt", 0);
menus[4].addItem("http://onlinewebservice.de/flash_gb14.php?id=f83049&bgcolor=989C72&titel=Old Man Ranch Gästebuch&txtcolor=2','popup','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=600,height=450", "", 22, "left", "Gästebuch", 0);
} //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.
Homepage selbermachen 7.846 Themen, 35.563 Beiträge
Lege das Menü einfach in einen Container und positioniere per CSS absolut oder relativ. Javascript ist für Menüs ausdrücklich nicht zu empfehlen - Suchmaschinenrobots wollen diesen "Links" nicht folgen.
Lösungs-Details zu beiden dann hier: Self HTML