get jquery and then use this:
function UpDown(el){
$(".open").slideUp();
$(".open").removeClass("open");
$(el).addClass("open");
}
then use UpDown and pass in the element you want to open
<a onclick="updown($('#myDiv')">Click here</a>
<div id="myDiv">content</div>
<div class="open">content with div open by default but will slide up next
click</div>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328813
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4