Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Bondfan #1
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
-
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,... -
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... -
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.... -
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... -
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... -
Murray *TMM* #2
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
-
Bondfan #3
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
-
Murray *TMM* #4
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



Reply With Quote

