Forum Moderators: open
<script type="text/javascript">
$(".titlebar").click(function(){
$(this).next(".boxes").toggle(1200);
})
.toggle( function() {
$(this).children("span").text("-");
}, function() {
$(this).children("span").text("+");
});
</script>
<div class="titlebar">This Div<span>+</span></div>
<div id="thisdiv" class="boxes">
<div id="one">content</div>
<div id="two">content</div>
</div>
<div class="titlebar">This Div2<span>+</span></div>
<div id="thisdiv2" class="boxes">
<div id="three">content</div>
<div id="four">content</div>
</div>
$(document).ready(function() {
$("<?php echo $load ?>").toggle(1200);
});
if( window.location.hash.length ) {
var offset = $(window.location.hash).offset();
$('html, body').offset({ top: offset.top, left: offset.left});
}
meaning if the offset top is 300, then header is pushed down 300.