$(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 亞訊時代網(wǎng)絡科技有限公司 版權所有 粵ICP備05029047號 粵B2-20070212
訂版熱線:0755-82641800 傳真:0755-83503800