> >i have a form on a page. i want to be able to have like a "minimize"
> >"maximize" button on the form.
Put this in your head:
<script language='JavaScript'>
function toggle(theid) {
( document.all(theid).style.display == '' ) ?
document.all(theid).style.display = 'none' :
document.all(theid).style.display = '';
return false
}
</script>
Use something like this as your button:
<A onclick="toggle('myID'); return false;" href="#">Toggle Visibility</A>
Give whatever you want to show/hide the id 'myID' or whatever -- you can
have multiple per page. Also specify its default style="display : none" or
whatever. Incidentally, it's a really good way of dealing with long,
unwieldy forms.
Regards,
Matthew Walker
<!---
============================================
E l e c t r i c S h e e p W e b
Innovative Web Applications
--------------------------------------------
Tel....: +64-3-374 2137
Mobile.: +64-25-605 5747
Fax....: +64-3-377 7930
Web....: http://www.electricsheep.co.nz/
Post...: P O Box 13-907, Armagh
Christchurch, New Zealand
Street.: 71 Durham Street
Christchurch, New Zealand
============================================
--->
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists