$(window).load( function showscroll(){ $$ = function(id){return document.getElementById(id)} function addClass(o,cn){var re = new RegExp("(\\s*|^)"+cn+"\\b","g");o.className +=o.className?(re.test(o.className)?"":" "+ cn):cn} function removeClass(o,cn){var re = new RegExp("(\\s*|^)"+cn+"\\b","g");var sName = o.className;o.className = sName.replace(re,"")} window.onscroll=window.onresize=function(){ var scrTop = document.documentElement.scrollTop+document.body.scrollTop,offTop = $$("automenu").getBoundingClientRect().top+scrTop-document.documentElement.clientTop+30; if($$("floats")) scrTop>offTop?addClass($$("floats"),"addclass"):removeClass($$("floats"),"addclass"); } } )
CopyRight© 2002-2012 亞訊時(shí)代網(wǎng)絡(luò)科技有限公司 版權(quán)所有 粵ICP備05029047號 粵B2-20070212
訂版熱線:0755-82641800 傳真:0755-83503800