You are currently browsing the tag archive for the 'Hide / Show DIV Onclick' tag.
Tag Archive
Hide / Show DIV Onclick Tutorial
November 23, 2007 in Development Tips, Tutorials | Tags: Hide / Show DIV Onclick | Leave a comment
Ever wanted to be able to hide / show a DIV(layer)? Well i found the perfect script to help out. The original post came from: http://www.webmasterworld.com/forum91/441.htm
I used the script when creating a recipient list with categories. Onclick of the title name it drops down the contacts included in that list.
—————————————-
A friend of mine is using this JS code in the header:
|
and this html code for each division that is to be hidden/shown:
|
(use different IDs for different divisions)
The difference between using the css tags ‘visibility’ and ‘block’ is that with ‘block’ the layout will be updated as well.
——————
There are a few additional posts regarding NS4 updates to working with other browsers so check it out.
