Results 1 to 4 of 4

Thread: Mouseovertabs Menu

  1. #1
    Join Date
    Apr 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Mouseovertabs Menu

    1) Script Title: Mouseovertabs Menu / 2 lines,

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...seovertabs.htm

    3) Describe problem: I would like to keep the second line of the tab, from which a link was selected, visible instead of having it always jumping back to the tab selected.
    You are desribing the method of indexing a tab by giving a parameter to the link: <a href="target.htm?tabmenuid=index">Target Page</a> , but I do not get it running. The second line is not shown and no tab is selected.

    My entry in the menu file reads:

    <li><a href="link1.shtml" rel="gotsubmenu" id="flotte">Flotte</a></li>
    <li><a href="link2.shtml" rel="gotsubmenu" id="schule">Schule</a></li>

    and the link in the submenucontents file reads in one DIV:

    <li><a href="schule_ang.shtml?yourtabsmenu=schule">Angebot</a></li>

    and in another DIV:
    <li><a href="flotte_c172s.shtml?yourtabsmenu=flotte">CESSNA 172S</a></li>

    Is that correctly understood and would it help my purpose?

    My test page is here:

    http://www.pilotenclub-wien.at/2011/

    Thks for advise,
    Ruprecht

  2. #2
    Join Date
    Aug 2004
    Posts
    9,911
    Thanks
    3
    Thanked 969 Times in 957 Posts
    Blog Entries
    15

    Default

    It should work. Using your index.shtml page as the destination link, the following two links selects the first and second tabs respectively when that page loads:

    http://www.pilotenclub-wien.at/2011/...absmenu=flotte
    http://www.pilotenclub-wien.at/2011/...l?mytabsmenu=1

    BTW, please note that your page is currently in violation of our usage terms, since the credit notice doesn't appear inline on the page. Please reinstate the credit notice: http://www.dynamicdrive.com/notice.htm
    DD Admin

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

    Default Mytabsmenu or Yourtabsmenu ?

    First of all,
    thanks for your quick reaction,
    second: sorry for omitting the credits to Dynamicdrive, they are now in on all pages.

    I had coded as appeared in the status line of the browser when going over the example links at the very end of the page: "....yourtabsmenu". After changing to "mytabsmenu..." it works.
    Could you give me a one minute explanation, I know "...myscript..." from JS books which I understood as referring to itself ???
    Rgds,
    Ruprecht

  4. #4
    Join Date
    Aug 2004
    Posts
    9,911
    Thanks
    3
    Thanked 969 Times in 957 Posts
    Blog Entries
    15

    Default

    Could you give me a one minute explanation, I know "...myscript..." from JS books which I understood as referring to itself ???
    In this case it has nothing to do with referring to itself, which typically means in the case of a constructor function- after instantiating it, the variable you assigned the result to now contains a reference to itself, ie:

    Code:
    var mymenu=new stickymenu()
    But as mentioned in this case, "mytabmenu" works simply because that's the ID of your mouseover menu, and the script is designed to use the menu's ID in identifying the menu to select when using the URL parameter string.
    DD Admin

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
  •