What you want is the display attribute.
Divs display is normally set at inline
IE
<div id='divBlock' style="display:block;">
You can set this to none using JS.
document.getElementById('divBlock').style.display='none';

and to set it back
document.getElementById('divBlock').style.display='inline';

I use the msdn reference located here..
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects.asp





On Mon, 20 Dec 2004 09:11:38 -0800, John Munyan <[EMAIL PROTECTED]> wrote:
> Hi, I am hoping someone can point me to a tutorial or link(s) explaining how 
> I might be able to created visible/invisible divs.  My navigation system is 
> made up a myriad of hikes broken down into categories.  I would like to 
> create functionality that presents the page collapsed showing the categories 
> and if the user clicks the category expands the hikes in the category.  
> Anyone know a good source of information on how this is done?
> 
> Another example of what I am after is myyahoo where you can expand and 
> minimize sections of content you have selected.
> 
> Any advice appreciated
> 
> Thanks,
> 
> John
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - New Atlanta
http://www.newatlanta.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188273
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to