gusucode.com > ASP+ACCESS在线人才招聘网(源代码+论文) > ASP+ACCESS在线人才招聘网(源代码+论文)\inc\Common.js
<!-- function mOvr(src,clrOver) { if (!src.contains(event.fromElement)) { src.style.cursor = 'hand'; src.bgColor = clrOver; }} function mOut(src,clrIn) { if (!src.contains(event.toElement)) { src.style.cursor = 'default'; src.bgColor = clrIn; }} function MM_findObj(n, d) { //v3.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x; } function MM_showHideLayers() { //v3.0 var i,p,v,obj,args=MM_showHideLayers.arguments; for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; } obj.visibility=v; } } var highlighting=null; function high(which2) { theobject=which2 highlighting=setInterval("highlightit(theobject)",90) } function low(which2){ clearInterval(highlighting) which2.filters.alpha.opacity=65 } function highlightit(cur2){ if (cur2.filters.alpha.opacity<100) cur2.filters.alpha.opacity+=13 else if (window.highlighting) clearInterval(highlighting) } function displaynews(id,flag) { if (flag!=1) flag=0; window.open ("/Person/CareerCenter/news_Content.asp?id="+id+"&flag="+flag,"_blank","status=yes,resizeble=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes") } function changephoto() { rotate(); for(var i=0;i<document.images.length;i++) { var e = document.images[i]; if (e.name == 'photo') { width=e.width; height=e.height; if (width<=200 &&height<=300) { continue; } if (width/200<=height/300) { e.height=300 e.width=width*(300/height) } else { e.width=200 e.height=height*(200/width) } } } } function SetHomePage() { homepage.style.behavior='url(#default#homepage)'; homepage.setHomePage(location.href); document.cookie="HomePage="+location.href+";Expires=Sat, 18 Dec 2010 00:00:00 -0800</P>"; } function showadvertisement(URL) { window.open(URL,"_blank","height=400,width=791,top=0,left=0,status=no,menubar=yes,loctaion=no,scrollbars=yes,resizable=yes,toolbar=yes") } whichIt = null; function ShowTips() { reftip.innerHTML=searchengines.innerHTML; reftip.style.visibility = "visible"; reftip.style.pixelWidth = 240; reftip.style.pixelHeight = 24; advanced=true; document.onmousemove = moveIt; document.onmouseup = dropIt; } function dropIt() { whichIt = null; return true; } function hideTip() { reftip.style.visibility = "hidden"; reftip.innerHTML = ""; document.onmousemove = ""; document.onmouseup = ""; } function grabIt(e) { whichIt = event.srcElement; while (whichIt.id.indexOf("reftip") == -1) { whichIt = whichIt.parentElement; if (whichIt == null) { return true; } } whichIt.style.pixelLeft = whichIt.offsetLeft; whichIt.style.pixelTop = whichIt.offsetTop; currentX = (event.clientX + document.body.scrollLeft); currentY = (event.clientY + document.body.scrollTop); return true; } function moveIt(e) { if (whichIt == null) { return false; } newX = (event.clientX + document.body.scrollLeft); newY = (event.clientY + document.body.scrollTop); distanceX = (newX - currentX); distanceY = (newY - currentY); currentX = newX; currentY = newY; whichIt.style.pixelLeft += distanceX; whichIt.style.pixelTop += distanceY; if(whichIt.style.pixelTop < document.body.scrollTop-92) whichIt.style.pixelTop = document.body.scrollTop-92; if(whichIt.style.pixelLeft < document.body.scrollLeft-175) whichIt.style.pixelLeft = document.body.scrollLeft-175; if(whichIt.style.pixelLeft> document.body.offsetWidth - document.body.scrollLeft-175 - whichIt.style.pixelWidth - 20) whichIt.style.pixelLeft = document.body.offsetWidth - document.body.scrollLeft-175- whichIt.style.pixelWidth - 20; if(whichIt.style.pixelTop > document.body.offsetHeight -document.body.scrollTop -92- whichIt.style.pixelHeight - 5) whichIt.style.pixelTop = document.body.offsetHeight -document.body.scrollTop-92 - whichIt.style.pixelHeight - 5; return false; } Clk="null"; function MenuOver(button) { if (button!=Clk) { document.images[button].src=eval(button + "_d" + ".src"); } } function MenuOut(button) { if (button!=Clk) { document.images[button].src=eval(button + "_u" + ".src"); } } function MenuClk(button) { if (Clk!=button) { if (Clk!="null") { document.images[Clk].src=eval(Clk + "_u" + ".src"); } } Clk=button; } function high(which2) { theobject=which2 highlighting=setInterval("highlightit(theobject)",90) } function low(which2){ clearInterval(highlighting) which2.filters.alpha.opacity=65 } function highlightit(cur2){ if (cur2.filters.alpha.opacity<100) cur2.filters.alpha.opacity+=13 else if (window.highlighting) clearInterval(highlighting) } function ViewDetail(id) { var url='/HR/News_Content.asp?id='+id; window.open(url,"popwin","top=0 left=100 toolbar=no,directories=no,menubar=no,scrollbars=yes,height=450,width=650"); } //-->