页面旁边客服区伸缩效果
来源:互联网 发布:农村淘宝店要多少钱 编辑:程序博客网 时间:2024/03/29 16:44
<div class="customer_left abs">
<div class="down_side csdown_sprite abs oh"></div>
<div class="down_bg csdown_sprite abs">
<a class="down_icon csdown_sprite abs" href="/html/help/browser.html"></a>
<div class="down_pt abs down_pt oh" down_type="pt"><img class="rel" src="../../images/csdown_pt.png"></div>
<div class="down_mobipt abs down_mobipt oh" down_type="mobipt"><img class="rel" src="../../images/csdown_mobipt.png"></div>
<!-- <div class="down_wxbox abs"> -->
<!-- <div class="down_wx csdown_sprite"></div> -->
<!-- </div> -->
</div>
</div>
<div class="customer_right abs">
<div class="cs_side csdown_sprite abs oh"></div>
<div class="cs_bg csdown_sprite abs">
<div class="cs_top csdown_sprite abs open_cs oh"></div>
<a class="cs_email csdown_sprite abs" href="mailto:hupai.kefu@gmail.com"></a>
<a class="cs_qq csdown_sprite abs" href="http://wpa.qq.com/msgrd?v=3&uin=82957000&site=qq&menu=yes" rel="nofollow" target="_blank"></a>
<a class="ag_qq csdown_sprite abs" href="http://wpa.qq.com/msgrd?v=3&uin=83250990&site=qq&menu=yes" rel="nofollow" target="_blank"></a>
<div class="cs_phone csdown_sprite abs"></div>
</div>
</div>
//cs_down side
//get default
var customer_top = $(".customer_right").offset().top;
var sTop = $(this).scrollTop();
$(".customer_left, .customer_right").css({top: sTop + customer_top + "px"});
//get scroll
$(window).scroll(function(){
var scrollTop = $(this).scrollTop();
$(".customer_left, .customer_right").css({top: scrollTop + customer_top + "px"});
});
$(".customer_left").hover(function(){
$(".customer_right").animate({width:"50px"});
$(".customer_right").children(".cs_bg").animate({width:"0px"});
var down = $(this);
clearTimeout( daywin[ down + '_timer' ] );
daywin[ down + '_timer' ] = setTimeout(function(){
down.animate({left:"0px"});
},100);
},function(){
var down = $(this);
clearTimeout( daywin[ down + '_timer' ] );
daywin[ down + '_timer' ] = setTimeout(function(){
down.animate({left:"-150px"});
},300);
});
$(".customer_right").hover(function(){
$(".customer_left").animate({left:"-150px"});
var cs = $(this);
clearTimeout( daywin[ cs + '_timer' ] );
daywin[ cs + '_timer' ] = setTimeout(function(){
cs.animate({width:"200px"});
cs.children(".cs_bg").animate({width:"150px"});
},100);
},function(){
var cs = $(this);
clearTimeout( daywin[ cs + '_timer' ] );
daywin[ cs + '_timer' ] = setTimeout(function(){
cs.animate({width:"50px"});
cs.children(".cs_bg").animate({width:"0px"});
},300);
});
$(".customer_left .down_pt img").hover(function(){
$(this).animate({top:"-53px"});
},function(){
$(this).animate({top:"0px"});
});
$(".customer_left .down_mobipt img").hover(function(){
$(this).animate({top:"-53px"});
},function(){
$(this).animate({top:"0px"});
});
- 页面旁边客服区伸缩效果
- 伸缩效果
- 鼠标旁边的提示信息,类似与163登录后的页面提示效果
- 伸缩式QQ在线客服代码
- 伸缩框效果
- yahoo首页伸缩效果
- JavaScript伸缩效果
- 两侧伸缩效果
- Android 文本伸缩效果
- TextView伸缩效果
- android 自定义ScrollView实现背景图片伸缩(仿多米,PaPa个人页面特效也称为阻尼效果)
- android 自定义ScrollView实现背景图片伸缩(仿多米,PaPa个人页面特效也称为阻尼效果
- 图层动态伸缩效果
- 图层动态伸缩效果
- jquery 实现伸缩菜单效果
- 具有伸缩效果的ListView
- jQuery实现展开伸缩效果
- jquery实现动画伸缩效果
- Oracle PL/SQL中如何使用%TYPE和%ROWTYPE
- windows如何打开命令行到当前目录
- Oracle查看当天创建的所有表
- Android中常见的热门标签的流式布局的实现——云标签
- EventBus.getDefault.post()不能传入基本数据类型,如int,double
- 页面旁边客服区伸缩效果
- qwt6.1.2静态编译
- 记录有些低落的一天
- 关于Spring Transaction的笔记
- 微信红包接口实现
- Hibernate hql语句按时间段查询
- 盘点国内程序员不常用的热门iOS第三方库:看完,还敢自称”精通iOS开发”吗?
- 树的同构
- 微软算法100道题-----字符匹配算法;