This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > Show/Hide Layer with Checkbox





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Show/Hide Layer with Checkbox
s1r0tt3r

2004-08-03, 7:15 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.

Mick White

2004-08-03, 11:14 pm

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

Mick

s1r0tt3r wrote:

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

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews