左侧TIPS 滑进滑出效果JQUERY
来源:互联网 发布:ubuntu 中文界面 编辑:程序博客网 时间:2024/05/21 10:36
左侧提示 滑进滑出 平滑效果,各位童鞋如果遇到类似效果可以应用:
JQUERY代码:
//左侧浮动$(".reading").hover( function(){ $(this).animate({left:"50"});$(".read").animate({left:"0"},600);});$(".read_close").click( function(){$(".read").animate({left:"-287"},600);$(".reading").animate({left:"0"},800);});
HTML:
<!--左侧浮动--> <div class="reading"> <a target="_blank"><img src="../css.87504.cn/images/business/read01.gif" /></a> </div> <div class="read"> <a target="_blank" class="read_close"><img src="../css.87504.cn/images/business/icon_close.gif" /></a> <p >您可以订阅生意街商机话题,您会通过邮箱收到栏目最新内容。</p> <p class="read_btn"><a href="#" target="_blank" ><img src="../css.87504.cn/images/business/read02.gif" /></a></p> </div>
CSS:
.reading{position:fixed;left:0px;bottom:30px;cursor:pointer;width:25px;height:75px; _position:absolute;//兼容IE6 _top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,30)||0)));//兼容IE6,距离底部30}.read{ border:1px solid #d0d0d0;width:285px;height:100px; -moz-box-shadow:0px 1px 2px #ccc; -webkit-box-shadow:0px 1px 2px #ccc; box-shadow:0px 1px 2px #ccc;//阴影效果,CSS3background:#fff;position:fixed;left:-287px;bottom:30px;z-index:10;_position:absolute;_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,30)||0)));}.read p{font-size:14px;line-height:22px;padding:15px 0 0 16px;width:240px;}.read p.read_btn{text-align:right;padding-top:5px}.read_close{float:right;padding:2px;cursor:pointer;}
- 左侧TIPS 滑进滑出效果JQUERY
- jQuery左侧菜单效果
- 左侧菜单渐入效果 jquery
- jquery左侧导航滑动网页定位效果
- javascript jquery 仿京东左侧悬浮框效果
- jQuery导航条的效果(左侧菜单)
- JS 左侧折叠效果
- 左侧导航效果
- jquery仿京东导航,仿淘宝商城左侧分类导航菜单,jquery实现下拉菜单效果
- jQuery经过显示图片大图 图片tips效果
- jQuery.Tips
- JQuery Tips
- jQuery tips
- JQUERY TIPS
- jquery左侧导航
- 【js与jquery】左侧导航模块的显示与隐藏效果
- 常用的左侧导航效果
- 左侧栏收缩打开效果
- Oracle存储过程基本语法 转载
- javah 命令记录
- 心声
- hdu4514
- CGI编程错误总结
- 左侧TIPS 滑进滑出效果JQUERY
- 联系人数据库设计之PhotoPriorityResolver
- LeetCode_Gray Code
- C#实现远程控制及桌面监控功能(服务端)
- LoadRunner工具的设置技巧问题
- hibernate.hbm2ddl.auto 的设置
- 基于SVG的web页面图形绘制API介绍
- 图的DFS
- CAS3.4 代理模式详细配置