[php]
<script>
jQuery(function($){
function stickyFooter(){
var footer = $("#main-footer");
var position = footer.position();
var height = $(window).height();
height = height – position.top;
height = height – footer.outerHeight();
if (height > 0) {
footer.css({‘margin-top’ : height+’px’});
}
}
stickyFooter();
$(window).resize(function(){
stickyFooter();
});
});
</script>
[/php]
0 Comments