内容介绍
一款非常不错的jquery右侧浮窗客服代码,简单实用,B5教程网推荐下载!
jquery核心代码
$(document).ready(function(){
$(window).scroll(function(){
nowtop = parseInt($(document).scrollTop());
$('#cleft_box').css('top', nowtop + 200 + 'px')
})
$('#cleft_box').hover(function(){
$(this).css('width','172px');
},function(){
$(this).css('width','36px');
})
$('#toTop').click(function(){
$(document).scrollTop(0);
})
})