?? embedded_com - introduction to uml statecharts.htm
字號(hào):
return lyrtxt; }function MenuItem(label,action) { this.LABEL =label ; this.ACTION =action ; this.SUB =this.ACTION.substring(0,1)=="@"; this.RENDER ="" ; }function MenuListAPPEND(label,action) //Appends an item to the menuobject { this.Items[this.Items.length]=new MenuItem(label,action); if(label.length>this.greatestCharWidth)this.greatestCharWidth=label.length; }function menuPop(tobj,imgId,imgSrc) //Pops up menu relative to <A> tag location on screen. { if ((imgId)&&(imgSrc))imgSwap(imgId,imgSrc); objectName=tobj.href.substring(tobj.href.lastIndexOf("/")+1); if(objectName.indexOf(".html")>-1)objectName=objectName.substring(0,objectName.indexOf("."))// if(!menuCurrentPath)return; if(menuCurrentPath.indexOf(":"+objectName+":")==0)return false; if(menuCurrentPath.length>0)menuPOPDN();if(szDuds.indexOf(navigator.userAgent)>-1){if(tobj.href.indexOf(".html")==-1)tobj.href+=".html";return true;} if(navigator.appVersion.indexOf("MSIE")>-1&&navigator.appVersion.indexOf("Mac")>-1) {// compatible mac if(tobj.href.indexOf(".html")==-1)tobj.href+=".html"; return true; } this.MX=((systemIsNS)?(tobj.x):window.event.clientX-window.event.offsetX+tobj.offsetLeft); this.MY=((systemIsNS)?(tobj.y):window.event.clientY-window.event.offsetY+tobj.offsetTop); if(!systemIsNS)MSIEmeasure(tobj,this); this.MY+=menuYpopoff; this.MX+=menuXpopoff; menuPOPUP(this.MX,this.MY,objectName); menuTimeOut=setTimeout("menuPOPDN()",menuAtimeout); return false; }function menuPOPUP(x,y,menulist) //*** Opens named menu at given location { var DL=eval(menulist); if(!DL){alert("menuPOPUP NULL "+menulist);return;} menuSHOW(menulist,x,y); if(!menuScreenWidth) menuScreenWidth=(systemIsNS)?document.width:document.body.offsetWidth; mkw=(DL.greatestCharWidth*menuCharWidth)+10; var atX = ((x+mkw+20)>=menuScreenWidth)?x-mkw:x; if(jsLAYERgetX(DL.mPANEL)!=atX)menuXY(DL,atX,y); }function menuCREATE(szMlist,iLeft,iTop) { Left= 20;Top = 40; if(menuCREATE.arguments.length>1)Left=iLeft; if(menuCREATE.arguments.length>2)Top=iTop; Mlist=eval(szMlist); if(Mlist.mPANEL ==null) { Mlist.mPANEL=new jsMPANELclass(szMlist,0,"Hello","alert('hi')",Left,Top,((Mlist.greatestCharWidth+10)*menuCharWidth)+1,((menuCharHeight+1)*Mlist.Items.length)+1); Mlist.mPANEL.mParent=Mlist; var menuContent=''; menuContent='<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><TR><TD>'; for(x=0;x<Mlist.Items.length;x++) { menuContent+=menuLABEL(Mlist.mPANEL,Mlist.Items[x].LABEL,false,Mlist.Items[x].SUB); Mlist.Items[x].RENDER=menuLABEL(Mlist.mPANEL,Mlist.Items[x].LABEL,true,Mlist.Items[x].SUB); } menuContent+='</TD><TD BGCOLOR="#000000"> </TD>'; menuContent+="</TR><TR><TD COLSPAN=2> </TD></TR></TABLE>";//alert(menuContent); jsLAYERsetContent(Mlist.mPANEL,menuContent); } if(Mlist.mSELECT==null) { Mlist.mSELECT=new jsMSELECTclass(szMlist,1,"Hello","alert('hi')",Left,Top,(Mlist.greatestCharWidth+10)*menuCharWidth,menuCharHeight); Mlist.mSELECT.mParent=Mlist; jsLAYERsetContent(Mlist.mSELECT,Mlist.Items[0].RENDER); } }function menuSHOW(szMlist,iLeft,iTop) // SHOW the menu { Left= 20;Top = 40; if(menuSHOW.arguments.length>1)Left=iLeft; if(menuSHOW.arguments.length>2)Top=iTop; Mlist=eval(szMlist); if(Mlist.mPANEL==null)menuCREATE(szMlist,iLeft,iTop); if(jsLAYERgetX(Mlist.mPANEL)!=Left || jsLAYERgetY(Mlist.mPANEL)!=Top) { jsLAYERxy(Mlist.mPANEL,Left,Top) jsLAYERxy(Mlist.mSELECT,Left,Top+(Mlist.EntryNum*(menuCharHeight+1))); }; if(menuCurrentPath.indexOf(":"+szMlist+":")<0)menuCurrentPath+=((menuCurrentPath.length)?"":":")+szMlist+":"; if(Mlist.mPANEL.style.clip&&!systemIsNS) { Clips= Mlist.mPANEL.style.clip.split("rect(")[1].split(")")[0].split("px") Clips[2]=Mlist.Items.length * (menuCharHeight+1); Mlist.mPANEL.style.clip = "rect("+Array(0,Clips[1],Clips[2],0).join("px ")+"px)"; Mlist.mPANEL.style.zIndex=5; Mlist.mSELECT.style.zIndex=6; } Mlist.mPANEL.style.visiblity='visible';//alert(Mlist.Items.length +" Item(s) "+ Mlist.mPANEL.style.clip); jsLAYERshow(Mlist.mPANEL,true); jsLAYERshow(Mlist.mSELECT,true); }function menuHIDE(szMlist) // Hides the named menu { Mlist=eval(szMlist); jsLAYERshow(Mlist.mSELECT,false); jsLAYERshow(Mlist.mPANEL,false); }function menuXY(Mlist,x,y) // Moves the referenced menu { jsLAYERxy(Mlist.mPANEL,x,y) jsLAYERxy(Mlist.mSELECT,x,y+(Mlist.EntryNum*(menuCharHeight+1))); }function menuPOPDN(treeList) // closes a list of menus { if(menuTimeOut)clearTimeout(menuTimeOut); if(menuPOPDN.arguments.length<1)treeList=menuCurrentPath; while(treeList.length>1) { killboy =treeList.substring(1); killboy =killboy.substring(0,killboy.indexOf(":")); treeList=treeList.substring(killboy.length+1); menuHIDE(killboy); } if(menuPOPDN.arguments.length<1)menuCurrentPath=""; };/*** MAIN MENU OBJECT*/var mSELECT=null;function MenuList(Mlist) { this.mPANEL=null;this.mSELECT=null; this.Items=new Array();this.EntryNum=0; this.APPEND=MenuListAPPEND; this.greatestCharWidth=0; }/* Function :MSIEmeasure** Since I have found no straight forward method of obtaining IE x,y** coords for the clicked link, this function recurses up the object tree** to measure the screen location of the <A> involved*/function MSIEmeasure(btobj,HB) { var tobj=btobj; HB.MX=tobj.offsetLeft; HB.MY=tobj.offsetTop; while(tobj.parentElement) { if(!tobj.parentElement)break; tobj = tobj.parentElement;// if(tobj.tagName=="TABLE") if(String(":TABLE:TD:DIV:").indexOf(":"+tobj.tagName+":")>-1) { HB.MX+=tobj.offsetLeft; HB.MY+=tobj.offsetTop; } if(!tobj.parentElement)break; if(tobj.parentElement.tagName=="BODY")break; } return ; }/****************************************** A message window ******************************************/var StatusMsgWin=null;function jsMESSAGEclass(group,entry,x,y,w,h) { this.lyrName =group+entry; if(!document.all[this.lyrName])jsLAYERcreateLayer(this,x,y,w,h,"#FFFFCC"); jsLAYERsetHandler(this,"jsNULLvector"); jsLAYERshow(this,true); this.jsLAYERobject.GROUP=group;this.jsLAYERobject.ENTRY=entry; }/*** Set the contents of the message window;*/function jsStatusMsg(txtMESSAGE) { if(!StatusMsgWin) { StatusMsgWin= new jsMESSAGEclass("E",1,1,1,355,100); jsLAYERshow(StatusMsgWin,true); } jsLAYERsetContent(StatusMsgWin,txtMESSAGE); }var LIBLOADEDJSmenu=true;//systemLibCnt++;
</SCRIPT>
<!-- /menu.js --><!-- <body bgcolor="#ffffff" link="#0000ff" vlink="#63399"> -->
<META content="MSHTML 6.00.2800.1264" name=GENERATOR></HEAD>
<BODY text=#000000 vLink=#999999 aLink=#6699cc link=#336699 bgColor=white
leftMargin=0 topMargin=0 rightMargin=0 marginheight="0" marginwidth="0"><FONT
face=verdana,georgia,arial,sans-serif size=2>
<TABLE cellSpacing=0 cellPadding=0 width=780 border=0>
<TBODY>
<TR bgColor=#666699>
<TD vAlign=bottom align=left bgColor=#666699 rowSpan=2><A
href="http://www.embedded.com/"><IMG height=119
src="Embedded_com - Introduction to UML statecharts.files/embedded_top.jpg"
width=302 border=0></A><BR></TD>
<TD vAlign=top align=middle bgColor=#666699 colSpan=2><!-- http://as.cmpnet.com/html.ng/affiliate=embedded&pagepos=top&site=electronics&server=atg&target=/showArticle.jhtml --><A
href="http://as.cmpnet.com/event.ng/Type=click&FlightID=18121&AdID=28395&TargetID=683&Segments=862,885,1411,3108,3448&Targets=683,786,2625,2878&Values=34,46,51,63,77,82,92,100,140,203,304,309,442,451,1184,1311,1388,1716,1785,1901,1925,1970,2299,2310&RawValues=IP,66.77.24.68,&Redirect=http://www.esconline.com/eUSA/redirect/0001.htm"
target=_top><IMG height=60 alt=""
src="Embedded_com - Introduction to UML statecharts.files/eUSA_468x60.gif"
width=468 border=0></A><IMG height=1
src="Embedded_com - Introduction to UML statecharts.files/dcfc.gif"
width=1 border=0> </TD></TR>
<TR>
<TD vAlign=bottom align=right bgColor=#666699><IMG height=50 hspace=0
src="Embedded_com - Introduction to UML statecharts.files/blend_top.gif"
width=387 border=0><BR></TD>
<TD vAlign=bottom align=right width=91 bgColor=#666699 height=50><A
href="http://www.eetnetwork.com/"><IMG height=50 hspace=0
src="Embedded_com - Introduction to UML statecharts.files/eetnetworklogo.gif"
width=91 border=0></A><BR></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=1 cellPadding=0 width=780 border=0>
<TBODY>
<TR bgColor=#333366><!-- TopNav.html -->
<TD align=middle width=130><A href="http://www.eeproductcenter.com/"><IMG
height=16 alt=eeProductCenter
src="Embedded_com - Introduction to UML statecharts.files/eepc.gif"
width=111 border=0></A></TD>
<TD align=middle width=130><A href="http://www.embedded.com/"><IMG
height=16 alt=Home
src="Embedded_com - Introduction to UML statecharts.files/home.gif"
width=42 border=0></A></TD>
<TD align=middle width=130><A
href="http://www.eetimesnetwork.com/register/newsletters.jhtml"><IMG
height=16 alt="Sign up for newletters"
src="Embedded_com - Introduction to UML statecharts.files/register.gif"
width=100 border=0></A></TD>
<TD align=middle width=130><A
href="http://www.embedded.com/contact.htm"><IMG height=16 alt=Contact
src="Embedded_com - Introduction to UML statecharts.files/about.gif"
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -