close

<script type="text/javascript">

$(function() {

             var offset = $("#sidebar").offset();

             var topPadding = 15;

             $(window).scroll(function() {

             if ($(window).scrollTop() > offset.top) {

             $("#sidebar").stop().animate({

             marginTop: $(window).scrollTop() - offset.top + topPadding

             });

             } else {

             $("#sidebar").stop().animate({

             marginTop: 0

             });

             };

             });

         }); 

         </script>

全站熱搜
創作者介紹
創作者 dizzy03 的頭像
dizzy03

碎碎念

dizzy03 發表在 痞客邦 留言(0) 人氣()