广告联系QQ:1405083527
"; }else{ jQuery(this).removeClass("now"); } }); jQuery(".navsports li").each(function(i, e){ if(typeof(spid)!="undefined"){ if(jQuery(this).attr("id")==("sp_" + spid)){ jQuery(this).find("a").eq(0).addClass("now"); }else{ jQuery(this).find("a").eq(0).removeClass("now"); } }else{ if(jQuery(this).attr("id")==""){ jQuery(this).find("a").eq(0).addClass("now"); }else{ jQuery(this).find("a").eq(0).removeClass("now"); } } }); jQuery(function(){ jQuery(".btnSearch").click(function(){ var kstr = jQuery(".inpKeyword").val(); kstr = jQuery.trim(kstr); if(kstr==""){ return; } if(kstr.length>20){ alert("搜索字符不能超过20个字符"); } jQuery("#frmSearch").submit(); }); if(typeof(filter)!="undefined"){ jQuery("#selFilter").val(filter); } if(document.getElementById("selFilter")){ jQuery.BeautifySelect( document.getElementById("selFilter") ); } }); var focusTimerHandle = null; var focusTimer = 5000; var focusIndex = 0; var focusImageWidth = 460; var focusImageHeight = 172; var focusShow = function(i, opt){ if(typeof(i)!="undefined"){ if(typeof(opt)!="undefined"){ focusIndex += i; }else{ focusIndex = i; } }else{ focusIndex++; } if(focusIndex>jQuery(".focus-box-big ul li").size()-1){ focusIndex = 0; } if(focusIndex<0){ focusIndex = jQuery(".focus-box-big ul li").size()-1; } jQuery(".focus-box-big ul li").each(function(j){ if(focusIndex==j){ jQuery(".focus-box-big").find("ul").animate({marginLeft:"-" + (focusIndex*focusImageWidth) + "px"}, 0, null, function(){ window.clearTimeout(focusTimerHandle); focusTimerHandle = window.setTimeout("focusShow()", focusTimer); }); } }); jQuery(".focus-box-nav ul li").each(function(k){ if(focusIndex==k){ jQuery(this).addClass("current"); }else{ jQuery(this).removeClass("current"); } }); }; jQuery(".focus-box-nav ul li").each(function(i){ jQuery(this).hover(function(e){ jQuery(".focus-box-big ul li").each(function(j){ if(i==j){ focusShow(j); } }); jQuery(".focus-box-nav ul li").each(function(k){ if(i==k){ jQuery(this).addClass("current"); }else{ jQuery(this).removeClass("current"); } }); focusIndex = i; }); }); jQuery(".prev").click(function(){ focusShow(-1, "prev"); }); jQuery(".next").click(function(){ focusShow(1, "next"); }); jQuery(".focus-box-big ul li").each(function(i){ jQuery(this).hover(function(){ window.clearTimeout(focusTimerHandle); }, function(){ focusTimerHandle = window.setTimeout("focusShow()", focusTimer); }); }); focusTimerHandle = window.setTimeout("focusShow()", focusTimer);