Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   Dhtml menus (https://www.askmehelpdesk.com/showthread.php?t=25161)

  • Apr 24, 2006, 10:05 AM
    chained_to_the_wind
    Dhtml menus
    Good Day,

    I am trying to create a horizontal menu at the top of the page which is going to need 3 levels.

    Something like the scripting (I think its java) in the link below is totally perfect for what it needs, but it opens up its links in a new page of internet explorer! And I try and change that by looking at the coding behind it... which is just baffling to me, I have no idea how to make it open in the same page!

    http://www.bodurov.com/menu/

    The page I'm working on requires a menu at the top just to alter a query at the end of the url, to query a database, so needs to open up variations of the same page not in new windows. It uses cold fusion which I've got into dreamweaver which is working, so if anyone has ideas, the page is in Dreamweaver 8 now..

    If anyone could help, I would be massively grateful

    Kind regards

    Diane
    Xxx
  • Apr 25, 2006, 02:07 AM
    LTheobald
    The code that you linked to creates new menu's using the following syntax:
    Code:

    mc.Add("Yahoo","http://yahoo.com","_blank");
    The "_blank" part is what opens the links in new pages. If you want the page to open in the current page, use something like the following:
    Code:

    mc.Add("Yahoo","http://yahoo.com","");

    There are better ways of doing these menu's though that you might want to look into. Here's the first one I found: http://www.csscreator.com/menu/multimenu.php . It keeps the HTML nice and simple which makes the page more accesible for everyone.
  • Apr 25, 2006, 05:56 AM
    chained_to_the_wind
    Lovely I am just so warmed by your reply and this help desk.. people HELP each other!! Its so simple but so good.. fantastic.. I'm going to work.. to try it now.. I'll write later and let you know..

    God Bless You..

    Love chained to the wind
  • Apr 25, 2006, 06:12 AM
    LTheobald
    Glad to help :D If it doesn't work, post back and we'll see what we can do.
  • Sep 14, 2009, 02:14 AM
    van1976
    DHTML javaScript

  • All times are GMT -7. The time now is 01:05 AM.