HighDots Forums  

Show/Hide Layer with Checkbox

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Show/Hide Layer with Checkbox in the Macromedia Dreamweaver forum.



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

Default Show/Hide Layer with Checkbox - 08-03-2004 , 04:57 PM






Currently using the DW show/hide layers behaviour, I would like part of a form
to behave a certain way: I have a checkbox that defaults to checked. If I
uncheck it, I want a layer to appear (no problem there.) However, if I
re-check the same box, I want that layer to disappear. Haven't found the
secret there yet. Any ideas out there?
Thanks.


Reply With Quote
  #2  
Old   
Mick White
 
Posts: n/a

Default Re: Show/Hide Layer with Checkbox - 08-03-2004 , 08:51 PM






<checkbox...
onclick='if(!this.checked){
//"show the layer" code
}
else {
// "hide the layer" code
};'>

Mick

s1r0tt3r wrote:

Quote:
Currently using the DW show/hide layers behaviour, I would like part of a form
to behave a certain way: I have a checkbox that defaults to checked. If I
uncheck it, I want a layer to appear (no problem there.) However, if I
re-check the same box, I want that layer to disappear. Haven't found the
secret there yet. Any ideas out there?
Thanks.


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.