Hjælp menuen vil ikke vises som den skal
Hej håber jeg kan få lidt hjælp.Jeg har fundet lige den menu på min hjemmeside som jeg kunne tænke mig under www.dynamicdrive.com den hedder: Top Navigational Bar II, og jeg skal have det sat i midten af 3 rammer, men den vises under næste ramme og jeg kan ikke se i koden hvordan jeg skal få linksene til at vises i den nederste ramme istedet for at de kommer i den samme ramme.
Jeg har lagt en prøve ud på kent.homepage.dk
Her kommer koden jeg har i denne fil.
<html>
<head>
<meta http-equiv="Content-Language" content="da">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Menu</title>
<base target="mainframe">
<script language="JavaScript" src="navcond.js"></script>
<script language="JavaScript">
/*
Top Navigational Bar II (By Mike Hall)
Last updated: 00/05/08
Permission granted and modified by Dynamicdrive.com to include script in archive
For this and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
var myNavBar1 = new NavBar(0);
var dhtmlMenu;
//define menu items (first parameter of NavBarMenu specifies main category width, second specifies sub category width in pixels)
//add more menus simply by adding more "blocks" of same code below
dhtmlMenu = new NavBarMenu(100, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Bestyrelsen", "http://dynamicdrive.com"));
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(110, 120);
dhtmlMenu.addItem(new NavBarMenuItem("Folkeoplysning", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Billund", "http://www.aofportal.dk/afd_kurser.asp?which=AOF Billund"));
dhtmlMenu.addItem(new NavBarMenuItem("Blåvandshuk", "http://msnbc.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Bramming", "http://www.abcnews.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Brørup", "http://www.abcnews.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Blåbjerg", "http://www.abcnews.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Esbjerg", "http://www.abcnews.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Fanø", "http://www.abcnews.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Grindsted", "http://www.abcnews.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Helle", "http://www.abcnews.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Holsted", "http://www.abcnews.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Ribe", "http://www.abcnews.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Varde", "http://www.abcnews.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Vejen", "http://www.abcnews.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Ølgod", "http://www.abcnews.com"));
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(100, 120);
dhtmlMenu.addItem(new NavBarMenuItem("Projekter", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Focus på sundhed", "http://www.csl7100.dk/"));
dhtmlMenu.addItem(new NavBarMenuItem("Iværksætter", "http://www.techweb.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Wired", "http://www.wired.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Dynamic Drive", "http://www.dynamicdrive.com"));
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Bestyrelsen", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Yahoo", "http://www.yahoo.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Alta Vista", "http://www.altavista.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Infoseek", "http://www.infoseek.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Excite", "http://www.excite.com"));
dhtmlMenu.addItem(new NavBarMenuItem("HotBot", "http://www.hotbot.com"));
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Nyhedsbreve", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Dynamic Drive", "http://dynamicdrive.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Website Abstraction", "http://wsabstract.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Freewarejava.com", "http://freewarejava.com"));
dhtmlMenu.addItem(new NavBarMenuItem("BrainJar", "http://brainjar.com"));
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Kontakt os", ""));
dhtmlMenu.addItem(new NavBarMenuItem("kontakt os", "kontakt.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Website Abstraction", "http://wsabstract.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Freewarejava.com", "http://freewarejava.com"));
dhtmlMenu.addItem(new NavBarMenuItem("BrainJar", "http://brainjar.com"));
myNavBar1.addMenu(dhtmlMenu);
//set menu colors
myNavBar1.setColors("#FF0000", "#000000", "#C0C0C0", "#ffffff", "#666666", "#000000", "#cccccc", "#ffffff", "#000080")
//uncomment below line to center the menu (valid values are "left", "center", and "right"
//myNavBar1.setAlign("center")
var fullWidth;
function init() {
// Get width of window, need to account for scrollbar width in Netscape.
fullWidth = getWindowWidth()
- (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);
myNavBar1.resize(fullWidth);
myNavBar1.create();
myNavBar1.setzIndex(2);
//UNCOMMENT BELOW LINE TO MOVE MENU DOWN 50 pixels
//myNavBar1.moveTo(0, 50);
}
</script>
</head>
<body>
<body onload="init()">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p align="center"> </p>
</body>
</html>
Hilsen Astrid