HighDots Forums  

Layers Show/Hide

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Layers Show/Hide in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SteveMckenna
 
Posts: n/a

Default Layers Show/Hide - 08-04-2004 , 04:20 AM






I am trying to add a behaviour where a layer shows when a user places the
mouse over a button which I have achieved. However, the layer contains links
to other documents so I want it to stay open so the user can click on the links
as with mouse out it just closes. My problem is that when the user hovers over
another button I want a different layer to show and stay open as it also
contains other links. It seems the first layer opened will not close. If I
have confused you as much as I have confused myself I apologise but I thank you
in advance for any help.


Reply With Quote
  #2  
Old   
br
 
Posts: n/a

Default Re: Layers Show/Hide - 08-04-2004 , 07:46 AM






Makes sense, however...what is the sense of the button if the link is within
the pop-up?? Most people have a mouseover pop up information. The button
is the link.

Anyways, in this case, you would have a mouse over command perform a show on
the layer you want and hide all the other layers on mouse over. Remove the
mouse out commands on each button.

This will pop-up the layer on a mouse over and keep it visible until you
mouse over a different button.

"SteveMckenna" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I am trying to add a behaviour where a layer shows when a user places the
mouse over a button which I have achieved. However, the layer contains
links
to other documents so I want it to stay open so the user can click on the
links
as with mouse out it just closes. My problem is that when the user hovers
over
another button I want a different layer to show and stay open as it also
contains other links. It seems the first layer opened will not close. If
I
have confused you as much as I have confused myself I apologise but I
thank you
in advance for any help.




Reply With Quote
  #3  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Layers Show/Hide - 08-04-2004 , 07:57 AM



Button1 ---> Layer1
Button2 ---> Layer2

Button1 - onMouseOver show Layer1 and hide Layer2
Button2 - onMouseOver show Layer2 and hide Layer1

The trick will be to devise a method to hide the last layer shown if you
stop mousing over buttons. To do this, you could use a closer layer, i.e.,
another layer (with the lowest z-index so that it underlies all other
layers) containing a transparent GIF image sized so that it is about 20
pixels wider than the widest "link layer". Select the transparent GIF
image, and apply a show-hide behavior to hide Layer1, Layer2, ..., and
ITSELF. Then hide this layer. Now change the behaviors on the buttons as
follows -

Button1 - onMouseOver show Layer1 and Closer, and hide Layer2
Button2 - onMouseOver show Layer2 and Closer, and hide Layer1

Geddit?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(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
==================

"SteveMckenna" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I am trying to add a behaviour where a layer shows when a user places the
mouse over a button which I have achieved. However, the layer contains
links
to other documents so I want it to stay open so the user can click on the
links
as with mouse out it just closes. My problem is that when the user hovers
over
another button I want a different layer to show and stay open as it also
contains other links. It seems the first layer opened will not close. If
I
have confused you as much as I have confused myself I apologise but I
thank you
in advance for any help.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.