站长资源网络编程
随鼠标上下滚动的jquery代码
简介复制代码 代码如下: //随鼠标上下滚动 $(window).bind('scroll resize',function(){ $('#sidebar').stop(true, true).animate({ 'top': $(document).scrollTop() + 'px' },500);
复制代码 代码如下:
//随鼠标上下滚动
$(window).bind('scroll resize',function(){
$('#sidebar').stop(true, true).animate({
'top': $(document).scrollTop() + 'px'
},500);
}).scroll().resize();
//随鼠标上下滚动
$(window).bind('scroll resize',function(){
$('#sidebar').stop(true, true).animate({
'top': $(document).scrollTop() + 'px'
},500);
}).scroll().resize();