VML Health Disk Control

Source: Internet
Author: User
Tags key polyline setinterval
Control

VML Health Disk control <HEAD>
<meta Http-equiv=content-type content=text/html;charset=gb2312>
<TITLE> Game Development Case </TITLE>
<meta name= ' gemeratpr ' content= ' FlashVml1.0 (online flash&vml animated artboard) ' >
<meta name= ' KeyWords ' content= ' flashvml FlashVml1.0 (online flash&vml animated artboard) fywvml Flash VML VML image artboard online image artboard online artboard FLASHVM l1.0 Fyw >
<STYLE>
v:* ... {Behavior:url (#default #vml);}
*... {font-size:12px;}
</STYLE>
</HEAD>
<body bgcolor= #EEEEEE >
<bgsound Loop=-1 id=bgsound1>
<script>
Start the update function to update the initial view of all objects using the Rotate/hide feature
function Window.onload () ... {Try ... {var bodyobjs=document.body.children;for (i=0;i<bodyobjs.length;i++) ... {if (bodyobjs[i].xuanzhuan!=null) bodyobjs[i]. Rotation=bodyobjs[i].xuanzhuan;
if (bodyobjs[i].yincang!=null) bodyobjs[i].style.display= ' None ';}} catch (E) ... {}
flashvmlintervalvar0= "fyw1.fillcolor=" RGB (' +math.round (Math.random () *255) + ', ' +math.round (Math.random () *255) + ', ' +math.round (Math.random () *255) + ') ';
Lashvmlintervaltime0=setinterval (flashvmlintervalvar0,100)
flashvmlintervalvar1= "fyw1.strokecolor=" RGB (' +math.round (Math.random () *255) + ', ' +math.round (Math.random () *255) + ', ' +math.round (Math.random () *255) + '; ';
Lashvmlintervaltime0=setinterval (flashvmlintervalvar1,200)
}

function Document.onkeydown () ... {
Keycode1=event.keycode
if (keycode1==38) ... {//Key on keyboard
Fyw2.strokecolor= "Red"
Str1=fyw1. Rotation%360;len1=8;oldleft=parseint (Fyw1.style.left); Oldtop=parseint (Fyw1.style.top)
if (str1<0) ... {STR1=360+STR1}
if (str1==0) ... {fyw1.style.top=oldtop-(LEN1/2);}
if (str1==90) ... {fyw1.style.left=oldleft+len1;}
if (str1==180) ... {fyw1.style.top=oldtop+ (LEN1/2);}
if (str1==270) ... {fyw1.style.left=oldleft-len1;}
if (str1!=0&&str1!=90&&str1!=180&&str1!=270) ... {
if (str1<90) ... {fyw1.style.left=oldleft+len1;fyw1.style.top=oldtop-(LEN1/2)}
if (str1>90&&str1<180) ... {fyw1.style.left=oldleft+len1;fyw1.style.top=oldtop+ (LEN1/2)}
if (str1>180&&str1<270) ... {fyw1.style.left=oldleft-len1;fyw1.style.top=oldtop+ (LEN1/2)}
if (str1>270&&str1<360) ... {fyw1.style.left=oldleft-len1;fyw1.style.top=oldtop-(LEN1/2)}
}}
if (keycode1==40) ... {//keyboard key
Fyw4.strokecolor= "Red"
Str1=fyw1. Rotation%360;len1=8;oldleft=parseint (Fyw1.style.left); Oldtop=parseint (Fyw1.style.top)
if (str1<0) ... {STR1=360+STR1}
if (str1==0) ... {fyw1.style.top=oldtop+ (LEN1/2);}
if (str1==90) ... {fyw1.style.left=oldleft-len1;}
if (str1==180) ... {fyw1.style.top=oldtop-(LEN1/2);}
if (str1==270) ... {fyw1.style.left=oldleft+len1;}
if (str1!=0&&str1!=90&&str1!=180&&str1!=270) ... {
if (str1<90) ... {fyw1.style.left=oldleft-len1;fyw1.style.top=oldtop+ (LEN1/2)}
if (str1>90&&str1<180) ... {fyw1.style.left=oldleft-len1;fyw1.style.top=oldtop-(LEN1/2)}
if (str1>180&&str1<270) ... {fyw1.style.left=oldleft+len1;fyw1.style.top=oldtop-(LEN1/2)}
if (str1>270&&str1<360) ... {fyw1.style.left=oldleft+len1;fyw1.style.top=oldtop+ (LEN1/2)}
}}
if (keycode1==37) ... {//Keyboard left button
Fyw1. Rotation>-360?fyw1. Rotation-=5:fyw1. Rotation=0;fyw3.strokecolor= "Red"
}
if (keycode1==39) ... {//Keyboard right button
Fyw1. Rotation<360?fyw1. Rotation+=5:fyw1. Rotation=0;fyw5.strokecolor= "Red"
}
}
function Document.onkeyup () ... {
for (i=2;i<6;i++) ... {document.all ("Fyw" +i). strokecolor= "Black"}
}
</script>
<!--this are Project use the flashvml1.0,used 17.53 minutes-->
<v:polyline id=fyw1 style= "z-index:1007; left:411px; Position:absolute; Top:226px "points=" 45pt,46pt,67.5pt,0,90pt,45pt,43.5pt,45pt "strokecolor=" Black "strokeweight=" 5pt ">
</v:Polyline>
<v:line id=fyw2 style= "z-index:1001; left:500px; Position:absolute; Top:354px "from=" 0,0 "to=" 0,51.75pt "strokecolor=" Black "strokeweight=" 10pt ">
<v:stroke startarrow= "Block" endarrow= "None" >
</v:Stroke>
</v:line>
<v:line id=fyw3 style= "z-index:1006; left:408px; Position:absolute; top:443px "from=" 0,0 "to=" 54pt,0 "strokecolor=" Black "strokeweight=" 10pt ">
<v:stroke startarrow= "Block" endarrow= "None" >
</v:Stroke>
</v:line>
<v:line id=fyw4 style= "z-index:1001; left:501px; Position:absolute; top:462px "from=" 0,0 "to=" 0,51.75pt "strokecolor=" Black "strokeweight=" 10pt ">
<v:stroke startarrow= "None" endarrow= "Block" >
</v:Stroke>
</v:line>
<v:line id=fyw5 style= "z-index:1006; left:520px; Position:absolute; top:443px "from=" 0,0 "to=" 54pt,0 "strokecolor=" Black "strokeweight=" 10pt ">
<v:stroke startarrow= "None" endarrow= "Block" >
</v:Stroke>
</v:line>

</BODY></HTML>



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.