JQ之返回顶部
来源:互联网 发布:成都php找工作很难 编辑:程序博客网 时间:2024/05/23 00:09
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>JQ之返回顶部</title><script src="http://code.jquery.com/jquery-latest.js"></script><script language="javascript">function init_gotop(){$("#go_top").css("top",$(document).scrollTop()+$(window).height()-80);$(window).scroll(function(){$("#go_top").css("top",$(document).scrollTop()+$(window).height()-80);if($(document).scrollTop()>0)$("#go_top").fadeIn();else$("#go_top").fadeOut();});$("#go_top").bind("click",function(){$("html,body").animate({scrollTop:0},"fast","swing",function(){});});}$(document).ready(function(){init_gotop();});</script><style type="text/css">#go_top { cursor: pointer; position: fixed; _position: absolute; right: 23px; bottom: 20px; width: 60px; height: 60px; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; display: none; z-index: 60;}</style></head><body><a id="go_top" href="javascript:void(0);">回到顶部</a></body></html>
1 0
- JQ之返回顶部
- jq返回顶部
- 基于JQ返回顶部代码
- jq锚点动作加返回顶部
- 漂亮的JQ“返回顶部” 按钮
- jq返回顶部功能--面向对象思路
- js,jq,锚点 分别实现返回顶部
- JQ实现点击返回顶部(有动画过渡)
- JQ 回顶部
- jq 回到顶部
- jq滚动到顶部
- 返回顶部
- 返回顶部
- 返回顶部
- 返回顶部
- 返回顶部
- 返回顶部
- 返回顶部
- 不同设计模式解决的问题(完善中。。)
- 使用cryptography进行AES的cbc模式加密
- 2017的小目标
- Hibernate总结
- php websocket
- JQ之返回顶部
- 支付宝的app支付接入
- 关于直播,所有的技术细节都在这里了
- Bzoj 3942: [Usaco2015 Feb]Censoring(kmp)
- 值类型
- spring aop两种方式实现
- Android之路-路漫漫其修远兮
- python matplotlib 中文显示参数设置
- linux生成.so,查找编译问题之杂文