Results 1 to 3 of 3

Thread: Top nav II bar doesn't work!!

  1. #1
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Top nav bar II doesn't work!!

    Hi anyone,

    I curtianly working on a home website and want a menubar. So I picked the Top navigational Bar II and for some reason it does not work. I downloaded the zip and place it in my directory but it seems it does not upload or I change coding in the wrong place. Now if someone could help me that would be much appreciated.
    Thanks.

    This is the url= http://www.dynamicdrive.com/dynamicindex1/topnavbar.htm
    If you want to look at it.
    Last edited by Blackryder; 04-25-2005 at 07:49 PM. Reason: Had to fix some things

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    PLEASE: Include the URL to your problematic webpage that you want help with.
    Can't fix a problem we can't see.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face

    Hi its me the guy who posted the question,

    Here is mine coding. I'm to lazy to edit my question. And I have not yet put my page on the web so you'll can't find it. I do got the Js. file in the right directory.

    Thanks
    <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("Home", "http://dynamicdrive.com"));
    myNavBar1.addMenu(dhtmlMenu);

    dhtmlMenu = new NavBarMenu(100, 120);
    dhtmlMenu.addItem(new NavBarMenuItem("News", ""));
    dhtmlMenu.addItem(new NavBarMenuItem("CNN", "http://www.cnn.com"));
    dhtmlMenu.addItem(new NavBarMenuItem("MSNBC", "http://msnbc.com"));
    dhtmlMenu.addItem(new NavBarMenuItem("ABCNews", "http://www.abcnews.com"));
    myNavBar1.addMenu(dhtmlMenu);

    dhtmlMenu = new NavBarMenu(110, 120);
    dhtmlMenu.addItem(new NavBarMenuItem("Technology", ""));
    dhtmlMenu.addItem(new NavBarMenuItem("News.com", "http://www.news.com"));
    dhtmlMenu.addItem(new NavBarMenuItem("Techweb", "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("Search", ""));
    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("Webmaster", ""));
    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);

    //set menu colors
    myNavBar1.setColors("#000000", "#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>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •