Display/hide content

Added By: hpklett

Rated:
(5 of 5) by 2.
Rate Snippet:
Description:  This function can be used to toggle text, images, and any other content. To use, put your content inbetween <div style="display:none;" name= id=> and </div>. You will have to pick a unique name and use it for the name and id. Then, create an action that calls the function and passes the id to it. Example: <a href="javascript:Toggle ('fun');">open/close</a> <div style="display:none;" name="fun" id="fun">fun</div>
Language:  JavaScript

Save to web space
E-mail Link

Code Snippet: