Quick Nav:  Online Store   |   Login | Register

Identify selected Parent Tab in Child Template

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
dnas61
<20 Posts
Posts:1


08/15/2008 11:56 PM  

Hi,

I am using the css menu to display a parent and 1 child level navigation.

I am building the nav using templates and have just about got it to point where I want except for 1 final thing. I am able to display the parent nav correctly and with mouseover display child 1 navigation correctly but on load, there is no child navigation displayed. What I would like to achive is to display the selected parent's child navigation on load but have the other child navs appear over the top of the selected parent's child nav on mouseover.

eg

Onload (Parent 1 was selected)

parent1   parent2   parent3
parent1child1  parent1child2 parent1child3


OnMouseover (Parent 2)
parent1   parent2   parent3
parent2child1  parent2child2 parent2child3

OnMouseOut
parent1   parent2   parent3
parent1child1  parent1child2 parent1child3

Now the issue that i have is when building the child nav's, how to determine which child's parent was selected and apply the appropriate styling.

 

I have included my current code detials

<
Snapsis:NavMenuid="navParent"Level="0-0"CacheTabs="False"NavType="Template"TemplateFile="Snapsis.NavMenu.Parent.template.txt"ExcludeTabs="Host"runat="server"/>
<Snapsis:NavMenuid="navChild"Level="1-1"CacheTabs="False"NavType="Template"TemplateFile="Snapsis.NavMenu.Child.template.txt"ExcludeTabs="Admin,Host"runat="server"/>

and have attached my parent and child templates

 

John Mitchell
Posts:3478


08/22/2008 7:17 AM  
Hi,
If I follow what you are wanting to do, you will need some javascript to "activate" the first tab child menu.
There is an example for doing this in the ActiveResetHover sample included in the package.
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >CSS NavMenu > Identify selected Parent Tab in Child Template



ActiveForums 3.7
Powered by: Snapsis Software