Re: Folding closed space for a hidden form
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Folding closed space for a hidden form

From: Mick White <mwhite13BOGUS@rochester.rr.com>
Date: Fri Aug 12 2005 - 00:32:47 CEST

ASM wrote:

> web_design wrote:
>
>> I'd prefer that someone could click on the link to open it, and then
>> click again to close it.
>>
>> This is my link:
>> <a href="javascript://" onClick="showform('commentform')">
>
>
> function showform(mydiv) {
> var d = document.getElementById(mydiv).style;
> d.display = (d.display=='visible')? 'hidden' : 'visible';
> }
>
d.display=d.display=='none'?'':'none';

Mick
Received on Tue Oct 18 03:07:52 2005