//search var txtKeyword = document.getElementById("txtKeyword"); var btnSubmit = document.getElementById("btnSubmit"); var nulltext = "请输入您要查找的职位"; txtKeyword.value = nulltext; txtKeyword.onfocus = function() { if (txtKeyword.value == nulltext) { txtKeyword.style.color = "#000"; txtKeyword.value = ""; } } txtKeyword.onblur = function() { if (txtKeyword.value == "") { txtKeyword.style.color = "#c7c7c7"; txtKeyword.value = nulltext; } } txtKeyword.onkeydown = function() { if ((event.ctrlKey && event.keyCode == 13) || event.keyCode == 13) { Submit(); return false; } } btnSubmit.onclick = function() { Submit(); } function Submit() { if (txtKeyword.value == nulltext) txtKeyword.value = ""; if (txtKeyword.value == "") { $.dialog.alert('关键字不能为空'); return false; } if (document.getElementById("radKeyWordType0").checked) radKey = 0; else if (document.getElementById("radKeyWordType1").checked) radKey = 1; else radKey = 2; location = "/Job/index.asp?keyWord=" + escape(txtKeyword.value) + "&keyWordType=" + radKey + "&searchType=topSearch"; } // JavaScript Document flash $(function(){ var len = $(".num > li").length; var index = 0; var adTimer; $(".num li").mouseover(function(){ index = $(".num li").index(this); showImg(index); }).eq(0).mouseover(); $('.flash').hover(function(){ clearInterval(adTimer); },function(){ adTimer = setInterval(function(){ index++; if(index==len){index=0;} showImg(index); } , 6000); }).trigger("mouseleave"); }) function showImg(index){ var adHeight = $(".flash").height(); $(".slider img").hide().eq(index).fadeIn(500); $(".num li").removeClass("on").eq(index).addClass("on"); } //滑动门 function setTab(name,cursel,n){ for(i=1;i<=n;i++){ var menu=document.getElementById(name+i); var con=document.getElementById("con_"+name+"_"+i); menu.className=i==cursel?"hover":""; con.style.display=i==cursel?"block":"none"; } } //$(document) function showDiv1(obj){ if($(obj).attr("class")=="current1"){ $(obj).removeClass(); } else{ $(obj).addClass("current1"); $(obj).find(".shade").height($(obj).find(".area").height()) } } function showDiv(obj){ if($(obj).attr("class")=="current1"){ $(obj).removeClass(); } else{ $(obj).addClass("current1"); $(obj).find(".shade").height($(obj).find(".area1").height()+60) } } function newsShow(obj){ $("#newShow").show(); $("#newShow").css({"left":$(obj).offset().left,"top":$(obj).offset().top}); $("#newShow").find(".shade").height($("#newShow").find(".area").height()); $("#newShow").find(".shade1").height($("#newShow").find(".area").height()+30); } function ShowHidde(obj){ if (obj.style.display == 'none') obj.style.display = ''; else obj.style.display = 'none'; } function closeMsg(){ closeDivDialog(); } function AdsClick(bid){ (new Image()).src='/Ad/AdVisit1.asp?id='+bid; } function CheckLogin(){ var UserName=document.LoginForm.UserName.value; var PassWord=document.LoginForm.PassWord.value; var Users=document.getElementsByName("UserType"); if(UserName == ""){ $.dialog.alert('请输入用户名',function(){ document.LoginForm.UserName.focus(); });return false;} if(PassWord == ""){ $.dialog.alert('请输入密码',function(){ document.LoginForm.PassWord.focus(); });return false;} var count=0; for (var j=0; j'); document.writeln(''); var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fc3edb3fd35bd2449c46715db8f6dcf32' type='text/javascript'%3E%3C/script%3E"));