Thursday, October 22, 2009

Implementation mouse passes the clew graph layer when exceeding cable length

Code is as follows:
<SCRIPT>Var OPopup = Window.createPopup();Function Rdl_doClick(){Var OMessage=document.all("oMessage");With (oPopup.document.body) {Style.backgroundColor="lightyellow";Style.border="solid Black 1px";InnerHTML=oMessage.value;
}OPopup.show(70, 70, 180, 60);
}
</SCRIPT>
 <Input Id=oMessage Size=40 Value= is clicked play an area outside the window to shut it. ><BR><BR><A Onmouseover=rdl_doClick() Onmouseout=oPopup.hide(); Href="#"> shows play a window </A>--------------------------------------------------------------------
<STYLE Type=text/css>BODY {
 MARGIN-TOP: 0px; FONT-SIZE: 9pt; MARGIN-LEFT: 4px; MARGIN-RIGHT: 0px; FONT-FAMILY: "Body of the Song Dynasty "
}
A {
 FONT-WEIGHT: 400; FONT-SIZE: 13px; COLOR: Black; TEXT-DECORATION: None
}
A:hOver {
 FONT-WEIGHT: 400; FONT-SIZE: 13px; COLOR: Red; TEXT-DECORATION: Underline
}
A:aCtive {
 FONT: "; CURSOR of body of 9pt " the Song Dynasty: Hand; COLOR: #ff0033
}
</STYLE>
<SCRIPT>Function Show(tips, flag, url){Var My_tips=document.all.mytips;If(flag){My_tips.style.display="";If (url! =null){my_tips.innerHTML="<img Src='"+url+"'align=left>"+tips;}Else{My_tips.innerHTML=tips;}My_tips.style.left=event.clientX+10;My_tips.style.top=event.clientY+10;
  }Else
 {My_tips.style.display="none";
  }
}
</SCRIPT>
<A Onmousemove=show(this.tips, 1) Onmouseout=show(this.tips, 0) Href="#" Tips=" hints from the definition "> checks link </A><A Onmousemove="show(this.tips, 1, 'http://be10.ods.org/51js/images/standard/online_member.gif')" Onmouseout=show(this.tips, another each of 0) Href="#" Tips=" defines clew "> to check link </A><A Onmousemove="show(this.tips, 1, 'http://be10.ods.org/51js/images/standa rd/online_moderator.gif')" Onmouseout=show(this.tips, people's Republic of China of People's Republic of China of 0) Href="#" Tips=" hints from the definition "> checks link </A>
<div Id=mytips Style="BORDER-RIGHT: Gray 1px Solid; BORDER-TOP: Gray 1px Solid; DISPLAY: None; FONT-SIZE: 9pt; FILTER: Progid:DXImageTransform.Microsoft.Shadow(color=#999999, direction=135, strength=3); BORDER-LEFT: Gray 1px Solid; WIDTH: 150px; COLOR: Red; BORDER-BOTTOM: Gray 1px Solid; POSITION: Absolute; HEIGHT: 16px; BACKGROUND-COLOR: #ffffff"></div>----------------------------------------------------------------------
<SCRIPT Language=JavaScript>
/ / *********** acquiesce installs a definition. *********************Hint shows after TPopWait=50;// keeps second of TWait a person of extraordinary powers. TPopShow=5000;// shuts clew after second of indication TShow a person of extraordinary powersShowPopStep=20;PopOpacity=99;
/ / *************** in-house variable defines *****************SPop=null;CurShow=null;TFadeOut=null;TFadeIn=null;TFadeWaiting=null;Document.write("<style Type='text/css'id='defaultPopStyle'>");Document.write(".cPopText { Background-color: #F8F8F5;color:#000000; Border: 1px #000000 Solid;font-color: Font-size: 12px; Padding-right: 4px; Padding-left: 4px; Height: 20px; Padding-top: 2px; Padding-bottom: 2px; Filter: Alpha(Opacity=0)}");Document.write("</style>");Document.write("<div Id='dypopLayer' Style='position:aBsolute;z-index:1000;' Class='cPopText'></div>");Function ShowPopupText(){Var 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==N ull SPop=="") {DypopLayer.innerHTML="";DypopLayer.style.filter="Alpha()";DypopLayer.filters.Alpha.opacity=0;
   }Else {If(o.dyclass! =null) PopStyle=o.dyclassElse PopStyle="cPopText";CurShow=setTimeout("showIt()" , TPopWait);
  }
 }
}Function ShowIt(){DypopLayer.className=popStyle;DypopLayer.innerHTML=sPop;PopWidth=dypopLayer.clientWidth;PopHeight=dypopLayer.clientHeight;If(MouseX+12+popWidth>document.body.clientWidth) PopLeftAdjust=-popWidth-24Else PopLeftAdjust=0;If(MouseY+12+popHeight>document.body.clientHeight) PopTopAdjust=-popHeight-24Else PopTopAdjust=0;DypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;DypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;DypopLayer.style.filter="Alpha(Opacity=0)";FadeOut();
}Function FadeOut(){If(dypopLayer.filters.Alpha.opacity<popOpacity) {DypopLayer.filters.Alpha.opacity+=showPopStep;TFadeOut=setTimeout("fadeOut()" , 1);
 }Else {DypopL ayer.filters.Alpha.opacity=popOpacity;TFadeWaiting=setTimeout("fadeIn()" , TPopShow);
  }
}Function FadeIn(){If(dypopLayer.filters.Alpha.opacity>0) {DypopLayer.filters.Alpha.opacity-=1;TFadeIn=setTimeout("fadeIn()" , 1);
 }
}Document.onmouseover=showPopupText;
</SCRIPT>

No comments:

Post a Comment