1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | < head > < style type = "text/css" > body { font: 14px/1.4 Georgia, serif; } #page-wrap { width: 0px; margin:18 0 0 10px; } </ style > < script type = 'text/javascript' src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2' ></ script > < script type = "text/javascript" > $(function() { var offset = $("#sidebar").offset(); var topPadding = 0; $(window).scroll(function() { if ($(window).scrollTop() > offset.top) { $("#sidebar").stop().animate({ marginTop: $(window).scrollTop() - offset.top + topPadding }); } else { $("#sidebar").stop().animate({ marginTop: 0 }); }; }); }); </ script > </ head > < div id = "page-wrap" > < div id = "sidebar" > |