<div class="codetitle"> <span><a style="CURSOR: pointer" data="94813" class="copybut" id="copybut94813" onclick="doCopy('code94813')"><u>複製程式碼</u></a></span>如下程式碼:</div> <div class="codebody" id="code94813"> <br>$ "#sidebar"), <br> $window = $(window), <br> 5; <br><br> $window.scroll(function() { <br> if ($window.scrollTop() > offset.top) { <br> marginTop: $window.scrollTop() - offset.top topPadding <br> }); <br> } else { <br> $sidebar.stop(). <br> }); <br> } <br> });<br><br> </div>