最新下载
24小时阅读排行榜
- 1 结构体能不能作为 map 的 key?条件是什么?
- 2 javascript如何实现类型判断_有哪些注意事项【教程】
- 3 c++中variadic template变参模板怎么写_c++模板递归展开【深度】
- 4 ios怎样让html5获取定位权限_ios调用html5定位设置【步骤】
- 5 html5布局代码flex与float区别_html5布局代码两者差异对比【解析】
- 6 trae配置php和nginx搭配怎么弄_traenginxphp整合教程【步骤】
- 7 如何使用Golang优化并发数据访问_Golang 并发性能管理方法
- 8 XML上传后如何存入图形数据库(Neo4j)
- 9 MAUI如何实现振动效果 MAUI Vibrate功能使用
- 10 MAUI怎么修改应用图标和启动页 MAUI AppIcon设置方法
- 11 mysql并发下库存超卖怎么避免_mysql业务并发控制
- 12 SQL 如何监控 max_connections 被占满的告警与临时扩容
- 13 c# 如何自定义一个 control
- 14 javascript如何理解事件循环_宏任务和微任务有何区别【教程】
- 15 php实时输出模板引擎兼容吗_php实时输出模板适配【步骤】
最新教程
-
- Node.js 教程
- 16173 2025-08-28
-
- CSS3 教程
- 1546687 2025-08-27
-
- Rust 教程
- 23307 2025-08-27
-
- Vue 教程
- 25773 2025-08-22
-
- PostgreSQL 教程
- 22253 2025-08-21
-
- Git 教程
- 9231 2025-08-21
基于jquery.1.11.1.min.js制作的简洁jQuery右侧栏客服代码,有微信二维码、QQ、电话显示及返回顶部功能,网页右侧悬浮层,鼠标移动上去有效果。
js代码
<script type="text/javascript">
$(function() {
$("#service a").hover(function() {
if ($(this).prop("className") == "weixin_area") {
$(this).children("img.hides").show();
} else {
$(this).children("div.hides").show();
$(this).children("img.shows").hide();
$(this).children("div.hides").animate({marginRight: '0px'}, '0');
}
}, function() {
if ($(this).prop("className") == "weixin_area") {
$(this).children("img.hides").hide();
} else {
$(this).children("div.hides").animate({marginRight: '-163px'}, 0, function() {
$(this).hide();
$(this).next("img.shows").show();
});
}
});
$("#top_btn").click(function() {
$("html,body").animate({scrollTop: 0}, 600);
});
//右侧导航 - 二维码
$(".weixin_area").hover(function() {
$(this).children(".weixin").show();
},function(){
$(this).children(".weixin").hide();
})
});
</script>
