Web Analytics Made Easy -
StatCounter menu - CodingForum

Announcement

Collapse
No announcement yet.

menu

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • menu

    I downloaded Top Nav Bar I v2- By Constantin Kuznetsov Jr., and i wonder if i can use it in an frameset and what and where the code for the target will be?

    menucontext.js


    //Top Nav bar script v2- http://www.dynamicdrive.com/dynamicindex1/sm/index.htm

    function showToolbar()
    {
    // AddItem(id, text, hint, location, alternativeLocation);
    // AddSubItem(idParent, text, hint, location);

    menu = new Menu();
    menu.addItem("webmasterid", "Web Building Sites", "Web Building Sites", null, null);
    menu.addItem("newsid", "News Sites", "News Sites", null, null);
    menu.addItem("freedownloadid", "Free Downloads", "Free Downloads", null, null);
    menu.addItem("searchengineid", "Search Engines", "Search Engines", null, null);
    menu.addItem("miscid", "Miscellaneous", "Miscellaneous", null, null);

    menu.addSubItem("webmasterid", "Dynamic Drive", "Dynamic Drive", "http://www.dynamicdrive.com/");
    menu.addSubItem("webmasterid", "JavaScript Kit", "JavaScript Kit", "http://www.javascriptkit.com/");
    menu.addSubItem("webmasterid", "Web Review", "Web Review", "http://www.webreview.com/");
    menu.addSubItem("webmasterid", "Freewarejava.com", "Freewarejava.com", "http://www.freewarejava.com/");
    menu.addSubItem("webmasterid", "Web Monkey", "Web Monkey", "http://www.webmonkey.com/");
    menu.addSubItem("webmasterid", "Host Reach", "Host Reach", "http://www.hostreach.com");

    menu.addSubItem("newsid", "CNN", "CNN", "http://www.cnn.com");
    menu.addSubItem("newsid", "ABC News", "ABC News", "http://www.abcnews.com");
    menu.addSubItem("newsid", "MSNBC", "MSNBC", "http://www.msnbc.com");
    menu.addSubItem("newsid", "CBS news", "CBS News", "http://www.cbsnews.com");
    menu.addSubItem("newsid", "News.com", "News.com", "http://news.com");
    menu.addSubItem("newsid", "Wired News", "Wired News", "http://www.wired.com");
    menu.addSubItem("newsid", "TechWeb", "TechWeb", "http://www.techweb.com");

    menu.addSubItem("freedownloadid", "Dynamic Drive", "Dynamic Drive", "http://www.dynamicdrive.com/");
    menu.addSubItem("freedownloadid", "Download.com", "Download.com", "http://download.com/");
    menu.addSubItem("freedownloadid", "Tucows", "Tucows", "http://tucows.com/");

    menu.addSubItem("searchengineid", "Yahoo", "Yahoo", "http://www.yahoo.com/");
    menu.addSubItem("searchengineid", "Google", "Google", "http://www.google.com/");
    menu.addSubItem("searchengineid", "Excite", "Excite", "http://www.excite.com");
    menu.addSubItem("searchengineid", "HotBot", "HotBot", "http://www.hotbot.com");

    menu.addSubItem("miscid", "Cnet", "Cnet", "http://www.cnet.com/");
    menu.addSubItem("miscid", "RealAudio", "RealAudio", "http://www.realaudio.com/");
    menu.addSubItem("miscid", "MP3.com", "MP3.com", "http://www.mp3.com/");

    menu.showMenu();
    }
    nuttadesign
    New to the CF scene
    Last edited by nuttadesign; Jun 14, 2002, 11:54 AM.

  • #2
    hi,
    i haven't checked since it was rewritten for NS6+ but should work:
    open menucontext.js(this is where you would configure your items) and add this bit on the very top:

    //this one for new window
    function win(){window.open("http://msn.com","win");}
    //this one is for frametargetting
    function win2(){parent.yourframetargetname.location="http://yahoo.com"}


    and then use like so:

    menu.addSubItem("webmasterid", "Dynamic Drive", "Dynamic Drive", "javascript:win1()");
    menu.addSubItem("webmasterid", "Website Abstraction", "yahoo", "javascript:win2()");

    Comment

    Working...
    X