3-state nav buttons with templates

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default 3-state nav buttons with templates

    Hi All,

    In the old days, if I wanted to have a mousedown state for a selected nav
    button, I would simply have a third button image and insert that image for the
    nav button of the page I was currently building.

    Templates save so much time and sanity, but I miss that third state. Is there
    a way to do this? Some kind of conditional display script that checks which
    page the user is on and shows a depressed nav button for that page accordingly?

    Thanks

    Bill

    Billium99 Guest

  2. Similar Questions and Discussions

    1. Libraries, Templates, Nested Templates, Repeat Regions,
      Hi I have eight categories to display in my site navigation. Each category has at least one (some have two) levels of subcategories. For example...
    2. Changing the State of a web page using radio buttons.
      I am trying to make a very simple web page that is only accessed through a small number of people but those people are allowed to change the...
    3. Selected State for Buttons
      Hello, I am new at Director, and I am trying to figure out how to have a button remain in its "down state" until the user clicks on another button....
    4. Show down state of button when on page using templates
      I am having the same problem.---I am not sure the issue has been made clear enough. The reason I want to use templates is to manage multiple pages...
    5. Setting a default state for Multi-State buttons
      I'm using the multi-state button behavior and would like to have one button set ON as the default when the app first runs. Is it possible to set the...
  3. #2

    Default Re: 3-state nav buttons with templates

    On your template page do the following:

    1. Select the first menu button. Press the right arrow key once to
    position the insertion bar just to the right of the button.
    2. Prepare to enter the twilight zone as you now insert the DOWN state of
    the button in that location. This will wreck your Design view, but that's
    OK since you already have the page built. You will now have this
    situation -

    <img name="button1up" ...><img name="button1down" ...>

    or something like it.
    3. Select button1down, and use INSERT | Template Objects > Optional Region.
    Give this region the name "button1down". UNCHECK the box for Show by
    default. Click OK.

    You have now made the downstate of button1 invisible on every child page
    UNLESS the optional region's controlling boolean is changed from FALSE to
    TRUE.
    4. Now, select button1up and also apply an optional region to it. But this
    time, click on the advanced tab in the Optional Region dialog. Now select
    the radio button for an expression, and enter the following expression -

    !button1down (that's an exclamation point)

    This expression says "if the parameter named button1down is false, do this,
    and if it's true, don't do this)".
    5. Click OK and admire the mess.

    But - wait until you spawn a child page. Everything looks perfect! All
    buttons will be in their up state.
    6. Now, in this child page, select MODIFY | Template Properties... and
    select the button1down parameter. At the bottom of this dialog, you can
    enable the option to set the boolean to TRUE, click OK and see what happens
    to the child page. Button1 is now shown in the down state.

    Repeat this process for each button and you now have a very simple up/down
    state system in place for your child pages.

    There are other even better ways - if you need them, ask....

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


    "Billium99" <[email protected]> wrote in message
    news:dtdqa2$opb$[email protected]..
    > Hi All,
    >
    > In the old days, if I wanted to have a mousedown state for a selected nav
    > button, I would simply have a third button image and insert that image for
    > the
    > nav button of the page I was currently building.
    >
    > Templates save so much time and sanity, but I miss that third state. Is
    > there
    > a way to do this? Some kind of conditional display script that checks
    > which
    > page the user is on and shows a depressed nav button for that page
    > accordingly?
    >
    > Thanks
    >
    > Bill
    >

    Murray *TMM* Guest

  4. #3

    Default Re: 3-state nav buttons with templates

    Thanks Murray!

    I'll try that tonight. I appreciate the detailed instructions! =-)

    Bill
    Billium99 Guest

  5. #4

    Default Re: 3-state nav buttons with templates

    You're welcome. Consider adapting these, too -

    It's easy to do with CSS or with javascript.

    With CSS you would have a little stylesheet embedded in the head of each
    page that allows you to set the down state for any given button (each button
    would have a unique id - for example -

    <a href="foo.html" id="button1">...<a href="bar.html" id="button2">

    and then your stylesheet would have this -

    a#button1 { styles }

    on one page, and on another this -

    a#button2 { styles }

    See how that works?

    With javascript, put this in script tags in the head of the document -

    function P7_downImage() {
    var g7="<imagename>"
    var g7url="<pathname>"
    if ((g7=MM_findObj(g7))!=null) {g7.src=g7url;}
    }

    and this on the <body> tag

    onload="P7_downImage()"

    Then on each page you would need to make two edits:

    Set g7 to the *name* of the button (not the file name but the HTML name -
    e.g., "productsbutt"), and g7url to the pathname to the button (e.g.,
    "images/nav/button3.gif"), and bada bing, bada boom!

    There is an excellent tutorial here -

    [url]http://www.projectseven.com/support/answers.asp?id=126[/url]

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


    "Billium99" <[email protected]> wrote in message
    news:dtf816$p13$[email protected]..
    > Thanks Murray!
    >
    > I'll try that tonight. I appreciate the detailed instructions! =-)
    >
    > Bill

    Murray *TMM* Guest

  6. #5

    Default Re: 3-state nav buttons with templates

    Murray, this is terrific!

    I sort of dropped off for a few weeks while I was travelling - sorry for the
    delay.

    Your first set of detailed steps worked beautifully, and I will look to trying
    this CSS approach as soon as I can.

    Thanks again!

    Bill

    Billium99 Guest

  7. #6

    Default Re: 3-state nav buttons with templates

    Good luck, Bill.

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


    "Billium99" <[email protected]> wrote in message
    news:dud93s$k23$[email protected]..
    > Murray, this is terrific!
    >
    > I sort of dropped off for a few weeks while I was travelling - sorry for
    > the
    > delay.
    >
    > Your first set of detailed steps worked beautifully, and I will look to
    > trying
    > this CSS approach as soon as I can.
    >
    > Thanks again!
    >
    > Bill
    >

    Murray *ACE* Guest

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139