热门关键字:
jquery > jquery插件 > jquery在线客服 > jquery实现右侧qq在线客服和置顶特效

jquery实现右侧qq在线客服和置顶特效

7304
所属分类:jquery在线客服
发布时间:2013/11/1 23:19:58
下载量:1347
评论数:0
转载请自觉注明原文:http://www.jq-school.com/Detail.aspx?id=354

此作品是浏览网站的时候看到的,觉得很好看、很实用,既有在线客服特效、又有置顶特效,于是就将它整理出来分享给大家了,大大家不需要去关注jquery代码,直接可以拿来用,为了方便大家使用,jquery插件代码和css样式代码已经分享到独立的文件里面了,好好利用哦。。。


jquery核心代码如下:

function Qust_contachScroll (){
	var st = 0;
	if (document.documentElement && document.documentElement.scrollTop) {
		st = document.documentElement.scrollTop;
	} else if (document.body) {
		st = document.body.scrollTop;
	}
	
	var contactTop = $(".qust_contach").offset().top;
	var height = $(".qust_contach").height();
	
	if ( st>80) {
		var top = (document.documentElement.clientHeight  - height)/2+st -80;
		
		$(".qust_contach").stop().animate(
			{
				top: top
			},300,null,function(){
				$("#toTop").stop().animate({
					height:45
				});
			});
	} else {
		var top = (document.documentElement.clientHeight  - height)/2 -80;
		//$(".qust_contach").css({
		//top: top
		//});
		if(top<=0)
		{
			top=contachTop
		}
		$(".qust_contach").stop().animate(
			{
				top: top
			},300,null,function(){
				$("#toTop").stop().animate({
					height:0
				});
			});
	}
}
效果如下:

jquery实现右侧qq在线客服和置顶特效





如果您觉得本作品对您的学习有所帮助:支付鼓励



关键字:在线客服 置顶特效 弹出层 返回顶部 滑动插件 滚动特效 滚动条特效
  • jquery实现右侧qq在线客服和置顶特效如果你喜欢学院的资源就下载吧,亲,谢谢!
  • jquery实现右侧qq在线客服和置顶特效
  • jquery实现右侧qq在线客服和置顶特效
  • 提示:如果网络问题无法下载,请多尝试几次,与 网站管理员联系 或 本站留言 !

声明: 本站内容均为网友原创或整理于互联网,版权归作品最初创作人,转载请注明(出处)原文链接,转载前请邮件至磐temdy@qq.com,一旦发现造成侵权行为,后果自负。。

友荐云推荐