switching between layers

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

  1. #1

    Default switching between layers

    Hi,

    i have five layers and I want to swich between them
    using MM_showHideLayers() function. My question
    is how to put function parametrs to the event to
    make current layer invisible and another visible.

    Eg.
    <p onClick="MM_showHideLayers('Layer1','','hide','Lay er2','','show')">2</p>

    What if visible layer is other than Layer1, how to hide it?

    regards,
    malin



    MaliN Guest

  2. Similar Questions and Discussions

    1. Switching a camera
      I've looked through the threads and can't find/understand if there is an answer to this question: I have a SW3D called "Brooklyn" with a camera...
    2. Switching to ID
      I recently began working in the marketing department of a business that uses Pagemaker for our page layout tool. We use this program because that is...
    3. Fill layers vs Pixel layers
      What is the difference between a fill layer and a pixel layer that contains a flat color? (Beside the capacity to paint different colors into the...
    4. FreeHand Layers to Acrobat Layers
      Hi, I have noticed that in Acrobat 6 that you can have layered documents and I 'm wanting to know if there is a way to create a layered PDF from a...
    5. big switching...
      I have a 12 field 3000 line file (| delimited) and need to check the 7th entry of each line to see what it is, and based on that it needs to be...
  3. #2

    Default Re: switching between layers

    MaliN:

    Don't apply event handlers to a <p> tag if you want broad browser/platform
    support.

    Make each trigger hide *all* the layers except the one you want to show.

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

    "MaliN" <malinow_NO_SPAM@interia.pl> wrote in message
    news:beenpu$6pv$1@forums.macromedia.com...
    > Hi,
    >
    > i have five layers and I want to swich between them
    > using MM_showHideLayers() function. My question
    > is how to put function parametrs to the event to
    > make current layer invisible and another visible.
    >
    > Eg.
    > <p
    onClick="MM_showHideLayers('Layer1','','hide','Lay er2','','show')">2</p>
    >
    > What if visible layer is other than Layer1, how to hide it?
    >
    > regards,
    > malin
    >
    >
    >

    Murray *TMM* Guest

  4. #3

    Default Re: switching between layers

    > Don't apply event handlers to a <p> tag if you want broad browser/platform
    > support.
    How about <td> tag ?
    > Make each trigger hide *all* the layers except the one you want to show.
    Like this:
    onClick="MM_showHideLayers
    ('Layer1','','hide','Layer3','','hide','Layer4','' ,'hide','Layer5','','hide'
    ,'Layer2','','show')" ?

    What is this second, blank argument ?

    (excuse my english)

    -------
    malin


    MaliN Guest

  5. #4

    Default Re: switching between layers

    malin:

    Nope - not <td> tags either. <a> tags would do nicely, however.

    What is the second argument? I don't remember. But yes, you have the
    idea....

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

    "MaliN" <malinow_NO_SPAM@interia.pl> wrote in message
    news:beep3p$9ch$1@forums.macromedia.com...
    > > Don't apply event handlers to a <p> tag if you want broad
    browser/platform
    > > support.
    >
    > How about <td> tag ?
    >
    > > Make each trigger hide *all* the layers except the one you want to show.
    >
    > Like this:
    > onClick="MM_showHideLayers
    >
    ('Layer1','','hide','Layer3','','hide','Layer4','' ,'hide','Layer5','','hide'
    > ,'Layer2','','show')" ?
    >
    > What is this second, blank argument ?
    >
    > (excuse my english)
    >
    > -------
    > malin
    >
    >

    Murray *TMM* Guest

  6. #5

    Default Re: switching between layers

    > Nope - not <td> tags either. <a> tags would do nicely, however.
    >
    > What is the second argument? I don't remember. But yes, you have the
    > idea....
    Thanks a lot


    MaliN Guest

  7. #6

    Default Re: switching between layers

    You're welcome!

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

    "MaliN" <malinow_NO_SPAM@interia.pl> wrote in message
    news:beepom$al5$1@forums.macromedia.com...
    > > Nope - not <td> tags either. <a> tags would do nicely, however.
    > >
    > > What is the second argument? I don't remember. But yes, you have the
    > > idea....
    >
    > Thanks a lot
    >
    >

    Murray *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may 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