//jquery特效开始 $(document).ready(function(){ //下拉菜单 $('#navigate').find('>ul').addClass('dropmenu').find('li:has(ul)').addClass('hasmenu'); $('.dropmenu li.hasmenu').mousemove(function(){ $(this).find('>ul').show(); }); $('.dropmenu li.hasmenu').mouseleave(function(){ $(this).find('>ul').hide(); }); //微信 $(".favorite li").hover(function(){ $(this).find("img").show(); },function(){ $(this).find("img").hide(); }); //首页背景 $(".index_item").hover(function(){ $(this).addClass("cur"); },function(){ $(this).removeClass("cur"); }); //全屏轮换 $(".fullSlide").hover(function(){ $(this).find(".prev,.next").stop(true, true).fadeTo("show", 0.5) },function(){ $(this).find(".prev,.next").fadeOut() }); $(".fullSlide").slide({ titCell: ".hd ul", mainCell: ".bd ul", effect: "fold", interTime:5000, autoPlay: true, autoPage: true, trigger: "click", startFun: function(i) { var curLi = jQuery(".fullSlide .bd li").eq(i); if ( !! curLi.attr("_src")) { curLi.css("background-image", curLi.attr("_src")).removeAttr("_src") } } }); }); //jquery 结束 //获取浏览量 function showNum(cid,ctype,cshow,showid){ $.get('/config/count.asp',{id:cid,stype:ctype,show:cshow},function(data){ $(showid).html(data); }); } //搜索 function chkseach(sn){ if(sn.skw.value==""){ alert("请输入搜索关键词!"); sn.skw.focus(); return false; } if(sn.skw.value=="请输入搜索关键词"){ alert("请输入搜索关键词!"); sn.skw.focus(); return false; } return true; } function clearsearch(sn){ if(sn.value=="请输入搜索关键词") sn.value=""; } function redosearch(sn){ if(sn.value=="") sn.value="请输入搜索关键词"; } //end //邮箱格式 function is_email(str) { if((str.indexOf("@")==-1)||(str.indexOf(".")==-1)) { return false; } return true; } //feedback function Checkfeedback(form1){ if(form1.name.value==""){ alert("请输入你的姓名!"); form1.name.focus(); return false; } if(form1.email.value==""){ alert("请输入你的邮箱!"); form1.email.focus(); return false; } if(!is_email(form1.email.value)) { alert("邮箱格式错误!"); form1.email.focus(); return false; } if(form1.tel.value==""){ alert("请输入你的电话!"); form1.tel.focus(); return false; } if(form1.CompanyName.value==""){ alert("请输入你的公司!"); form1.CompanyName.focus(); return false; } if(form1.address.value==""){ alert("请输入你的地址!"); form1.address.focus(); return false; } if(form1.title.value==""){ alert("请输入你的标题"); form1.title.focus(); return false; } if(form1.content.value==''){ alert("请输入你的内容!"); form1.content.focus(); return false; } if(form1.validatecode.value==""){ alert("请输入你的验证码!"); form1.validatecode.focus(); return false; } return true; } //end //切换 function nTabs(thisObj,Num){ if(thisObj.className == "active")return; var tabObj = thisObj.parentNode.id; var tabList = document.getElementById(tabObj).getElementsByTagName("li"); for(i=0; i 0){var h=f.substr(e+3)}else{var h=f}var g=/^www\./;if(g.test(h)){h=h.substr(4)}return h};if(c==d){return 1}else{var c=this.getdomain(c);var b=this.getdomain(d);if(c==b){return 1}else{c=c.replace(".","\\.");var a=new RegExp("\\."+c+"$");if(b.match(a)){return 2}else{return 0}}}};