Show-Hide layers grayed out

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

  1. #1

    Default Show-Hide layers grayed out

    Hi,

    All of a sudden the show-hide layers behavior is grayed out. I don't
    understand why. I am building a site in which you roll over an image and text
    appears inside a layer in a different location. I used show-hide layers on the
    other pages in my site and it worked fine.

    Here's what I changed before the problem occurred: Originally I had drawn a
    layer in the position I wanted it. I named it Layer1 (default). It was an
    absolutely positioned layer. Problem was, the text didn't appear int he right
    place in the browser on rollover. So, I got rid of that, and made one of the
    table cells Layer1. The code inside the <td> tags is <div id="Layer1></div>.
    That's all. It seems to work perfectly on those pages where I was formerly able
    to use the show-hide layer behavior. On this new page, I'm trying to do the
    same thing, but there's no show-hide layer option available (grayed out) nor is
    there a Set Text of Layer behavior available.

    I'm on DW MX 2204 on a Mac OSX.3. My behaviors are set to IE6.

    How can I remedy this? Thanks.

    Bondfan Guest

  2. Similar Questions and Discussions

    1. Show and Hide Layers
      I am using the show and hide layers JS from Dreamweaver. I am using it to have simulated "tabs" on the HTML page, so I have a div set up for Tab1,...
    2. need to add a delay to show and hide layers
      I have the following code generated by Dreamweaver 8 that is designed to show and hide a menu layer on the mouseover and mouseout event for a couple...
    3. popup menus won't hide - PVII show/hide layers behaviour
      I've used the 'Auto show/hide by PVII" behaviour to create some popup menus for the navigation which make use of divs which appear and disappear....
    4. show/hide layers
      I've got two layers. The first layer is always visible. The second layer is only visible when you click on the first layer. How do I hide the...
    5. Hide/show layers
      hi, i have a form and in this form i have multiple <div> and each <div> i have table. i show and hide according to the events attached to the...
  3. #2

    Default Re: Show-Hide layers grayed out

    Show me your code, please.

    --
    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
    ==================

    "Bondfan" <webforumsuser@macromedia.com> wrote in message
    news:ddli3i$g63$1@forums.macromedia.com...
    > Hi,
    >
    > All of a sudden the show-hide layers behavior is grayed out. I don't
    > understand why. I am building a site in which you roll over an image and
    > text
    > appears inside a layer in a different location. I used show-hide layers on
    > the
    > other pages in my site and it worked fine.
    >
    > Here's what I changed before the problem occurred: Originally I had drawn
    > a
    > layer in the position I wanted it. I named it Layer1 (default). It was an
    > absolutely positioned layer. Problem was, the text didn't appear int he
    > right
    > place in the browser on rollover. So, I got rid of that, and made one of
    > the
    > table cells Layer1. The code inside the <td> tags is <div
    > id="Layer1></div>.
    > That's all. It seems to work perfectly on those pages where I was formerly
    > able
    > to use the show-hide layer behavior. On this new page, I'm trying to do
    > the
    > same thing, but there's no show-hide layer option available (grayed out)
    > nor is
    > there a Set Text of Layer behavior available.
    >
    > I'm on DW MX 2204 on a Mac OSX.3. My behaviors are set to IE6.
    >
    > How can I remedy this? Thanks.
    >

    Murray *TMM* Guest

  4. #3

    Default Re: Show-Hide layers grayed out

    Thanks for the quick reply. I actually figured out a workaround. If I first
    draw the layer instead of merely placing a <div> tag inside of a table cell,
    then the show-hide option is available.

    Just for everyone's knowledge (in case someone else has this problem) here's
    what DW writes when you draw a layer:

    <div id="Layer1" style="position:absolute; left:47px; top:34px; width:158px;
    height:97px; z-index:1"></div>

    I then use the show-hide layers behavior, and set text of the layer. I then
    delete this part:

    style="position:absolute; left:47px; top:34px; width:158px; height:97px;
    z-index:1"

    which just leaves me with <div id="Layer1""></div>

    I can then roll over something (e.g., an image) and the text in the layer
    appears. Apparently I can't just write the <div id="Layer1""></div> where I
    want it; the show-hide layers behavior isn't available. But it is if I draw it
    first and do the above steps. I don't know if it's the best solution, but it
    worked for me.

    Bondfan Guest

  5. #4

    Default Re: Show-Hide layers grayed out

    For your information, this is an excellent technique. What you have just
    demonstrated is that DW doesn't consider any non-positioned element to be a
    "Layer". To make a div become a layer (and therefore be acceptible as the
    target for these behaviors), you must make that div be absolutely
    positioned. You can then delete the positioning later.

    --
    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
    ==================

    "Bondfan" <webforumsuser@macromedia.com> wrote in message
    news:ddlsqg$t8p$1@forums.macromedia.com...
    > Thanks for the quick reply. I actually figured out a workaround. If I
    > first
    > draw the layer instead of merely placing a <div> tag inside of a table
    > cell,
    > then the show-hide option is available.
    >
    > Just for everyone's knowledge (in case someone else has this problem)
    > here's
    > what DW writes when you draw a layer:
    >
    > <div id="Layer1" style="position:absolute; left:47px; top:34px;
    > width:158px;
    > height:97px; z-index:1"></div>
    >
    > I then use the show-hide layers behavior, and set text of the layer. I
    > then
    > delete this part:
    >
    > style="position:absolute; left:47px; top:34px; width:158px; height:97px;
    > z-index:1"
    >
    > which just leaves me with <div id="Layer1""></div>
    >
    > I can then roll over something (e.g., an image) and the text in the layer
    > appears. Apparently I can't just write the <div id="Layer1""></div> where
    > I
    > want it; the show-hide layers behavior isn't available. But it is if I
    > draw it
    > first and do the above steps. I don't know if it's the best solution, but
    > it
    > worked for me.
    >

    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