tPopWait=50; //停留tWait豪秒后显示提示。 tPopShow=6000; //显示tShow豪秒后关闭提示 showPopStep=20; popOpacity=95; nowOpacity=0 //***************内部变量定义***************** sPop=null;curShow=null;tFadeOut=null;tFadeIn=null;tFadeWaiting=null; var o; MouseX=0; MouseY=0; document.write("
"); function showPopupText(e){ if (navigator.appName == 'Netscape') { o=e.originalTarget; MouseX=e.pageX-document.body.scrollLeft; MouseY=e.pageY-document.body.scrollTop; } else { o=event.srcElement; MouseX=event.x; MouseY=event.y; } if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""}; if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""}; if(o.dypop!=sPop) { sPop=o.dypop; clearTimeout(curShow); clearTimeout(tFadeOut); clearTimeout(tFadeIn); clearTimeout(tFadeWaiting); if(sPop==null || sPop=="") { GetElement(document,"dypopLayer").innerHTML=""; GetElement(document,"dypopLayer").style.filter="Alpha()"; GetElement(document,"dypopLayer").style.filter="Alpha(Opacity=0)"; } else { if(o.dyclass!=null) popStyle=o.dyclass else popStyle="cPopText"; curShow=setTimeout("showIt()",tPopWait); } } } function showIt(){ GetElement(document,"dypopLayer").className=popStyle; sPop="
" + sPop + "
"; GetElement(document,"dypopLayer").innerHTML=sPop; popWidth=GetElement(document,"dypopLayer").clientWidth; popHeight=GetElement(document,"dypopLayer").clientHeight; popLeftAdjust=0; popTopAdjust=0; if (navigator.appName == 'Netscape') { popHeight=30; popWidth=120; } if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24 else popLeftAdjust=0; if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24 else popTopAdjust=0; GetElement(document,"dypopLayer").style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust; GetElement(document,"dypopLayer").style.top=MouseY+12+document.body.scrollTop+popTopAdjust; GetElement(document,"dypopLayer").style.filter="Alpha(Opacity=0)"; fadeOut(); } function fadeOut(){ if(nowOpacity0) { nowOpacity--; GetElement(document,"dypopLayer").style.filter="Alpha(Opacity="+nowOpacity+")"; tFadeIn=setTimeout("fadeIn()",1); } } if (navigator.appName == 'Netscape') { document.captureEvents(Event.MOUSEMOVE); document.onmousemove = showPopupText; } else document.onmouseover=showPopupText;