View Full Version : Mouseovertabs Menu

02-10-2011, 11:37 PM
1) Script Title: Mouseovertabs Menu / 2 lines,

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/mouseovertabs.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:


Thks for advise,

02-11-2011, 12:05 AM
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:


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

02-11-2011, 03:59 PM
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 ???

02-13-2011, 07:21 AM
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:

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.