Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Nav Bar in Template

Guest
Apr 20, 2006 Apr 20, 2006
I would like to define my navigation bar in my template, but be able to modify it for each page so that the correct tab is highlighted when they go to that page. I don't seem to be able to get the template set up so that I can edit the nav bar for each page. When I set up the editable area around the nav bar definition and then try to edit it in one of the pages based on the template I get the message that I am trying to modify code that is locked by a template. I assume that it has something to do with the javascript that handles the various button states. I don't know how to get around this.

Any help would be appreciated.
TOPICS
Server side applications
258
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 21, 2006 Apr 21, 2006
Do it with CSS.

http://nemesis1.f2o.org/aarchive?id=9


--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"pga252" <webforumsuser@macromedia.com> wrote in message
news:e29fbk$1t2$1@forums.macromedia.com...
>I would like to define my navigation bar in my template, but be able to
>modify
> it for each page so that the correct tab is highlighted when they go to
> that
> page. I don't seem to be able to get the template set up so that I can
> edit
> the nav bar for each page. When I set up the editable area around the nav
> bar
> definition and then try to edit it in one of the pages based on the
> template I
> get the message that I am trying to modify code that is locked by a
> template.
> I assume that it has something to do with the javascript that handles the
> various button states. I don't know how to get around this.
>
> Any help would be appreciated.
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 21, 2006 Apr 21, 2006
LATEST
Thanks for the reference to the article. I would like to set the down image file name for the appropriate button on each page, but I'm not sure what the CSS would be. I've given each button it's own id, for example:
<a id="home" href="../index.htm" target="_top" onClick="MM_nbGroup('down','group1','Home','../images/homebtn_f3.gif',1)" onMouseOver="MM_nbGroup('over','Home','../images/homebtn_f2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="../images/homebtn_f3.gif" alt="Home" name="Home" border="0" onload=""></a>

So, I know I can set up a CSS rule for that particular anchor tag, but I'm not sure of the correct syntax for setting the onload image file name. I know that if I choose to have the Home button, for example, selected on load, the following is added to the onload event: onload="MM_nbGroup('init','group1','Home','../images/homebtn_f3.gif',1)" So., I could copy this code into my stylesheet if I knew how to set it up correctly.

Thanks for your help.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines