摘要: js部份:function toolbar(el) { el = typeof el == 'string' ? document.getElementById(el) : el; var elTop = el.offsetTop; var sTop = 0; window.onscroll = function () { sTop = document.body.scrollTop || document.documentElement.scrollTop; if (sTop > elTop) { el.style.top = "0"; el.sty 阅读全文
posted @ 2013-02-27 20:34 chinall 阅读(215) 评论(0) 推荐(0) 编辑