Add button for Smooth Scroll to the top / bottom

为页面添加按钮,平滑的滚动到顶部/底部

目前为 2015-06-05 提交的版本。查看 最新版本

作者
axetroy
评分
0 0 0
版本
2015.6.5.1
创建于
2015-03-22
更新于
2015-06-05
大小
8.6 KB
许可证
暂无
适用于
所有网站

FBI Warning:

手势党和page键党,请关闭这个页面点击我关闭页面

不喜欢/习惯用可以,请不要嘲讽。

if you like use gesture and page key, please close this page click me Close


在页面右边添加【回到顶部】【去到底部的按钮】
脚本特点:
1,并非duang的一下,立刻达到顶部或底部,而是变加速
2,不用时,会自动移动到浏览器最右边,指向原来位置,可以还原位置
3,并没有外部链接,安全食用
4,页面没有滚动条时候,并不会显示,当窗口大小改变出现滚动条时,按钮也出现。
5,有键盘快捷键【Ctrl+↑】【Ctrl+↓】,增加黑名单机制,按【Ctrl+F2】调出面板。
Ps:chrome和firefox下测试正常。如果异常,请尝试升级浏览器。

add 2 bottons in the page which can 【goTop】 and 【goBtm】
Script Feature:
1,it's not reached the top or bottom immediately , but rather accelerate change(Smooth)
2,it will automatically hide to the right, point to the original location, it will restore location
3,And there is no external links, safe to eat
4,When the age does not has scroll bar, and it will not show untill the window is resized when scroll bars appear , the buttons also appear.
5, there is the keyboard shortcut 【Ctrl + ↑】 【Ctrl + ↓】, and increase the blacklist mechanism, press 【Ctrl + F2】 to call up the panel.
Ps:Chrome and Firefox tests are normal. If something unusual, try upgrading your browser

2015.6.5更新日志
添加键盘快捷键
【Ctrl+↑】(方向键)则向上滚动
【Ctrl+↓】(方向键)则向下滚动
增加了黑名单机制,【Ctrl+F2】调出控制面板,选择禁用哪个域名。在禁用的域名,脚本不会运行。(不要问我为什么添加这个,纯粹当作练手,有时间,任性^_^)
如果网页没有加载脚本,注意按Ctrl+F2,查看是否已添加到黑名单。黑名单列表输出到控制台(F12)
黑名单机制已经完成,就是界面有点丑,我知道我不是写CSS的料,日后再说.....

2015.6.4更新日志
更漂亮,更好用
把原来的【顶部】【底部】字样去掉,换上【↑】【↓】的字符
现在两按钮的【移出边界】和【移入页面】不在有"duang"一下的反弹;
精简了代码
以及一些细微的更新。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址