The 'collapse this' javascript in question is:
Code: Select all
<script type="text/javascript">
$(".forumlist").collapse({show: function(){
this.animate({
opacity: 'toggle',
height: 'toggle'
}, 300);
},
hide : function() {
this.animate({
opacity: 'toggle',
height: 'toggle'
}, 300);
}
});
</script>
This worked for me, but I wonder if it creates extra server load, or extra browser load, having it in the footer (or header). It would be possible to do an IF statement to have it working only on the page or pages that need it.