(function($){ $("table tr:nth-child(odd)").addClass("odd-row"); $(".showhide").bind('click',function(){ if($(this).next().attr('class')=='show'){ $(this).next().attr('class','') }else{ $(this).next().attr('class','show') } }); $("#description_head li a").each( function(j){ $("#description #description_content div").css('border','none'); $(this).bind('click',function(){ $("#description_head li a").attr('class',''); $(this).attr('class','here'); $("#description #description_content div").css('display','none'); $("#description #description_content div").get(j).style.display='block'; }); }); })(jQuery); var timer; (function($){ $(window).scroll(function(){ clearInterval(timer); var topScroll=getScroll(); if(topScroll > 520){ $(".jiaoyu_top").addClass("jiaoyou_top_ps"); } else{ $(".jiaoyu_top").removeClass("jiaoyou_top_ps"); } if ($.browser.msie && $.browser.version == "6.0") { var topDiv="0px"; var top=topScroll+parseInt(topDiv); timer=setInterval(function(){ $(".jiaoyu_top").animate({"top":top},100); },100) } }) })(jQuery); function getScroll(){ var bodyTop = 0; if (typeof window.pageYOffset != 'undefined') { bodyTop = window.pageYOffset; } else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') { bodyTop = document.documentElement.scrollTop; } else if (typeof document.body != 'undefined') { bodyTop = document.body.scrollTop; } return bodyTop }