« Resources for web developers让用户自由调整页面字体大小 »

Smart‘back to top’link

FontSize:- + Date: 2006-04-17
摘要:

按当前页面的显示高度,判定是否显示"回到顶部"的一个小特效,感觉小巧,好用.本站借用了此效果.也可以看效果链接.

Back to top link’s purpose is to quickly position the viewport back to a beginning of a web page. Sometimes you have a variable height of the content and this link is unnecessary if a particular page is shorter than viewport height. With this simple JavaScript, you can hide it depending on page’s height. See the example web site示范效果.


原文地址:http://www.maratz.com/blog/archives/2006/05/22/smart-back-to-top-link/

本文链接地址:http://leafor.com/Leafor-blog/Smart-back-to-top-link.html
如果你也喜欢本文,记得顶一下,支持我。你的支持是我继续发好文章的最大动力!谢谢!

Get TrackBack URI 发布:爱你无名 | 分类:web技术 | 评论:0 | 引用:0 | 浏览:
Tags:web技术  网页设计  js  用户体验  国外资源  
Share:

相关文章

Comments

Leave a Comment

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Recent Comments

Guest Book

My Fav