fvml2.0完整压缩包下载地址(6860KB,包括fvml2主程序、所有演示VMLFLASH、MP3、图片资源文件等所有文件):
http://www.codefans.com/CodeView/CodeView_4894.html
http://lydsgw.com/fyw/flashvml2.rar
http://flashvml.iecn.net/flashvml2.rar
推荐使用方式:
1:将下面代码保存为FlashVml2_0.htm
2:右键单击FlashVml2_0.htm,创建一个桌面快捷方式
3:以后直接到桌面双击快捷方式打开FlashVml2_0.htm即可
在线使用:
http://www.sjzxdl.com/fyw/flashvml2_0.htm
http://demo.codes.com.cn/FlashVml2/flashvml2_0.htm
http://flashvml.iecn.net/flashvml2_0.htm
http://lydsgw.com/fyw/flashvml2_0.htm
完整代码如下:
<HTML xmlns:v>
<HEAD>
<META http-equiv="Content-Type" content="text/html; Charset=gb2312">
<META name="GENERATOR" content="网络程序员伴侣(Lshdic)2005">
<META name='KeyWords' content='flashvml,vml,vml动画,风云舞,图像画板,在线画板,在线画图'>
<title>FlashVml2.0(在线Flash&Vml图像、动画画板)</title>
<STYLE>
v\:*{behavior:url(#default#VML);} /*声明V为VML变量*/
a{text-Decoration:none;color:red}
a:hover{text-Decoration:underline;color:blue;}
table{background-color:#FCDCF1;}
td{font-size:12px;color:555555;}
span{font-size:12px;white-Space:nowrap;}
.bon1{border-bottom:1 solid eeeeee;border-right:1 solid eeeeee;border-left:1 solid gray;border-top:1 solid gray;background-color:dddddd;color:blue;width:54;cursor:hand}
.bon2{border-bottom:1 solid gray;border-right:1 solid gray;border-left:1 solid white;border-top:1 solid white;background-color:#FCDCF1;color:maroon;width:54;cursor:hand;font-family:宋体}
.bon3{border-bottom:1 solid maroon;border-right:1 solid maroon;border-left:1 solid menu;border-top:1 solid menu;background-color:#F0E5D1;color:purple;width:54;cursor:hand;font-family:宋体}
textarea{border:1 groove purple;}
#cen{color:maroon;font-weight:bold;width:100%;height:100%;cursor:move}
#xiaolei{color:red}
.keshi{position:absolute;z-index:30000;}
.zhongyao{cursor:hand;font-weight:bold;color:red}
</STYLE>
</HEAD>
<BODY onscroll='bodyscrollleft=document.body.scrollLeft;bodyscrolltop=document.body.scrollTop' oncontextmenu='if(event.srcElement.tagName!="TEXTAREA")return false' style='margin:0;cursor:default;border:0;scrollbar-base-color:purple;scrollbar-shadow-color:white;scrollbar-highlight-color:white;scrollbar-arrow-color:white;' vlink=#3732CD link='#3732CD' onselectstart='if(event.srcElement.tagName!="TEXTAREA"&&event.srcElement.tagName!="INPUT")return false' onhelp='fywvmlhelp.click();return false'>
<DIV style='position:absolute;z-index:4000;top:500;display:none;' id=meinv>
<v:curve style="Z-INDEX:3001;LEFT:356px;POSITION:absolute;TOP:198px;" from="0,0" control1="75pt,-19pt" control2="95pt,-16pt" to="96.75pt,-12pt" filled="t" fillcolor="black" strokecolor="black" strokeweight=".75pt"> <v:fill type="frame" opacity=".5"></v:fill></v:curve><v:curve style="Z-INDEX:3007;LEFT:543px;POSITION:absolute;TOP:179px" from="0,0" control1="-3pt,-11.25pt" control2="48pt,-19pt" to="56.25pt,-17.25pt" filled="t" fillcolor="black" strokecolor="black" strokeweight=".75pt"><v:fill type="frame" opacity=".5"></v:fill></v:curve><v:curve style="Z-INDEX:3010;LEFT:386px;POSITION:absolute;TOP:232px" from="0,0" control1="11pt,-3pt" control2="48pt,-22pt" to="65.25pt,-9pt" filled="f" fillcolor="white" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke></v:curve><v:curve style="Z-INDEX:3026;LEFT:386px;POSITION:absolute;TOP:233px" from="0,0" control1="40pt,23pt" control2="65.25pt,-8.25pt" to="64.5pt,-9.75pt" filled="f" fillcolor="white" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke></v:curve><v:curve style="Z-INDEX:3037;LEFT:546px;POSITION:absolute;TOP:212px" from="0,0" control1="11pt,-20pt" control2="44.25pt,-14.25pt" to="46.5pt,-15pt" filled="f" fillcolor="white" strokecolor="black" strokeweight=".75pt"></v:curve><v:curve style="Z-INDEX:3042;LEFT:546px;POSITION:absolute;TOP:211px" from="0,0" control1="48.75pt,11.25pt" control2="46.5pt,-14.25pt" to="46.5pt,-14.25pt" filled="f" fillcolor="white" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke></v:curve><v:polyline style="Z-INDEX:3063;LEFT:548px;POSITION:absolute;TOP:211px" points="0,0,3pt,-5.25pt,8.25pt,-9pt,13.5pt,-11.25pt,22.5pt,-13.5pt,31.5pt,-14.25pt,39pt,-14.25pt,42pt,-6.75pt,41.25pt,-4.5pt,36.75pt,-.75pt,30.75pt,1.5pt,23.25pt,2.25pt,16.5pt,2.25pt,9pt,2.25pt,0,0" filled="t" fillcolor="#4338e8" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:fill type="frame" opacity=".5"></v:fill><v:stroke startarrow="none" endarrow="none"></v:stroke></v:polyline><v:polyline style="Z-INDEX:3082;LEFT:400px;POSITION:absolute;TOP:227px" points="0,0,0,3.75pt,2.25pt,9pt,3.75pt,9.75pt,10.5pt,12pt,15.75pt,12.75pt,26.25pt,12.75pt,33.75pt,10.5pt,42.75pt,6pt,48.75pt,.75pt,44.25pt,-8.25pt,36pt,-9.75pt,26.25pt,-8.25pt,15.75pt,-5.25pt,0,0" filled="t" fillcolor="#4338e8" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:fill type="frame" opacity=".5"></v:fill><v:stroke startarrow="none" endarrow="none"></v:stroke></v:polyline><v:arc style="Z-INDEX:3107;LEFT:546px;WIDTH:41px;CLIP:rect(4px 38px 23px 0px);POSITION:absolute;TOP:189px;HEIGHT:23px" startangle="238" endangle="27" coordsize="21600,21600" filled="t" fillcolor="black" stroked="f" strokecolor="#333" strokeweight=".75pt" adj=",,5400"><v:path arrowok="t"></v:path><v:fill type="frame" opacity=".5"></v:fill><v:stroke joinstyle="miter" startarrow="none" endarrow="none"></v:stroke></v:arc><v:arc style="Z-INDEX:3107;LEFT:406px;WIDTH:35px;CLIP:rect(0px 35px 22px 0px);POSITION:absolute;TOP:215px;HEIGHT:23px" startangle="278" endangle="32" coordsize="21600,21600" filled="t" fillcolor="black" stroked="f" strokecolor="#333" strokeweight=".75pt" adj=",,5400"><v:path arrowok="t"></v:path><v:fill type="frame" opacity=".5"></v:fill><v:stroke joinstyle="miter" startarrow="none" endarrow="none"></v:stroke></v:arc><v:oval style="Z-INDEX:3153;LEFT:413px;WIDTH:5px;POSITION:absolute;TOP:225px;HEIGHT:5px" coordsize="21600,21600" filled="t" fillcolor="white" stroked="f" strokecolor="#333" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke><v:fill type="frame" opacity="52428f"></v:fill></v:oval><v:oval style="Z-INDEX:3153;LEFT:559px;WIDTH:5px;POSITION:absolute;TOP:203px;HEIGHT:5px" coordsize="21600,21600" filled="t" fillcolor="white" stroked="f" strokecolor="#333" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke><v:fill type="frame" opacity="45875f"></v:fill></v:oval><v:curve style="Z-INDEX:3166;LEFT:377px;POSITION:absolute;TOP:228px" from="0,0" control1="18pt,-13.5pt" control2="64.5pt,-13.5pt" to="51pt,-13.5pt" filled="f" fillcolor="white" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke></v:curve><v:curve style="Z-INDEX:3171;LEFT:560px;POSITION:absolute;TOP:195px" from="0,0" control1="27pt,-10.5pt" control2="41.25pt,-6pt" to="41.25pt,-6pt" filled="f" fillcolor="white" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke></v:curve><v:curve style="Z-INDEX:3012;LEFT:536px;POSITION:absolute;TOP:231px" from="0,0" control1="26pt,40pt" control2="12.75pt,40.5pt" to="12.75pt,40.5pt" filled="f" fillcolor="white" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke></v:curve><v:curve style="Z-INDEX:3018;LEFT:522px;POSITION:absolute;TOP:315px" from="0,0" control1="44.25pt,-9pt" control2="44.25pt,-9pt" to="44.25pt,-9pt" filled="t" fillcolor="red" strokecolor="black" strokeweight=".75pt"><v:fill type="frame" opacity=".5"></v:fill></v:curve><v:curve style="Z-INDEX:3029;LEFT:522px;POSITION:absolute;TOP:315px" from="0,0" control1="18pt,-9pt" control2="15pt,-9pt" to="27.75pt,-7.5pt" filled="f" fillcolor="white" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke></v:curve><v:curve style="Z-INDEX:3032;LEFT:559px;POSITION:absolute;TOP:304px" from="0,0" control1="9pt,-7pt" control2="8pt,1pt" to="16.5pt,-1.5pt" filled="f" fillcolor="white" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke></v:curve><v:curve style="Z-INDEX:3079;LEFT:523px;POSITION:absolute;TOP:315px" from="0,0" control1="20pt,4pt" control2="20pt,4pt" to="27pt,3.75pt" filled="f" fillcolor="white" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke></v:curve><v:curve style="Z-INDEX:3086;LEFT:559px;POSITION:absolute;TOP:320px" from="0,0" control1="7pt,-3pt" control2="7pt,-2pt" to="15.75pt,-12.75pt" filled="f" fillcolor="white" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke></v:curve><v:polyline style="Z-INDEX:3111;LEFT:524px;POSITION:absolute;TOP:313px" points="0,0,11.25pt,-4.5pt,17.25pt,-6.75pt,26.25pt,-6pt,27pt,-7.5pt,32.25pt,-9.75pt,38.25pt,-7.5pt,42pt,-8.25pt,37.5pt,-3pt,31.5pt,3pt,26.25pt,5.25pt,17.25pt,4.5pt,-.75pt,1.5pt,0,0" filled="t" fillcolor="red" stroked="f" strokecolor="black" strokeweight=".75pt"><v:fill type="frame" opacity=".5"></v:fill><v:stroke startarrow="none" endarrow="none"></v:stroke></v:polyline><v:line style="Z-INDEX:3132;LEFT:403px;POSITION:absolute;TOP:240px" from="0,0" to="-7.5pt,7.5pt" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke></v:line><v:line style="Z-INDEX:3133;LEFT:410px;POSITION:absolute;TOP:242px" from="0,0" to="-9pt,12.75pt" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke></v:line><v:line style="Z-INDEX:3134;LEFT:600px;POSITION:absolute;TOP:207px" from="0,0" to="12.75pt,4.5pt" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke></v:line><v:line style="Z-INDEX:3135;LEFT:605px;POSITION:absolute;TOP:200px" from="0,0" to="14.25pt,2.25pt" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke></v:line><v:Textbox id=mmtishi title="" style="display:none;FONT-SIZE:20px;Z-INDEX:3157;LEFT:324px;WIDTH:394px;COLOR:red;WORD-BREAK:break-all;FONT-FAMILY:黑体;LETTER-SPACING:2px;POSITION:absolute;TOP:412px;HEIGHT:73px;TEXT-ALIGN:center" inset="5pt,5pt,5pt,5pt">FlashVml程序加载完成 <BR>可以使用<BR><FONT color=blue>©CopyRight2004-2005 FYW(风云舞)</FONT></v:Textbox><v:curve style="Z-INDEX:3178;LEFT:620px;POSITION:absolute;TOP:131px" from="0,0" control1="8pt,162pt" control2="-46pt,162pt" to="-52.5pt,164.25pt" filled="f" fillcolor="white" stroked="t" strokecolor="#555" strokeweight=".75pt"><v:stroke startarrow="none" endarrow="none"></v:stroke></v:curve><v:curve style="Z-INDEX:3208;LEFT:345px;POSITION:absolute;TOP:221px" from="0,0" control1="120pt,129.75pt" control2="175.5pt,117.75pt" to="154.5pt,116.25pt" filled="f" fillcolor="white" strokecolor="black" strokeweight=".75pt"></v:curve><v:curve style="Z-INDEX:3212;LEFT:381px;POSITION:absolute;TOP:282px" from="0,0" control1="107.25pt,97.5pt" control2="180.75pt,84pt" to="180.75pt,84pt" filled="f" fillcolor="white" strokecolor="black" strokeweight=".75pt"></v:curve><v:curve style="Z-INDEX:3215;LEFT:413px;POSITION:absolute;TOP:328px" from="0,0" control1="107.25pt,1in" control2="186pt,54.75pt" to="186pt,54.75pt" filled="f" fillcolor="white" strokecolor="black" strokeweight=".75pt"></v:curve><v:curve style="Z-INDEX:3222;LEFT:339px;POSITION:absolute;TOP:261px" from="0,0" control1="168.75pt,127.5pt" control2="261pt,95.25pt" to="261pt,95.25pt" filled="f" fillcolor="white" strokecolor="black" strokeweight=".75pt"></v:curve><v:curve style="Z-INDEX:3249;LEFT:319px;POSITION:absolute;TOP:157px" from="0,0" control1="123.75pt,189.75pt" control2="271.5pt,166.5pt" to="271.5pt,166.5pt" filled="f" fillcolor="white" strokecolor="black" strokeweight=".75pt"></v:curve></div>
<script>
//画板初期状态存储变量
var huaban_yanse="#EEEEEE",huaban_biaoti="吾之画",huaban_zuidahua=true,huaban_gundongtiao=0
var huaban_gundongbase="purple",huaban_tianjiaid=true,huaban_pingbicuowu=true
var huaban_cookies=1,huaban_wangge="50px",huaban_wanggese="#5fb6f6"
var meinvtime=null,nonos="none"
window.status="FlashVml2.0程序加载中,请少等完成后使用...."
function meinvgo(){ //开场欢迎
meinv.style.display="";
meinvtime2="setInterval('if(meinv.offsetTop>-400){meinv.style.top=meinv.offsetTop-10}else{clearInterval(meinvtime);meinv.style.display=nonos}',30)"
meinvtime=setInterval("if(meinv.offsetTop>0){meinv.style.top=meinv.offsetTop-10}else{clearInterval(meinvtime);mmtishi.style.display='';setTimeout(\"mmtishi.style.display=nonos;"+meinvtime2+"\",3000)}",30)
}
function deletecookies(){ //删除COOKIES
var dates = new Date();
dates.setDate(dates.getDate()-1000);
document.cookie="fvml1=1;expires="+dates.toGMTString()
}
function setcookies(){ //设定COOKIES
var dates=new Date()
dates.setDate(dates.getDate()+365) //cookies过期时间1年
document.cookie="fvml1="+huabutab.width+","+huaban_yanse+","+huaban_gundongbase+","+huaban_biaoti+","+huaban_zuidahua+","+huaban_gundongtiao+","+yesaddnextid.checked+","+pingbicuowu.checked+","+xunhuan1.checked+","+huaban_cookies+","+huaban_wangge+","+huaban_wanggese+";expires="+dates.toGMTString()
}
function getcookies(){ //读取COOKIES
if(document.cookie=="")return false;
cookies=document.cookie.split('; ')
temp1=-1
for(i=0;i<cookies.length;i++){if(cookies[i].indexOf("fvml1=")==0)temp1=i} //找到flashvml的COOKIES存储组
if(temp1==-1)return false
cks=cookies[temp1].substr(6).split(",") //逗号分割
huaban_cookies=cks[9]
if(huaban_cookies==0){deletecookies();return false} //如果是cookies不存储,删除COOKIES
huabutab.width=cks[0];huabutab.height=cks[0] //设置启动值
div1.style.backgroundColor=cks[1];huaban_yanse=cks[1]
document.body.style.scrollbarBaseColor=cks[2];huaban_gundongbase=cks[2]
huaban_biaoti=cks[3]
if(cks[4]=="false")huaban_zuidahua=false
huaban_gundongtiao=cks[5]
if(cks[6]=="false")yesaddnextid.checked=false
if(cks[7]=="false")pingbicuowu.checked=false
if(cks[8]=="false")xunhuan1.checked=false
huaban_wangge=cks[10];huaban_wanggese=cks[11]
changsts();
}
var muqianwangge=false //记录是否用过网格、当前网格状态
function wangge(){ //启用及关闭网格线
if(muqianwangge==false){
muqianwangge=true
temp0=huaban_wangge.replace(/px/g,'');temp1=768/temp0;temp2=1024/temp0;
temp3=div1.offsetWidth;temp4=div1.offsetHeight;temp5=huaban_wanggese
tempck=" onmousedown=alert('不能对网格操作')"
for(i=0;i<temp1;i++){document.body.appendChild(document.createElement("<v:line to="+temp3+",0 style='position:absolute;z-index:5;left:0;top:"+(temp0*i)+";' strokecolor='"+temp5+"' strokeweight='1px'"+tempck+" id='wanggexian'/>"))}
for(i=0;i<temp2;i++){document.body.appendChild(document.createElement("<v:line to=0,"+temp4+" style='position:absolute;z-index:5;left:"+(temp0*i)+";top:0;' strokecolor='"+temp5+"' strokeweight='1px'"+tempck+" id='wanggexian'/>"))}
}else{muqianwangge=false;templen=wanggexian.length;for(i=0;i<templen;i++){wanggexian[i].removeNode();templen--;i--}}
}
function window.onload(){ //启动时cookies更新视图
getcookies();meinvgo()
}
function window.onbeforeunload(){ //关闭时存储cookies
setcookies()
}
function window.onerror(){ //防止未下载完成时、误操作引起的未知、可能的错误
return true
}
</script>
<script>
keystrs="flashvml,vml,vml画板,vml动画,vml图像画板,风云舞,图像画板,在线画板,在线画图"
if(screen.width<1024||screen.height<768){alert('本程序只支持在大于1024*768显示器分辨率的环境下工作,检测您的显示器分辨率低于这个数值,请在[控制面板--显示]中调整分辨率为1024*768或大于这个分辨率,而后在刷新本页,即可使用');document.body.style.display='none'}
var flashvmlfunadd="",flashvml2funadd="",statuschangefunadd="" //决定是否在编译window.onload()时插入相关函数脚本
var xx=0,yy=0,moveok=0
var onloadjiaobenstr="" //存储用户对onload()函数所做的修改
function onloadstr(whatonload){
if(whatonload==true){jtempp="\n"+flashvmlfunadd+flashvml2funadd+statuschangefunadd}else{jtempp=""}
if(onloadjiaobenstr!=""){jtempp2="\n"+onloadjiaobenstr+"\n"}else{jtempp2=""}
return "<script>\n//启动更新函数,更新所有使用旋转/隐藏功能的物件初期视图\nif(screen.width<1024||screen.height<768){alert(\"本页最佳适应于支持大于1024*768显示器分辨率的环境下工作,检测您的显示器分辨率低于这个数值,请在[控制面板--显示]中调整分辨率为1024*768或大于这个分辨率,而后在刷新本页,即可看到最佳效果\");}\nvar loadtime=null,loadtext='if(document.readyState!=\"complete\"){window.status=window.status+\".\"}else{clearInterval(loadtime);window.status=\"\"}';\nwindow.status='相关图型\程序\音乐正在加载,请等待,Loading'\nloadtime=setInterval(loadtext,200)\nfunction 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;\nif(bodyobjs[i].yincang!=null)bodyobjs[i].style.display='none';}}catch(e){}"+jtempp+jtempp2+"}\n;;;/script>"
}
</script>
<!--存储地震效果函数--><textarea id=dhfun_dizhen style="display:none">
var dzobj2=null,tuoldx=0,tuoldy=0,dzbuzhou=1
function dizhen(dzobj,zhenfu){ //流线动画使用地震效果必要函数
if(dzobj2!=dzobj){
if(dzobj2!=null){if(dzobj2==window)dzobj2.moveTo(tuoldx,tuoldy);else {dzobj2.style.left=tuoldx;dzobj2.style.top=tuoldy;}}
dzobj2=dzobj
if(dzobj==window){tuoldx=window.screenLeft;tuoldy=window.screenTop;}else{tuoldx=parseInt(dzobj.style.left);tuoldy=parseInt(dzobj.style.top);}
}
zhenfu2=Math.round(Math.random()*zhenfu)
if(dzobj!=window){
Math.random()>0.5?zhengui2="+":zhengui2="-";
if(dzbuzhou==1){eval("dzobj.style.left=tuoldx"+zhengui2+"zhenfu2")}
else if(dzbuzhou==2){eval("dzobj.style.top=tuoldy"+zhengui2+"zhenfu2")}
else if(dzbuzhou==3){dzobj.style.left=tuoldx}
else if(dzbuzhou==4){dzobj.style.top=tuoldy}
}else{
Math.random()>0.5?windowBy=zhenfu2:windowBy=-zhenfu2;
if(dzbuzhou==1){eval("window.moveBy("+windowBy+",0)")}
else if(dzbuzhou==2){eval("window.moveBy(0,"+windowBy+")")}
else if(dzbuzhou==3){window.moveTo(tuoldx+","+window.screenTop)}
else if(dzbuzhou==4){window.moveTo(tuoldx+","+tuoldy)}
}
dzbuzhou++;if(dzbuzhou==5)dzbuzhou=1
}
//使用动态裁剪效果必要函数
var objwid=0,objhei=0,cliptop=0,clipright=0,clipdown=0,clipleft=0,clipoldobj=null
function clipcool(clipobj,clipsudu,cliptopyes,cliprightyes,clipdownyes,clipleftyes,clipwidth,clipheight){
if(clipoldobj!=clipobj){
objwid=clipobj.offsetWidth;objhei=clipobj.offsetHeight;
clipobj.style.clip="rect(0 "+objwid+" "+objhei+" 0)"
cliptop=0;clipright=objwid;clipdown=objhei;clipleft=0
clipoldobj=clipobj
}
if(cliprightyes==true)objwid-=clipsudu
if(clipdownyes==true)objhei-=clipsudu
if(cliptopyes==true)cliptop+=clipsudu
if(clipleftyes==true)clipleft+=clipsudu
clipobj.style.clip="rect("+cliptop+"px "+objwid+"px "+objhei+"px "+clipleft+"px)"
}
</textarea>
<v:line style="position:absolute;z-index:50000;display:none;top:0" id=biaochi1 from="0,0" to="0,10pt" strokecolor="blue" strokeweight="5pt"> <!--起点X标尺-->
<v:stroke startarrow="none" endarrow="classic"/>
</v:line>
<v:line style="position:absolute;z-index:50000;display:none;left:0" id=biaochi2 from="0,0" to="10pt,0" strokecolor="blue" strokeweight="5pt"> <!--起点Y标尺-->
<v:stroke startarrow="none" endarrow="classic"/>
</v:line>
<v:line class=keshi style="display:none" from="0,0" to="0,24.75pt" strokecolor="red" strokeweight="4pt" id='biaoshi'> <!--红色箭头用于标识目标ID对象-->
<v:Stroke startarrow="none" endarrow="block">
</v:Stroke>
</v:line>
<v:Line class=keshi style="display:none" id='line1' dashstyle='dashdot'> <!--直线可视化-->
<v:Stroke dashstyle='dashdot'/>
</v:line>
<v:arc startangle='270' endangle='90' class=keshi style='display:none' id='arc1'> <!--弧型可视化-->
<v:Stroke dashstyle='dashdot'/>
</v:arc>
<v:Oval class=keshi style="display:none" id='oval1'> <!--圆型可视化-->
<v:Stroke dashstyle='dashdot'/>
</v:oval>
<v:rect class=keshi style="display:none" id='rect1'> <!--长方型可视化-->
<v:Stroke dashstyle='dashdot'/>
</v:rect>
<v:rect class=keshi style="display:none;cursor:hand" filled="t" fillcolor="yellow" strokecolor="red" strokeweight="1px" id='caijian' onmouseup="if(event.button==1){var skk=prompt('请输入一个步长(默认为25),然后请使用方向键[上、下、左、右]控制进行裁剪,裁剪完成后,按下[回车键]或[鼠标右键]完成。注意必须输入数字,否则无法裁剪。建议输入范围5-50',caijianbu);if(skk!=''&&skk!=null){caijianbu=parseInt(skk);}}else{caijian.style.display='none';thisobj=null;return false}"> <!--裁剪长方型可视化-->
<v:Stroke dashstyle='dashdot'/>
<v:fill type="frame" opacity="0.1"/>
</v:rect>
<v:roundrect class=keshi style="display:none" id='roundrect1'> <!--圆锯型可视化-->
<v:Stroke dashstyle='dashdot'/>
</v:roundrect>
<table cellspacing=0 cellpadding=0 width=200% height=200% id=huabutab><tr><td>
<div style='width:100%;height:100%;background-color:eeeeee;color:black;cursor:crosshair;' id=div1></div>
</td></tr></table>
<span class=keshi style="display:none;left:expression(document.body.offsetWidth/2-(this.offsetWidth/2));top:expression(document.body.offsetHeight/2-(this.offsetHeight/2));z-index:40000;display:none;background-color:#FCDCF1" id='huabanshezhi'> <!--画板设置选项-->
<FIELDSET style="width:250;padding:5;">
<Legend>画板状态设置</legend>
画布大小:<select id=huaban_daxiao1><option>最小<option selected>二倍<option>三倍<option>四倍<option>五倍</select><br>网格像素:<select id=huaban_wangge1><option>25px<option selected>50px<option>75px<option>100px<option>125px<option>150px<option>175px<option>200px</select> 网格颜色:<input type='text' style='border:1 solid black;width:55;height:17;' value='#FFFFFF' onmousedown='rndcolor(this.id)' id='huaban_wanggese1'><br>画布颜色:<input type='text' style='border:1 solid black;width:55;height:17;' value='#EEEEEE' onmousedown='rndcolor(this.id)' id='huaban_yanse1'> 滚动条颜色:<input type='text' style='border:1 solid black;width:55;height:17;' value='purple' onmousedown='rndcolor(this.id)' id='huaban_gundongbase1'><br>图像标题:<input type='text' style='border:1 solid black;width:182;height:17;' value='吾之画' id=huaban_biaoti1>
</FIELDSET><br>
<FIELDSET style="width:250;padding:5">
<Legend>运行状态设置</legend>
自动最大化窗口:<input type=checkbox checked id=huaban_zuidahua1><br>
显示画板类似滚动条:<input type=radio checked name=huaban_gundongtiao1><br>
显示系统默认滚动条:<input type=radio name=huaban_gundongtiao1><br>
不显示任何的滚动条:<input type=radio name=huaban_gundongtiao1>
</FIELDSET><br>
<FIELDSET style="width:250;padding:5">
<Legend>画板下次启动时自动设置(Cookies)</legend>
应用画板的默认设置:<input type=radio name=huaban_cookies1><br>
应用本次对画板设置的改动:<input type=radio checked name=huaban_cookies1><br>
</FIELDSET><br><Center>
<input type='button' value='确定' class="bon3" onclick="huaban_gundongbase=huaban_gundongbase1.value;huaban_yanse=huaban_yanse1.value;huaban_biaoti=huaban_biaoti1.value;huaban_zuidahua=huaban_zuidahua1.checked;for(i=0;i<huaban_gundongtiao1.length;i++){if(huaban_gundongtiao1[i].checked)huaban_gundongtiao=i};div1.style.backgroundColor=huaban_yanse;huabutab.width=(100*huaban_daxiao1.selectedIndex)+100+'%';huabutab.height=(100*huaban_daxiao1.selectedIndex)+100+'%';for(i=0;i<huaban_cookies1.length;i++){if(huaban_cookies1[i].checked)huaban_cookies=i};huabanshezhi.style.display='none';document.body.style.scrollbarBaseColor=huaban_gundongbase;huaban_wangge=huaban_wangge1.options[huaban_wangge1.selectedIndex].text;huaban_wanggese=huaban_wanggese1.value;changsts()" style=width:50> <input style=width:50 type='button' value='默认值' class="bon3" onclick="huaban_daxiao1.options[1].selected=true;huaban_yanse1.value='#EEEEEE';huaban_yanse1.style.color='#EEEEEE';huaban_gundongbase1.value='purple';huaban_gundongbase1.style.color='purple';huaban_biaoti1.value='吾之画';huaban_wanggese1.value='white';huaban_zuidahua1.checked=true;huaban_gundongtiao1[0].checked=true;huaban_cookies1[1].checked=true;huaban_wangge1[1].selected=true"> <input style=width:50 type='button' value='取消' class="bon3" onclick="huabanshezhi.style.display='none'"></center></span>
<iframe id=web src="about:blank" style="display:none"></iframe> <!--实现保存-->
<span class=keshi style="display:none;" id='wenzi1'> <!--插入文字可视化-->
文字内容(支持HTML标签):<select id='textstyle'><option value='<b></b>'>粗体字<option value='<i></i>'>斜体字<option value='<u></u>'>下划线<option value='<big></big>'>偏大<option value='<small></small>'>偏小<option value='<sup></sup>'>偏上<option value='<sub></sub>'>偏下<option value='<center></center>'>居中对齐<option value='<span style="text-align:right"></span>'>向右对齐<option value='<font color="#FF0000"></font>'>有字色<option value='<font style="background-color:#FF0000"></font>'>背景色<option value='<span style="border:1 solid black"></span>'>有边框<option value='<marquee width=100></marquee>'>流动字幕</select><input type=button class=bon3 value=加入该标签 onclick='ccc=textstyle.options[textstyle.selectedIndex].value;txt1.focus();document.selection.createRange().text=ccc.substr(0,ccc.indexOf(">")+1)+document.selection.createRange().text+ccc.substr(ccc.indexOf(">")+1)' style='width:75'><br>
<textarea id='txt1' style='width:300;height:100;background-color:Transparent;border:1 solid black'></textarea><br>
<center>字体:<select style="width:100;" id=wenziziti onchange='txt1.style.fontFamily=this.options[this.selectedIndex].text;'><script>var zitistr="<option selected>宋体<option>黑体<option>隶书<option>幼圆<option>楷体_GB2312<option>仿宋_GB2312<option>华文中宋<option>华文行楷<option>华文新魏<option>华文细黑<option>华文彩云<option>方正姚体<option>方正舒体<option>Wingdings<option>Wingdings 2<option>Wingdings 3<option>Webdings<option>System<option>@宋体<option>@黑体<option>@隶书<option>@幼圆<option>@楷体_GB2312<option>@仿宋_GB2312<option>@华文中宋<option>@华文行楷<option>@华文新魏<option>@华文细黑<option>@华文彩云<option>@方正姚体<option>@方正舒体<option>@System";document.write(zitistr)</script></select> 有无边框<input type='checkbox' id='wenzibiankuang' checked onclick="this.checked?txt1.style.borderWidth=1:txt1.style.borderWidth=0"> 背景透明<input type='checkbox' id='beijingtouming' checked onclick="this.checked?txt1.style.backgroundColor='Transparent':txt1.style.backgroundColor=wenzibeijing.value"><br>
颜色:<input type='text' style='border:1 solid black;width:50;height:17;' value='#000000' onmousedown='rndcolor(this.id)' id='wenziyanse' onmousemove='txt1.style.color=this.value;'> 背景:<input type='text' style='border:1 solid black;width:50;height:17;' value='#FFFFFF' onmousedown='rndcolor(this.id)' id='wenzibeijing' onmousemove='if(!beijingtouming.checked)txt1.style.backgroundColor=this.value'> 大小:<select style="width:50;" id=wenzidaxiao onchange='txt1.style.fontSize=this.options[this.selectedIndex].text;'><option selected>12<script>var temp101="";for(i=1;i<101;i++){temp101+="<option>"+i;}document.write(temp101)</script></select><br>
<select id='duiqi' onchange="if(this.options[0].selected==true)txt1.style.textAlign='left';if(this.options[1].selected==true)txt1.style.textAlign='center';if(this.options[2].selected==true)txt1.style.textAlign='right';"><option value=''>左对齐<option value='text-align:center'>居中<option value='text-align:right'>右对齐</select><Select id='zijiange' onchange="if(this.options[0].selected==false)txt1.style.letterSpacing=this.options[this.selectedIndex].text"><option>默认字间隔度<Script>document.write(temp101)</script></select><Select id='hangjiange' onchange="if(this.options[0].selected==false)txt1.style.lineHeight=this.options[this.selectedIndex].text"><option>默认行隔度<Script>var temp1="";for(i=1;i<10;i+=0.5){temp1=temp1+"<option>"+i.toPrecision(2)}document.write(temp1)</script></select><br>
<input type='button' value='插入' class="bon3" onclick="charuwenzi()"><input type='button' value='取消' class="bon3" onclick="wenzi1.style.display='none'">
</span>
<span class=keshi style="display:none" id='tupian1'> <!--插入图片可视化-->
<input type='file' id='file1' style='width:400'><br>
<center><select id='duibi'><option selected>默认对比度<script>document.write(temp101)</script></select><select id='secai'><option selected>默认色彩度<script>temp1="";for(i=0;i<9.9;i+=0.1){temp1+="<option>"+new Number(i).toFixed(1)}document.write(temp1)</script><option>10</select><select id=liangdu><option>默认亮度<script>temp1="";for(i=-0.5;i<0.6;i+=0.1){temp1+="<option>"+new Number(i).toFixed(1)};document.write(temp1)</script></select><select id=mohudu><option selected>默认模糊度<script>document.write(temp101)</script></select><br><input type='checkbox' onclick="duibi.disabled=this.checked;secai.disabled=this.checked;liangdu.disabled=this.checked;" id=heibai><label for='heibai'>黑白效果</label> <input type='checkbox' id=bolang><label for='bolang'>波浪效果</label> <input type='checkbox' id=xguangzhao><label for='xguangzhao'>X光照效果</label> <input type='checkbox' id=fancai><label for='fancai'>反彩效果</label><br>
<input type='button' value='插入' class="bon3" onclick="charutupian()"><input type='button' value='取消' class="bon3" onclick="tupian1.style.display='none'">
</span>
<span class=keshi style="display:none" id='beijingtupian1'> <!--填充背景图片可视化-->
请输入背景图像的来源HTTP地址,或浏览使用本机的图片<br>
<input type='file' id='file2' style='width:400'><br>
<input type='button' value='插入' class="bon3" onclick="charubeijingtupian()"><input type='button' value='取消' class="bon3" onclick="beijingtupian1.style.display='none'">
</span>
<span class=keshi style="display:none;text-align:left" id='gaoji1'> <!--改源码改可视化-->
<select id="shubiaozhuangtai"><option value="">默认形状<option value=hand>点击状态<option value=crosshair>十字状态<option value=move>拖动状态<option value=help>帮助状态<option value=wait>漏斗状态<option value=text>输入状态<option value=n-resize>n-resize<option value=e-resize>e-resize<option value=s-resize>s-resize<option value=w-resize>w-resize<option value=ne-resize>ne-resize<option value=nw-resize>nw-resize<option value=se-resize>se-resize<option value=sw-resize>sw-resize</select>(鼠标状态修改),TagName=<font color="red"><B id=tagnametext></b></font><br>
<textarea rows=2 style='border:1 solid black;width:340;height:30' id="tishibiaoti"></textarea>(提示标题)<br>
<textarea id='txt2' style='width:400;height:150'></textarea><br>
<center><input type='button' value='修改' class="bon3" onclick="gaojiobj.outerHTML=txt2.value.replace(/ onmouse/g,' temp_onmouse').replace(/ onkey/g,' temp_onkey').replace(/ (onclick|ondblclick)/g,' temp_$1');var tempobjs1=document.all[gaojiobjdex];tempobjs1.style.cursor=shubiaozhuangtai.value;tempobjs1.title=tishibiaoti.value;gaojiobj=null;gaoji1.style.display='none'"><input type=button class=bon3 value=取消 onclick='gaoji1.style.display="none"'> <b>共<font id=zishu2 color=red>0</font>字</b>
</span>
<span class=keshi style="display:none;text-align:left" id='shijian1'> <!--可视化的事件编程-->
编程辅助键入工具:<input type=button class=bon3 value=文件路径 onclick="thefile1.click();if(document.all.thefile1.value!='')shijiantxt.value+='file:///'+document.all.thefile1.value.replace(/\\/g,'/')" style='width:70'><input type='file' id='thefile1' style='display:none'> <input style='border:1 solid black;width:54;height:20;' value='颜色代码' id=yansedaima onmousedown='rndcolor(this.id)'><br>
<textarea id='shijiantxt' style='width:300;height:100'></textarea><br>
简易程序:<select id='jianyichengxu' style='width:170'>
<Optgroup label='网页控制类-通用' style='color:red'><Option value="document.bgColor='#FF0000'">网页背景色改变<Option value="document.body.background='图像路径'">网页背景图改变<option value="document.title='新的网页标题'">网页标题改变<option value="window.status='状态栏文字'">状态栏文字改变<Option value="bgsound1.src='音乐文件地址'">播放音乐文件<option value="window.open('http://www.lshdic.com')">弹出网页窗口<option value="location.href='http://www.lshdic.com'">转到目标网页<option value="location.href='mailto:[email protected]'">发送电子邮件<option value="alert('消息内容')">消息对话框<option value="confirm('两种选择')">选择对话框<option value="prompt('请输入密码')">输入对话框<option value="document.body.style.behavior='url(#default#homepage)';document.body.setHomePage(location.href)">设为首页功能<option value="external.AddFavorite(location.href,document.title)">加入收藏夹功能<option value="location.href='view-source:'+location.href">查看源文件功能<option value="opener=null;window.close()">关闭窗口</Optgroup>
<Optgroup label='外观控制类-基本通用' style='color:green'><Option selected=true value="strokeweight='5'">边框粗度改变<Option value="strokecolor='#FF0000'">边框颜色改变<Option value="stroked='false'">隐藏边框<Option value="stroked='true'">显示边框<Option value="fillcolor='#FF0000'">背景颜色改变<Option value="filled='f'">背景空心<Option value="filled='t'">取消背景空心<Option value="Rotation='80'">旋转角度设定<Option value="shadow.color='black';%%%.shadow.offset='3pt,3pt';%%%.shadow.on='t'">增加阴影效果<Option value="shadow.on='f'">取消阴影效果<Option value="extrusion.on='t';%%%.extrusion.foredepth='0';%%%.extrusion.backdepth='20pt';%%%.extrusion.color='#FFFFFF';%%%.extrusion.rotationangle='0,0'">增加立体效果<Option value="extrusion.on='f'">取消立体效果<Option value="fill.color='blue';%%%.fill.type='gradient'">背景渐变颜色填充1<Option value="fill.color='blue';%%%.fill.type='gradientradial'">背景渐变颜色填充2</Optgroup>
<Optgroup label='Css外观控制类-通用' style='color:blue'><Option value="style.display='none'">隐藏<Option value="style.display=''">取消隐藏<Option value="style.left='300'">定位左右位置<Option value="style.top='300'">定位上下位置<Option value="style.zIndex='4'">定位三维高度<Option value="style.width='300'">宽度设定<Option value="style.height='300'">高度设定<Option value="style.filter='alpha(opacity=50,style=0)'">透明度设定<option value="style.filter='fliph'">左右反转<Option value="style.filter='flipv'">上下反转<Option value="style.clip='rect(0 '+%%%.offsetWidth+' '+%%%.offsetHeight+' 0)';clipoldobj=null">恢复流线裁剪效果</Optgroup>
<Optgroup label='流线动画程序-逐渐类' style='color:purple'>
<Option value="style.left=parseInt(%%%.style.left)-2">逐渐向左移动<Option value="style.left=parseInt(%%%.style.left)+2">逐渐向右移动<Option value="style.top=parseInt(%%%.style.top)-2">逐渐向上移动<Option value="style.top=parseInt(%%%.style.top)+2">逐渐向下移动<Option value="style.width=parseInt(%%%.style.width)+2">逐渐宽度增加<Option value="style.width=parseInt(%%%.style.width)-2">逐渐宽度减少<Option value="style.height=parseInt(%%%.style.height)+2">逐渐高度增加<Option value="style.height=parseInt(%%%.style.height)-2">逐渐高度减少<Option value="Rotation+=2">逐渐向右旋转<Option value="Rotation-=2">逐渐向左旋转<Option value="strokeweight+=1">逐渐边框粗度增加<Option value="strokeweight-=1">逐渐边框粗度减少</Optgroup>
<Optgroup label='流线动画程序-重复类' style='color:purple'>
<Option value="style.display=='none'?%%%.style.display='':%%%.style.display='none'">重复隐藏/显示图型<Option value="stroked==false?%%%.stroked=true:%%%.stroked=false">重复隐藏/显示边框<Option value="style.zIndex==50000?%%%.style.zIndex=-10000:%%%.style.zIndex=50000">重复覆盖/被物件覆盖<Option value="strokecolor=='red'?%%%.strokecolor='blue':%%%.strokecolor='red'">重复边框颜色交替<Option value="fillcolor=='red'?%%%.fillcolor='blue':%%%.fillcolor='red'">重复背景颜色交替</Optgroup>
<Optgroup label='流线动画程序-随机类' style='color:purple'>
<Option value="strokecolor='rgb('+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+')'">边框颜色随机变化<Option value="fillcolor='rgb('+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+')'">背景颜色随机变化<Option value="style.left=Math.round(Math.random()*document.body.offsetWidth-100);%%%.style.top=Math.round(Math.random()*document.body.offsetHeight-100)">图型位置随机移动<Option value="style.width=Math.round(Math.random()*300);%%%.style.height=Math.round(Math.random()*300)">图型大小随机改变<Option value="Rotation=Math.round(Math.random()*360)">图型随机旋转</Optgroup>
<Optgroup label='流线动画程序-滤镜类' style='color:purple'>
<Option value="style.filter='alpha(opacity=100,style=0)';%%%.filters[0].opacity-=2">透明度逐渐减少<Option value="style.filter='alpha(opacity=30,style=0)';%%%.filters[0].opacity+=2">透明度逐渐增加
<Option value="style.filter='wave(add=0,freq=4,lightstrength=5,phase=5,strength=0)';%%%.filters[0].strength+=1">波浪效果增强<Option value="style.filter='wave(add=0,freq=4,lightstrength=5,phase=5,strength=80)';%%%.filters[0].strength-=1">波浪效果减弱<Option value="style.filter='blur(add=0,direction=100,strength=0)';%%%.filters[0].strength+=1">模糊效果增强<Option value="style.filter='blur(add=0,direction=100,strength=60)';%%%.filters[0].strength-=1">模糊效果减弱<Option value="style.filter='glow(color=#e8e965,strength=0)';%%%.filters[0].strength+=1">光辉效果增强<Option value="style.filter='glow(color=#e8e965,strength=60)';%%%.filters[0].strength-=1">光辉效果减弱
<Optgroup label='流线动画程序-特技类' style='color:purple'>
<Option value="fill.color='blue';%%%.fill.type='gradient';%%%.fill.angle-=2">背景右向渐变特技<Option value="fill.color='blue';%%%.fill.type='gradient';%%%.fill.angle+=2">背景左向渐变特技<Option value="dizhen=true;dizhen(%%%,10)">图型地震(单线程)<Option value="dizhen=true;dizhen(window,20)">窗口地震(单线程)<Option value="caijian1=true;clipcool(%%%,1,false,true,false,false)">右裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,false,false,false,true)">左裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,true,false,false,false)">上裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,false,false,true,false)">下裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,false,true,false,true)">左右裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,true,false,true,false)">上下裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,true,false,false,true)">左上裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,false,false,true,true)">左下裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,true,true,false,false)">右上裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,false,true,true,false)">右下裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,true,true,false,true)">左右上裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,false,true,true,true)">左右下裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,true,true,true,true)">四边裁剪(单线程)
</Optgroup>
</select><input type=button class=bon3 value=增加该效果 onclick='var tempops=jianyichengxu.options[jianyichengxu.selectedIndex];if(tempops.parentElement.style.color=="red"){shijiantxt.focus();document.selection.createRange().text=(tempops.value+";");}else{shijiantxt.focus();document.selection.createRange().text=(objorthis+"."+tempops.value.replace(/%%%/g,objorthis)+";");}' style='width:75'>
<br>可用属性:<select id='shijianallobj1' style='width:170'></select><input type=button class=bon3 value=更改该属性 onclick='shijiantxt.focus();document.selection.createRange().text=(objorthis+"."+shijianallobj1.options[shijianallobj1.selectedIndex].text+"='';")' style='width:75'>
<br><select id='shijianallobj2'></select><input type=button class=bon3 value=更改该属性 onclick='shijiantxt.focus();document.selection.createRange().text=(objorthis+"."+shijianallobj2.options[shijianallobj2.selectedIndex].text+"='';")' style='width:75'>
<br>
<center><input type='button' value='修改' class="bon3" onclick="shijianfun();shijianobj=null;shijiantxt.value='';"><input type=button class=bon3 value=取消 onclick='shijiantxt.value="";shijian1.style.display="none"'>
</span>
<span class=keshi style="display:none;left:expression(document.body.offsetWidth/2-(this.offsetWidth/2));top:expression(document.body.offsetHeight/2-(this.offsetHeight/2));z-index:30000;display:none" id='yuandaima'> <!--所有原代码-->
<textarea id='txt3' style='width:550;height:270'></textarea><br>
<textarea readonly='true' id='txt3_top' style='width:550;height:130;color:gray'></textarea><br>
<center><b>共<font id=zishu1 color=red>0</font>字,主要代码<font id=zishu1 color=red>0</font>字,头部附加<font id=zishu1 color=red>0</font>字</b>
<input type='button' value='复制全部' class="bon3" onclick="window.clipboardData.setData('text',txt3_top.value+txt3.value+'</BODY>\n</HTML>');alert('已将数据复制到系统剪切板')" style=width:60> <input style=width:60 type='button' value='更新修改' class="bon3" onclick="div1.innerHTML=txt3.value.replace(/ onmouse/g,' temp_onmouse').replace(/ onkey/g,' temp_onkey').replace(/ (onclick|ondblclick)/g,' temp_$1');yuandaima.style.display='none'"> <input style=width:60 type='button' value='取消' class="bon3" onclick="yuandaima.style.display='none'"> </span>
<span class=keshi style="display:none;text-align:left" id='jiaoben'> <!--我的脚本仓库-->
<script id="myscript" language="javascript"><br>
<textarea id='jiaobentxt' style='width:350;height:250'></textarea><br>
function window.onload(){<br>
<textarea id='jiaoben_load' style='width:350;height:100'></textarea><br>
}</script><br>
<input type='button' value='修改' class="bon3" onclick="wodejiaoben=jiaobentxt.value;onloadjiaobenstr=jiaoben_load.value;jiaoben.style.display='none'"> <input type='button' value='取消' class="bon3" onclick="jiaoben.style.display='none'">
</span>
<span style='position:absolute;z-index:40000;display:none' id='menu1'> <!--弹出菜单1-->
<input type=button class=bon3 value=置前 onclick='zz+=1;thisobj.style.zIndex=zz;menu1.style.display="none"'><br>
<input type=button class=bon3 value=置后 onclick='zz2-=1;thisobj.style.zIndex=zz2;menu1.style.display="none"'><br>
<input type=button class=bon3 value=复制 onclick='div1.innerHTML+=thisobj.outerHTML;if(div1.lastChild.id!=""){nextid++;div1.lastChild.id=open_var+nextid};if(fuzhitixing==false){alert("复制完成,请使用选移功能拖动");fuzhitixing=true};menu1.style.display="none";for(i=0;i<huabi.length;i++)if(huabi[i].className!="bon2")huabi[i].className="bon2";huabi[19].className="bon1";div1.style.cursor="hand"' id=fuzhi><br>
<input type=button class=bon3 value=删除 onclick='thisobj.outerHTML="";menu1.style.display="none"' id=shanchu style='border-bottom:3 solid maroon'><br>
<input type=button class=bon3 value=裁剪 onclick='if(thisobj.style.clip!=""){if(confirm("这将取消目标现有的裁剪效果然后才可裁剪,你确定么?"))thisobj.style.clip="rect(0 "+thisobj.offsetWidth+" "+thisobj.offsetHeight+" 0)";else return false}caijian.style.left=thisobj.offsetLeft-caijianjuli;caijian.style.top=thisobj.offsetTop-caijianjuli;caijian.style.width=thisobj.offsetWidth+(caijianjuli*2);caijian.style.height=thisobj.offsetHeight+(caijianjuli*2);caijian.style.display="";menu1.style.display="none"' onmousemove='showhelp("裁剪目标图型的上、右、下、左边缘")'><br>
<input type=button class=bon3 value=放大 onclick='fangda(thisobj);menu1.style.display="none"' onmousemove='showhelp("放大单个图型对象,对线条类图型无效")'><br>
<input type=button class=bon3 value=缩小 onclick='suoxiao(thisobj);menu1.style.display="none"' onmousemove='showhelp("缩小单个图型对象,对线条类图型无效")' style='border-bottom:3 solid maroon'><br>
<input type=button class=bon3 value=取消 onclick='menu1.style.display="none"' style='color:black;font-weight:bold'>
</span>
<span style='position:absolute;z-index:40000;display:none' id='menu2'> <!--弹出菜单2-->
<input type=button class=bon3 value=网格 onclick='wangge();menu2.style.display="none"'><br>
<input type=button class=bon3 value=取消 onclick='menu2.style.display="none"' style='color:black;font-weight:bold'>
</span>
<TABLE cellspacing=0 cellpadding=0 align=center style='position:absolute;left:3;top:20;z-index:2999' onmousedown='if(event.srcElement.tagName=="CENTER"&&event.button==1){moveok=1;setCapture();xx=event.x-this.offsetLeft;yy=event.y-this.offsetTop;}' onmousemove="if(moveok==1){this.style.left=event.x-xx;this.style.top=event.y-yy;}" onmouseup='moveok=0;releaseCapture();if(parseInt(this.style.top)<-10){alert("工具栏高度不能低于页面最顶部");this.style.top=20}if(event.srcElement.tagName=="CENTER"&&event.button==2){this.style.zIndex==2999?this.style.zIndex=6000:this.style.zIndex=2999;}' id=gongjulan3>
<tr><Td style='padding:3;'><center id=cen>编程工具(4) <input type=button class=bon2 value=× style='width:20;height:15' onmousemove='showhelp("关闭不是必要的[编程\\动画]创作工具栏,进行FYWVml3.0时代基本的静态图像绘制作业")' onclick="gongjulan3.style.display='none';xianshigongju.style.display=''"></td></tr>
<Tr><td><input type=button class=bon3 value=下载LD2005 style='width:105' onmousemove='showhelp("下载由FYW原创的编程利器《网络程序员伴侣(Lshdic)2005》软件<br>在本地专业的配合flashvml2.0开发复杂的游戏、动画程序")' onclick="window.open('http://www.google.com/search?hl=zh-CN&q=%E7%BD%91%E7%BB%9C%E7%A8%8B%E5%BA%8F%E5%91%98%E4%BC%B4%E4%BE%A3%28Lshdic%292005&btnG=Google%E6%90%9C%E7%B4%A2&lr=')"></td></tr>
<Tr><td><input type=button class=bon3 value=我的脚本仓库 style='width:105' onmousemove='showhelp("在这个[我的Script脚本仓库]里,你可以自行编写编程所需的函数、变量<br>以便于此后进行事件编程、动画创作时动态调用")' onclick="jiaoben.style.left=event.x+100;jiaoben.style.top=event.y;jiaobentxt.value=wodejiaoben;jiaoben_load.value=onloadjiaobenstr;jiaoben.style.display==''?jiaoben.style.display='none':jiaoben.style.display=''"></td></tr>
<Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("查看及修改指定图型用以编程的ID属性")'>定义ID标识</td></tr>
<Tr><td><label for='yesaddnextid' onmousemove='showhelp("当复选框打勾时,每绘制一个新图型回自动为该图型增加一个随机ID方便编写程序")' value='绘图时自动添加'>绘图时自动添加</label><input type='checkbox' checked id='yesaddnextid' onmousemove='showhelp("当复选框打勾时,每绘制一个新图型会自动为该图型增加一个随机ID方便编写程序")' value='绘图时自动添加'></td></tr>
<Tr><td><label for='pingbicuowu' onmousemove='showhelp("当复选框打勾时,会防止你的事件、动画程序在运行出错时弹出错误提示")' value='运行时屏蔽错误'>运行时屏蔽错误</label><input type='checkbox' checked id='pingbicuowu' onmousemove='showhelp("当复选框打勾时,会防止你的事件、动画程序在运行出错时弹出错误提示")' value='运行时屏蔽错误'></td></tr>
<tr><Td style='padding:3;'><center id=cen>事件编程(5)</td></tr>
<Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("onclick")'>左键单击时</td></tr>
<Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("ondblclick")'>双击左键时</td></tr>
<Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("onmousedown")'>鼠标按下时</td></tr>
<Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("onmouseup")'>鼠标弹起时</td></tr>
<Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("onmouseover")'>鼠标靠近时</td></tr>
<Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("onmouseout")'>鼠标离开时</td></tr>
<Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("onmousemove")'>鼠标移动时</td></tr>
<tr><Td style='padding:3;'><center id=cen>动画创作(6)</td></tr>
<Tr><td><select id=allid onmouseover='getallid()' onchange='objorthis=this.options[this.selectedIndex].text;biaoshifun(objorthis);' onmouseup="if(event.button==2&&this.options.length!=1){if(confirm('你想把画板内图型的所有ID标识清除?')){for(i=this.options.length;i>1;i--){document.all(this.options[i-1].text).id='';this.remove(i);}}}" style='width:105' size=5><option selected>可用的对象ID</select></td></tr>
<Tr><td><select id='miaozhong' style='width:105' onchange='fenzhong.selectedIndex=0'><option>秒钟动作<script>tempstr1="";for(i=1;i<600;i++){if(i%60!=0)tempstr1+=("<option>"+i);}document.write(tempstr1)</script></select></td></tr>
<Tr><td><select id='fenzhong' style='width:105' onchange='miaozhong.selectedIndex=0'><option>分钟动作<script>tempstr1="";for(i=1;i<201;i++){tempstr1+=("<option>"+i);}document.write(tempstr1)</script></select></td></tr>
<Tr><td align='center'><label for='xunhuan1'>结束时循环播放</label><input type='checkbox' checked id='xunhuan1'></td></tr>
<Tr><td><input type=button class=bon3 value=编辑动画程序 onmousemove='showhelp("编写侦式动画程序")' onclick="if(miaozhong.selectedIndex==0&&fenzhong.selectedIndex==0){alert('编辑动画程序前,必须指定一个[秒钟]或[分钟]');return false}if(allid.selectedIndex==0){alert('编辑动画程序前,必须指定一个[可用的对象ID],可以使用[定义ID标识]功能定义');return false};whodonghua=true;donghuachengxu(allid.options[allid.selectedIndex].text)" style='width:105'></td></tr>
<tr><Td style='padding:3;'><center id=cen>流线动画创作(7)</td></tr>
<Tr><td><select id='dianchi1' style='width:105' onchange='dianchi=this.selectedIndex;shijian1.style.display="none";dianchitime1[dianchi]==null?qishimiao.value="":qishimiao.value=dianchitime1[dianchi];dianchitime2[dianchi]==null?haomiaobuchang.value="":haomiaobuchang.value=dianchitime2[dianchi];dianchitime3[dianchi]==null?jieshumiaozhong.value="":jieshumiaozhong.value=dianchitime3[dianchi];'><script>tempstr1="";for(i=1;i<100;i++){tempstr1+=("<option value="+i+">动画蓄电池"+i);}document.write(tempstr1)</script></select></td></tr>
<tr><Td>起始秒钟<input style='border:1 solid black;width:54;height:17;' value='1' id=qishimiao onmousemove='showhelp("支持小数点数字,最小值0.1")'></td></tr>
<tr><Td>毫秒步长<input style='border:1 solid black;width:54;height:17;' value='20' id=haomiaobuchang onmousemove='showhelp("最小值建议为10毫秒速度最快")'></td></tr>
<tr><Td>结束秒钟<input style='border:1 solid black;width:54;height:17;' value='5' id=jieshumiaozhong onmousemove='showhelp("支持小数点数字,最小值0.3")'></td></tr>
<Tr><td><input type=button class=bon3 value=编辑动画程序 onmousemove='showhelp("编辑存储于["+dianchi1.options[dianchi1.selectedIndex].text+"]的流线动画程序")' onclick="if(allid.selectedIndex==0){alert('编辑动画程序前,必须指定一个[可用的对象ID],可以使用[定义ID标识]功能定义');return false};str1=qishimiao.value;str2=haomiaobuchang.value;str3=jieshumiaozhong.value;if(str1==''||str2==''||str3==''){alert('起始秒种、毫秒步长、结束秒钟,这些数据必须填写');return false};if(isNaN(str1)||isNaN(str2)||isNaN(str3)){alert('起始秒种、毫秒步长、结束秒钟,这些数据格式必须是数字');return false};if(str1<0.1||str2<1||str3<0.3){alert('起始秒种、毫秒步长、结束秒钟,这些数据不能存在负数,并不能小于其最小限度值');return false};if(parseInt(str1)>parseInt(str3)){alert('起始与结束的概念,被你弄返了');return false};if(str2/1000>=str3-str1){alert('毫秒步长不能大于[结束秒种-起始秒钟]的值');return false};whodonghua=false;donghuachengxu(allid.options[allid.selectedIndex].text)" style='width:105'></td></tr>
</td></tr></table>
<TABLE cellspacing=0 cellpadding=0 align=center style='position:absolute;left:expression(document.body.offsetWidth/2-(this.offsetWidth/2));top:1;z-index:3000' onmousedown='if(event.srcElement.tagName=="CENTER"&&event.button==1){moveok=1;setCapture();xx=event.x-this.offsetLeft;yy=event.y-this.offsetTop;}' onmousemove="if(moveok==1){this.style.left=event.x-xx;this.style.top=event.y-yy;}" onmouseup='moveok=0;releaseCapture();if(parseInt(this.style.top)<-10){alert("工具栏高度不能低于页面最顶部");this.style.top=1}if(event.srcElement.tagName=="CENTER"&&event.button==2){this.style.zIndex==3000?this.style.zIndex=6000:this.style.zIndex=3000;}'>
<tr><Td style='padding:3;border-right:1 solid gray;'><center id=cen>画笔选择(1) <font onclick="alert('如何下载FlashVml(FVML)2.0:\n\n如何下载fvml2在本地直接使用?\n你只需将本页另存(文件名.htm)至你的本地硬盘即可(只是不包括帮助手册)\n如需要下载完整的fvml2(包括帮助手册),请登陆Google搜索FlashVml2.0\n\nFlashVml(FVML)2.0核心程序简介:\n\n源码构成:Js+Dhtml+(HTML+Css+Vml)、一页源码、另存即用\n\nFlashVml(FVML)2.0简介:\n\n授权使用:共享/免费/源码未加密+带注释+完全公开\n多重功能:Vml可视化设计/学习工具、在线绘图、Vml-Flash动画创作、VML-3D网页开发工具\n多重代言:WEB上的PhotoShop+Flash、让VML此刻未来身价百倍、WEB页的魔法师/革命家/VML闪客\n IE可视化开发工具的里程碑、最强Vml开发工具、震撼WEB的定时炸弹\n\nFlashVml(FVML)2.0疑问:\n\nPS:如何保存画板内所绘图像为图像文件(jpg/gif)?\nRE:用截图软件\nPS:是否能将作品源码上传?\nRE:未有固定服务器,不提供该服务,但FVML很容易与后台程序结合\nPS:制做VML动画是不是要会HTML/CSS/VML/JS/DHTML编程?\nRE:一点不会只能用fvml提供的动画效果,编程水准是左右创作VML高级动画效果关键\nPS:我已经将源码保存为文件了,怎样在次打开编辑?\nRE:我的程序操纵你的电脑文件你放心么?可活用[查看及修改源码]替代打开文件功能\nPS:画布有必要弄那么大么?还要上、下滚动条?\nRE:你如果用fvml设计的是一个800*600或更高的3D网页,小了能行么?\nPS:我看fvml的界面不喜欢很难看,那么多的按钮眼都花了不知什么用\nRE:十人添袖有八味。不下工夫怎想就VML之有成?fvml按钮、逻辑、提示为你想的很多了。\nPS:fvml只能在线互联网上用?\nRE:当然不是,你完全可以将fvml做为应用软件般在你的电脑当作桌面常用软件使用')" class=zhongyao onmouseover='this.style.color="blue"' onmouseout='this.style.color="red"'>下载FlashVml2.0</font> <font onclick="gongjulan3.style.display='';this.style.display='none';" class=zhongyao style="display:none;" id=xianshigongju onmouseover='this.style.color="blue"' onmouseout='this.style.color="red"' onmousemove='showhelp("当您已熟悉flashvml2.0的静态绘图功能时<br>可以进一步领略flashvml2.0对程序、动画的设计功能")' value='显示编程\动画工具栏'>显示编程\动画工具栏</font></td><td style='padding:3;border-left:1 solid white;'><center id=cen>图型编辑(3) <font onclick="window.open('flashvml/helpflash.htm');" class=zhongyao onmouseover='this.style.color="blue"' onmouseout='this.style.color="red"' onmousemove='showhelp("播放flashvml2.0的功能演示影片")' value='入门动画教程'>入门动画教程</font> <font class=zhongyao onclick="window.open('flashvml/helptool.htm');" onmousemove='showhelp("入门必看,flashvml2.0图解教程")' onmouseover='this.style.color="blue"' onmouseout='this.style.color="red"' value='入门图解教程'>入门图解教程</font> <font id=fywvmlhelp class=zhongyao onclick="window.open('flashvml/index.htm');" onmousemove='showhelp("打开FlashVml的帮助文件,帮助文件有详细的教程、演示范例、FlashVml版本及原理信息")' onmouseover='this.style.color="blue"' onmouseout='this.style.color="red"' value='详细帮助手册'>详细帮助手册</font></td></tr>
<Tr>
<td style='border-right:1 solid gray'><button class=bon2 id=huabi onmousemove='showhelp("按住左键写字、划画")'>铅笔<button class=bon1 id=huabi onmousemove='showhelp("按住左键移动光标")'>直线<button class=bon2 id=huabi onmousemove='showhelp("按住左键移动光标")'>圆型<button class=bon2 id=huabi onmousemove='showhelp("按住左键移动光标")'>长方型<button class=bon2 id=huabi onmousemove='showhelp("以连续点击、移动左键的规律决定每条线的路径,所绘图型由N条线段组成")'>记忆线<button class=bon2 id=huabi onmousemove='showhelp("以连续点击、移动左键的规律决定每条线的路径,所绘图型为一个整体")'>记忆线2</button><br>
<button class=bon2 id=huabi onmousemove='showhelp("按住左键移动光标")'>圆矩型<button class=bon2 id=huabi onmousemove='showhelp("按住左键移动光标即")'>弧型<button class=bon2 id=huabi onmousemove='showhelp("(贝塞尔斯曲线):以连续点击、移动左键的规律决定曲线长度、角度1、角度2")'>贝塞曲<button class=bon2 id=huabi onmousemove='showhelp("单击左键在目标位置插入")'>文字<button class=bon2 id=huabi onmousemove='showhelp("单击左键在目标位置插入")'>图片</button>
</td>
<td style='border-left:1 solid white;'><button class=bon2 id=huabi onmousemove='showhelp("按住左键拖动目标图型")'>选移<button class=bon2 id=huabi onmousemove='showhelp("按住左键拖动目标图型")'>调大小<button class=bon2 id=huabi onmousemove='showhelp("左键点击目标图型")'>放大<button class=bon2 id=huabi onmousemove='showhelp("左键点击目标图型")'>缩小<button class=bon2 id=huabi onmousemove='showhelp("左键点击目标图型")'>缩放<button class=bon2 id=huabi onmousemove='showhelp("左键点击目标图型")'>阴影<button class=bon2 id=huabi onmousemove='showhelp("左键点击目标图型")'>边框</button><br><button class=bon2 id=huabi onmousemove='showhelp("左键点击目标图型,支持背景色填充、背景图片、完全空心化")'>填充<button class=bon2 id=huabi onmousemove='showhelp("左键点击目标图型")'>立体<button class=bon2 id=huabi onmousemove='showhelp("左键点击目标图型")'>透明度<button class=bon2 id=huabi onmousemove='showhelp("左键点击目标图型,以文字充当目标图型边框")'>文字化<button class=bon2 id=huabi onmousemove='showhelp("左键左右移动旋转目标图型,Rotation旋转在运行时必须由脚本控制")'>旋转<button class=bon2 id=huabi onmousemove='showhelp("左键点击目标图型(该图型在设计时可见,运行时不可见),该功能用于配合动画初期布局设计")'>隐藏<button class=bon2 id=huabi onmousemove='showhelp("左键点击目标图型,修改与学习目标图形相关的VML源码")'>改源码</button>
</td></tr></table>
<TABLE cellspacing=0 cellpadding=1 align=center style='position:absolute;left:expression(document.body.offsetWidth-this.offsetWidth-20);top:1;z-index:2999' onmousedown='if(event.srcElement.tagName=="CENTER"&&event.button==1){moveok=1;setCapture();xx=event.x-this.offsetLeft;yy=event.y-this.offsetTop;}' onmousemove="if(moveok==1){this.style.left=event.x-xx;this.style.top=event.y-yy;}" onmouseup='moveok=0;releaseCapture();if(parseInt(this.style.top)<-10){alert("工具栏高度不能低于页面最顶部");this.style.top=1}if(event.srcElement.tagName=="CENTER"&&event.button==2){this.style.zIndex==2999?this.style.zIndex=6000:this.style.zIndex=2999;}'>
<tr><Td><center id=cen>画笔设置(2)</td></tr><Tr><Td>
笔边粗度 <select style="width:54;" id=bibiancudu><option selected>1px<script>temp1="";for(i=2;i<101;i++){temp1+="<option>"+i+"px"}document.write(temp1)</script></select><br>
画笔颜色 <input style='border:1 solid black;width:54;height:17;' value='#000000' id=huabiyanse onmousedown='rndcolor(this.id)'><br>
画笔背景 <input style='border:1 solid black;width:54;height:17;' value='#FFFFFF' id=huabibeijing onmousedown='rndcolor(this.id)'><br>
<input readonly='true' type='text' value='0,0' id='zuobiao' style='text-Align:center;border:1 solid black;width:108;height:17;color:red;font-size:11px'>
<span id=huxing1 style='display:none'>
<p><center style='width:100%;height:100%;cursor:move'>弧型画笔选择</center><br>
创建基础弧型 <input type='radio' name='huxing2' checked><br>
修改弧缺起点 <input type='radio' name='huxing2'><br>
修改弧缺终点 <input type='radio' name='huxing2'><br>
</span>
<span id=tianchong1 style='display:none'>
<br><center style='width:100%;height:100%;cursor:move'>填充基本参数</center><br>
背景明亮 <select style="width:54;" id=beijingliangdu><script>temp1="";for(i=0.1;i<1;i+=0.1){temp1+="<option>"+i.toFixed(1)};document.write(temp1);beijingliangdu.options[4].selected=true</script></select><br>
<font id="xiaolei">使用普通背景</font><input type='radio' name='whattianchong' checked><br>
普通背景 <input style='border:1 solid black;width:54;height:17;' value='#0000FF' id=tianchongbeijing onmousedown='rndcolor(this.id)'><br>
<font id="xiaolei">使用渐变背景</font><input type=radio name=whattianchong><br>
上下渐变 <input type=radio name='jianbianyangshi' checked><br>
斜向渐变 <input type=radio name='jianbianyangshi'><br>
渐变色一 <input style='border:1 solid black;width:55;height:17;' value='#FFFFFF' id=jianbianse1 onmousedown='rndcolor(this.id)'><br>
渐变色二 <input style='border:1 solid black;width:55;height:17;color:red' value='#FF0000' id=jianbianse2 onmousedown='rndcolor(this.id)'>
<br><font id="xiaolei">添加背景图片</font><input type=radio name=whattianchong><br>
融合普通背景 <input type=checkbox id=ronghebeijing checked><br>
<font id="xiaolei">完全空心化</font> <input type='radio' name=whattianchong><br>
</span>
<span id=liti1 style='display:none'>
<br><center style='width:100%;height:100%;cursor:move'>立体基本参数</center><br>
后向伸展 <select style="width:54;" id=houxiangshenzhan><option selected>20<script>temp1="";for(i=0;i<101;i++){temp1+="<option>"+i}document.write(temp1)</script></select><br>
前向伸展 <select style="width:54;" id=qianxiangshenzhan><option selected>0<script>document.write(temp101)</script></select><br>
偏移左边 <select style="width:54;" id=pianyizuobian><option selected>0<script>temp1="";for(i=-100;i<0;i+=1){temp1+="<option>"+i};document.write(temp1);document.write(temp101)</script></select><br>
偏移上边 <select style="width:54;" id=pianyishangbian><option selected>0<script>temp1="";for(i=-100;i<0;i+=1){temp1+="<option>"+i};document.write(temp1);document.write(temp101)</script></select><br>
立体颜色 <input style='border:1 solid black;width:54;height:17;' value='' id=litiyanse onmousedown='rndcolor(this.id)'><br>
立体亮度 <select style="width:54;" id=litiliangdu><script>temp1="";for(i=0.1;i<5;i+=0.1){temp1+="<option>"+i.toFixed(1)};document.write(temp1);litiliangdu.options[10].selected=true</script></select><br>
取消立体效果 <input type='checkbox' id=quxiaoliti>
</span>
<span id=biankuang1 style='display:none'>
<br><center style='width:100%;height:100%;cursor:move'>边框基本参数</center><br>
边框粗度 <select style="width:54;" id=biankuangcudu><script>temp1="";for(i=0;i<101;i++){if(i!=1)temp1+="<option>"+i;else temp1+="<option selected>"+i}document.write(temp1)</script></select><br>
边框样式 <select style="width:54;" id=biankuangyangshi><option selected>none<option>dash<option>dashdot<option>dot<option>longdash<option>longdashdot<option>shortdash<option>shortdashdot<option>shortdashdotdot<option>longdashdotdot<option>shortdot</select><br>
起点尖头 <select style="width:54;" id=qidianjiantou><option selected>none<option>block<option>classic<option>diamond<option>open<option>oval</select><br>
终点尖头 <select style="width:54;" id=zhongdianjiantou><option selected>none<option>block<option>classic<option>diamond<option>open<option>oval</select><br>
边框颜色 <input style='border:1 solid black;width:54;height:17;' value='' id=biankuangyanse onmousedown='rndcolor(this.id)'><br>
</span>
<span id=yinying1 style='display:none'>
<br><center style='width:100%;height:100%;cursor:move'>阴影基本参数</center><br>
左右偏移 <select style="width:54;" id=zuoyoupianyi><script>temp1="";for(i=-50;i<51;i++){if(i!=5)temp1+=("<option>"+i);else temp1+=("<option selected>"+i)}document.write(temp1)</script></select><br>
上下偏移 <select style="width:54;" id=shangxiapianyi><script>temp1="";for(i=-50;i<51;i++){if(i!=5)temp1+=("<option>"+i);else temp1+=("<option selected>"+i)}document.write(temp1)</script></select><br>
阴影颜色 <input style='border:1 solid black;width:54;height:17;' id=yinyingyanse onmousedown='rndcolor(this.id)'><br>
</span>
<span id=touming1 style='display:none'>
<br><center style='width:100%;height:100%;cursor:move'>透明度设置</center><br>
图形透明度<input type='radio' name='bantouming' checked><br>
透明系数 <select style="width:54;" id=toumingxishu><script>temp1="";for(i=0;i<101;i++){if(i!=50)temp1+=("<option>"+i);else temp1+=("<option selected>"+i)}document.write(temp1)</script></select><br>
透明样式 <select style="width:54;" id=toumingyangshi><option value=0>淡化所有<option value=1>左右渐淡<option value=2>圆型渐淡<option value=3>矩型渐淡</select><br>
取消透明处理<input type='radio' name='bantouming'><br>
</span>
<span id=fangdasuoxiao1 style='display:none'>
<br><center style='width:100%;height:100%;cursor:move'>放大与缩小</center><br>
针对宽高 <input type='radio' name='kuanyugao' checked><br>
仅针对宽 <input type='radio' name='kuanyugao'><br>
仅针对高 <input type='radio' name='kuanyugao'><br>
按照规则 <select style="width:54;" id=anzhaoguize><option style='background-color:dddddd'>按照像素<option value='2'>2分之1<script>temp1="";for(i=3;i<11;i++){temp1+=("<option value='"+i+"'>"+i+"分之1");}document.write(temp1)</script></select><br>
按照像素 <select style="width:54;" id=anzhaoxiangsu><script>temp1="";for(i=5;i<105;i+=5){if(i!=20)temp1+=("<option>"+i);else temp1+=("<option selected>"+i)}document.write(temp1)</script></select><br>
</span>
<span id=suofang1 style='display:none'>
<br><center style='width:100%;height:100%;cursor:move'>缩放参数设置</center><br>
比例差 <select style="width:67;" id=suofangbili><option>取消缩放<script>temp1="";for(i=0.1;i<9.9;i+=0.1){temp1+=("<option value='"+i+"'>"+i.toFixed(1));}document.write(temp1);suofangbili.options[20].selected=true</script></select><br>
<input type='button' value='缩放说明' onclick='alert("缩放功能说明:\n\n介绍1:缩放功能基于CSS的zoom属性控制目标图型按指定比例缩放大小\n介绍2:因为使用[铅笔/记忆线2/文字]绘制出的图型不能用[调大小/放大/缩小]控制\n介绍3:所以此时应使用缩放功能控制[铅笔/记忆线2/文字]所绘图型的比例\n注意:一旦矢量化缩放了目标图型,目标图型的实际大小与您看到的并不一致\n 实际大小依旧基于CSS的width/height属性\n 因此,在您再想使用诸如[调大小]命令处理该缩放过的图型时 \n 会出现一些误差现象,不在像未缩放前那样自如\n 所以,但凡目标图型能够支持[调大小/放大/缩小]的操作就不要对其用[缩放]\n 不过也没关系,在比例差中选取[取消缩放]即可将缩放过的图型还原\n\n一次性全部图型缩放与取消缩放\n\n如果图型太多,而你又想一次型的全部缩放与取消缩放\n你可以用鼠标直接点击画布(只要鼠标下没有图型元素)即可")' class=bon3 style='width:110'>
</span>
<span id=wenzihua1 style='display:none'>
<br><center style='width:100%;height:100%;cursor:move'>文字化基本设置</center><br>
文字大小 <select style="width:54;" id=wenzidaxiao2><option>50<script>document.write(temp101)</script></select><br>
文字背景 <input style='border:1 solid black;width:54;height:17;' id=wenziyanse2 onmousedown='rndcolor(this.id)' value='#FFFFFF'><br>
文字边框 <input style='border:1 solid black;width:54;height:17;' id=wenziyanse3 onmousedown='rndcolor(this.id)' value='#FF0000'><br>
字体 <select style="width:80;" id=ziti2><script>document.write(zitistr)</script></select><br>
取消文字化 <input type='checkbox' id="quxiaowenzihua"><br>
</span>
<span id=qianbi1 style='display:none'>
<br><center style='width:100%;height:100%;cursor:move'>选择适用铅笔</center><br>
普通绘图型 <input type='radio' name='xuanzeqianbi' checked><br>
旋转编程型 <input type='radio' name='xuanzeqianbi'><br>
<input type='button' value='选择铅笔说明' onclick='alert("普通绘图型铅笔简介(采用shape核心结构,适合多数用户):\n\n优点1:适用于静态绘图,绘图时位置定位良好,没有位移情况\n优点2:生成的原代码字数相对较少\n缺点1:对[旋转]功能支持不好,基本不能正常使用\n特殊1:编程时,对CSS的width/height支持,不过必须搭配coordsize属性\n\n旋转编程型铅笔简介(采用polyline核心结构,适合特殊用户):\n\n优点1:对[旋转]功能支持良好\n缺点1:绘图时,位置定位有误差,必须借助[选移]功能辅助定位\n缺点2:生成的原代码字数相对较多\n缺点3:不支持CSS的width/height属性")' class=bon3 style='width:110'><br>
允许有背景 <input type=checkbox id="qianbibeijing"><br>
</span>
<span id=yincang1 style='display:none'>
<br><center style='width:100%;height:100%;cursor:move'>决定怎么处理图型</center><br>
隐藏目标图型 <input type='radio' name='isyincang' checked><br>
取消目标隐藏 <input type='radio' name='isyincang'><br>
</span>
<span id=jiyixian22 style='display:none'>
<br><center style='width:100%;height:100%;cursor:move'>填补自动化决定</center><br>
终止时填补 <input type=checkbox id='tianbu' checked><br>
<input type='button' value='填补说明' onclick='alert("终止时填补说明:\n\n当使用[记忆线2]绘图时,绘制出了满意形状后,按鼠标右键即终止记忆连接绘图\n此时如果选定了[终止时填补]的话按下鼠标右键,会自动创建一条与起点对齐的线")' class=bon3 style='width:110'>
</span>
<span id=quxian1 style='display:none'>
<br><center style='width:100%;height:100%;cursor:move'>是否需要背景</center><br>
允许有背景 <input type=checkbox id="quxianbeijing"><br>
绘制新曲线 <input type='radio' name='isquxian' checked onclick="isquxian1=0"><br>
调整曲度一 <input type='radio' name='isquxian' onclick="isquxian1=1;if(buzhou!=0){alert('绘制未结束,不能使用');isquxian[0].checked=true;isquxian1=0;}"><br>
调整曲度二 <input type='radio' name='isquxian' onclick="isquxian1=2;if(buzhou!=0){alert('绘制未结束,不能使用');isquxian[0].checked=true;isquxian1=0;}">
</span>
</td></tr>
<tr><Td><center id=cen>全局操作(8)</td></tr><Tr><Td>
<input type='button' value='撤消' onclick='chexiao_get()' class=bon3 id=chexiaock onmousemove='showhelp("快捷键Ctrl+Z")'><input type='button' value='反撤消' onclick='chexiao_get2()' class=bon3 id=fanchexiaock onmousemove='showhelp("快捷键Ctrl+Y")'><br>
<input type='button' value='放大' onclick='if(!caozuook())return false;for(i=0;i<div1.all.length;i++){try{fangda(div1.all[i])}catch(e){}}' class=bon3 id=fangda onmousemove='showhelp("快捷键Shift+↑ or →")'><input type='button' value='缩小' onclick='if(!caozuook())return false;for(i=0;i<div1.all.length;i++){try{suoxiao(div1.all[i])}catch(e){}}' class=bon3 id=suoxiao onmousemove='showhelp("快捷键Shift+↓ or ←")'><br>
<input type='button' value='左移' onclick='if(!caozuook())return false;for(i=0;i<div1.all.length;i++){try{div1.all[i].style.left=parseInt(div1.all[i].style.left)-10;}catch(e){}}' class=bon3 id=zuoyi onmousemove='showhelp("快捷键←")'><input type='button' value='右移' onclick='if(!caozuook())return false;for(i=0;i<div1.all.length;i++){try{div1.all[i].style.left=parseInt(div1.all[i].style.left)+10;}catch(e){}}' class=bon3 id=youyi onmousemove='showhelp("快捷键→")'><br>
<input type='button' value='上移' onclick='if(!caozuook())return false;for(i=0;i<div1.all.length;i++){try{div1.all[i].style.top=parseInt(div1.all[i].style.top)-10;}catch(e){}};' class=bon3 id=shangyi onmousemove='showhelp("快捷键↑")'><input type='button' value='下移' onclick='if(!caozuook())return false;for(i=0;i<div1.all.length;i++){try{div1.all[i].style.top=parseInt(div1.all[i].style.top)+10;}catch(e){}}return false' class=bon3 id='xiayi' onmousemove='showhelp("快捷键↓")'><br>
<input type='button' value='试运行' onclick='yunxingfun()' class=bon3 id=shiyunxing onmousemove='showhelp("快捷键回车键")'><input type='button' value='全部清除' onclick='quanbuqingchu()' class=bon3 id=esc onmousemove='showhelp("快捷键ESC")'>
</td></tr>
<Tr><Td><center id=cen>系统功能(9)</td></tr>
<tr><Td>
<input type='button' value='查看及修改源码' onmousemove='showhelp("把已保存的VML代码粘贴修改实现打开,或者手写修改当前编辑器内的所有VML代码")' class=bon3 style='width:110' onclick="chakandaima()"><br>
<input type='button' value='画板设置' class=bon3 style='width:110;color:black' onclick='yuandaima.style.display="none";temp1=huabutab.width.replace("%","");huaban_daxiao1.options[(temp1/100)-1].selected=true;huaban_yanse1.value=huaban_yanse;huaban_biaoti1.value=huaban_biaoti;huaban_zuidahua1.checked=huaban_zuidahua;huaban_gundongtiao1[huaban_gundongtiao].checked=true;huaban_gundongbase1.value=huaban_gundongbase;huaban_cookies1[huaban_cookies].checked=true;for(i=0;i<huaban_wangge1.options.length;i++){if(huaban_wangge1.options[i].text==huaban_wangge)huaban_wangge1.options[i].selected=true}huaban_wanggese1.value=huaban_wanggese;huabanshezhi.style.display==""?huabanshezhi.style.display="none":huabanshezhi.style.display=""' onmousemove='showhelp("打开画板设置选项卡,设置画板设计、运行时的各项指标")'><br>
<input type='button' value='保存为文件' onmousemove='showhelp("将编辑器图型保存为后缀为htm的文件,注意保存时请使用Unicode保存")' class=bon3 style='width:110' onclick="savefile()"><br>
<input type='button' value='播放作业录像' onmousemove='showhelp("FlashVml特有的录像功能,动态的以你指定的速度播放您整个绘图过程")' class=bon3 style='width:110' onclick="luxiang()"><br>
<center style='width:100%;height:100%;cursor:move'>
<a href='javascript:alert("因它事繁忙,作者网站蓝丽网(http://www.lshdic.com)自2004年8月份后永久关闭,有事请联系作者QQ:21152530,作者其他IT作品请暂时登陆google.com、baidu.com、51js.com进行搜索、下载,欢迎赞助空间、投资合作前途无限的FlashVml、LureCoder、Lshdic等一系列作者IT代表作。");http://www.lshdic.com' onmousemove='showhelp("访问Lshdic200X、FYWVml、FlashVml原作者的主页-蓝丽网")' value='Original author' target='_target' style="font-weight:bold">原作:FYW(风云舞)</a>
</td></tr></table>
<table cellspacing=0 cellpadding=0 style='position:absolute;width:100;height:100;display:none;background-color:red;z-index:60000' id='colortab'><tr><td id='colorid'></td></tr></table>
<script language='jscript'>
var open_var="vml" //定义基于用户的变量名
var bodyscrollleft=0,bodyscrolltop=0 //记录body的滚动条位置,为了加速
var bi=4 //定义当前使用的画笔工具,3为铅笔
var bitext="" //定义当前使用的画笔工具的名称,用以判断
var color1='#000000',color2='#000000',size1="" //定义缺剩的画笔颜色及画笔填充颜色和笔边粗度
var xx=0,yy=0,zz=3000 //定义缺剩的X及Y坐标
var moveobj=null,ckleft=0,cktop=0,ckwid=0,ckhei=0,ckto="" //被移动物件、调整大小物件的引用
var poly1=null,oldvalue="",oldx=0,oldy=0 //为了完成铅笔、记忆点等连续线段
var whatqianbi=1,whathuxing=1 //区分使用了哪种铅笔、弧型画笔,该变量起加速作用
var morenxuanzhuan=0 //存储对象的旋转前的旋转度
var huxingqidian=0,huxingzhongdian=0 //定义记录弧型旧的起点与终点的变量
var gaojiobj=null,gaojiobjdex=0,shijianobj=null //为了完成“改源码”“事件编程”功能,绑定被修改对象
var thisobj=null //为了完成各种基本编辑功能,如“置前”“复制”“删除”等
var zz2=3000 //为完成“置后”功能,zz2为负数
var huxingtixing=false,fuzhitixing=false //如果为false则ALERT()提醒弧型/复制得特性及缺陷,否则不提醒
var yincangtixing1=false,yincangtixing2=false //为false则提醒隐藏/取消隐藏,否则不提醒
var chexiao=new Array(),youbiao=0,fanchexiao1=2 //定义一个存储撤消内容的数组以及位移游标,fanchexiao1为0时+2,否则+1
var zuizhongxingtai="" //定义反撤消的最终形态
var objorthis="" //区分针对ID编程还是针对this编程
var miaoarray=new Array(600)
var fenarray=new Array(200)
var diplaytime=null //用于控制红色箭头的关闭时间,为了避免有闪烁感
var wodejiaoben="function fun1(){\n\n}\n" //用于存储我的脚本仓库内容
var nextid=-1
var whodonghua=true //区别是按照侦创作动画程序还是按照流线创作动画程序
var dianchi=0 //蓄电池的游标
var dianchitxt=new Array(99) //蓄电池程序内容
var dianchitime1=new Array(99) //蓄电池起始秒种
var dianchitime2=new Array(99) //蓄电池步长
var dianchitime3=new Array(99) //蓄电池结束秒种
dianchitime1[0]=1;dianchitime2[0]=50;dianchitime3[0]=5 //定义[默认蓄电池1]的时间设定
var luxianghaomiao=300 //记录录像播放时的毫秒步厂
var worktime=0 //记忆用户使用FlashVml绘制一副完整动画所用的时间,单位秒
var buzhou=0,oldto="" //记忆曲线绘制的步骤、伸展度的信息
var whatcaijian=1,caijianoldx=0,caijianoldy=0,caijianoldwid=0,caijianoldhei=0 //记录已何种方向裁剪目标对象、鼠标按下时坐标
var clips=new Array(0,0,0,0) //存储对象的默认裁剪
var caijianjuli=5,caijianbu=25 //设置裁剪容器距离实体边缘的边距,以及设置裁剪的最大步长
var zuobiaotime=null //绘图时的坐标
var yunxuchexiao=true //决定当前情况能否使用撤消、恢复撤消
var isquxian1=0,quxianduanx=0,quxianduany=0 //曲线绘制时的变量存储
function changsts(){ //更新状态栏函数
window.status="Picture "+huaban_biaoti+" use FlashVml "+worktime+" minutes,VmlElements "+div1.children.length
}
changsts();setInterval('worktime++;changsts()',60000) //使用时间增加
function getallid(){ //或得画板中所有可用的ID对象
oldselindex=allid.selectedIndex
for(i=allid.options.length;i>0;i--)allid.remove(i)
for(i=0;i<div1.children.length;i++){
if(div1.children[i].id!="")allid.add(new Option(div1.children[i].id))
}
if(allid.options.length>oldselindex){allid.selectedIndex=oldselindex}else{allid.selectedIndex=0}
}
function biaoshifun(textid1){ //红色箭头标识目标ID对应的对象
if(textid1!="可用的对象ID"){
var textid2=document.all(textid1)
biaoshi.style.left=parseInt(textid2.style.left)+(textid2.offsetWidth/2)
biaoshi.style.top=parseInt(textid2.style.top)-40
biaoshi.style.display='';
if(diplaytime!=null)clearTimeout(diplaytime)
diplaytime=setTimeout('biaoshi.style.display="none"','2000')
}}
function caozuook(){ //判断当前撤消、恢复撤消、清除等系统操作是否允许执行
if(caijian.style.display=="")return false
if(gaoji1.style.display=="")return false
if(menu1.style.display=="")return false
if(beijingtupian1.style.display=="")return false
if(shijian1.style.display=="")return false
if(yunxuchexiao==false||moveobj!=null||poly1!=null){return false}else return true
}
function chexiao_get(){ //撤消函数
if(!caozuook())return false
if(youbiao>0){div1.innerHTML=chexiao[youbiao];youbiao-=1;fanchexiao1=2}
}
function chexiao_get2(){ //恢复撤消函数
if(!caozuook())return false
if(youbiao<chexiao.length-fanchexiao1){youbiao+=fanchexiao1;fanchexiao1=1;div1.innerHTML=chexiao[youbiao];}else if(chexiao.length-youbiao==1&&youbiao>0){div1.innerHTML=zuizhongxingtai}
}
function addnextid(){ //该函数使每一个对象有一个xx1\xx2\xx3\xx*递加形式的ID标记
if(yesaddnextid.checked==true){nextid++;return " id='"+open_var+nextid+"'"}else{return ""}
}
function statstime(endtimestrings1){ //控制在状态栏显示[当前秒钟/影片结束秒钟]
if(endtimestrings1==""){
return ""
}else{return "<script>\nvar exptime=0;endtime="+endtimestrings1+";zhenlens=0;zhenlens2=0;\nfunction statusreplace(){window.status=\"The FlashVml Play Time\\\'s \"+exptime+endtime+\" Seconds,An animation:\"+zhenlens+\",Milli-an animation:\"+zhenlens2}\nfunction statuschange(){\nif(top.location==self.location)setInterval('exptime++;statusreplace()',1000)\n}\n;;;/script>\n"}
}
function div1.onmousedown(){
colortab.style.display="none";caijian.style.display="none";yuandaima.style.display="none" //结束其他未完成工作
zuobiao.style.color="blue";menu1.style.display='none';
if(event.button==2){gaoji1.style.display="none";shijian1.style.display="none";beijingtupian1.style.display="none"}
yunxuchexiao=false //锁定撤消
div1.setCapture(); //画笔绘画开始,锁定鼠标
color1=huabiyanse.value //定义画笔基本颜色
color2=huabibeijing.value; //定义画笔背景颜色
size1=bibiancudu.options[bibiancudu.selectedIndex].text //定义画笔基本粗度
bodyscrollleft=document.body.scrollLeft //获取滚动条信息
bodyscrolltop=document.body.scrollTop
xx=bodyscrollleft+event.x;yy=bodyscrolltop+event.y;zz+=1 //定义基本起始坐标
for(i=0;i<huabi.length;i++){if(huabi[i].className=="bon1"){bi=i;bitext=huabi[i].innerText;break}} //找到选择了哪个画笔
line1.strokecolor=color1;line1.strokeweight=size1;oval1.strokeweight=size1;oval1.strokecolor=color1 //设置可视化物件的基本样式
oval1.fillcolor=color2;rect1.strokeweight=size1;rect1.strokecolor=color1
rect1.fillcolor=color2;roundrect1.strokeweight=size1;roundrect1.strokecolor=color1
roundrect1.fillcolor=color2;arc1.strokeweight=size1;arc1.strokecolor=color1
arc1.fillcolor=color2;
ebj=event.srcElement
if(event.button==1){
if(bitext=="铅笔"||bitext=="直线"||bitext=="圆型"||bitext=="长方型"||bitext=="圆矩型"||bitext=="弧型"){ //支持显示标尺线的画笔
biaochi1.style.left=xx;biaochi1.style.display="";
biaochi2.style.top=yy;biaochi2.style.left=bodyscrollleft;biaochi2.style.display="";
}
switch(bitext){
case "选移": //选移
if(ebj.parentElement.id=="div1"){moveobj=ebj;ckleft=xx-parseInt(moveobj.style.left);cktop=yy-parseInt(moveobj.style.top);}
break;
case "调大小": //调大小
if(ebj.parentElement.id=="div1"){
str1=ebj.tagName.toLowerCase()
if(str1=="polyline"||str1=="shape"){
alert('无法调整核心基于'+str1+'图型,请使用[缩放]功能调整其大小\n\n或者使用[改源码]直接修改其源坐标系(需具备专业知识)');yunxuchexiao=true
for(i=0;i<huabi.length;i++)if(huabi[i].className!="bon2")huabi[i].className="bon2";
huabi[23].className="bon1";div1.style.cursor="hand";suofang1.style.display='';return false
}
moveobj=ebj;
ckleft=parseInt(moveobj.style.left);cktop=parseInt(moveobj.style.top);ckwid=moveobj.offsetWidth;ckhei=moveobj.offsetHeight}
break;
case "弧型": //弧型
if(huxing2[0].checked==true){whathuxing=1;arc1.style.left=xx;arc1.style.top=yy;arc1.style.width=0;arc1.style.height=0;arc1.style.display="";}else{
if(ebj.tagName.toLowerCase()!="arc"){
alert('目标图型不是弧型,无法调整');yunxuchexiao=true;whathuxing=2;return false}
for(i=0;i<huxing2.length;i++){if(huxing2[i].checked)whathuxing=i+1}
moveobj=ebj;huxingqidian=moveobj.startangle;huxingzhongdian=moveobj.endangle
}
break;
case "直线": //直线
line1.style.left=xx;line1.style.top=yy;line1.to="0,0";line1.style.display=""
break;
case "铅笔": //铅笔
if(document.getElementsByName('xuanzeqianbi')[0].checked==true){whatqianbi=1}else{whatqianbi=0}
if(poly1==null&&event.button==1){
oldx=xx;oldy=yy
qianbibeijing.checked?str1="t":str1='f'
if(whatqianbi==1){ //绘图型铅笔
poly1=div1.appendChild(document.createElement("<v:shape path='m"+xx+","+yy+" l"+xx+","+yy+"' filled='" + str1 + "' style='position:absolute;z-index:"+zz+";left:0;top:0;width:100;height:100' strokecolor='"+color1+"' strokeweight='"+size1+"' coordsize='100,100' fillcolor='"+color2+"'"+addnextid()+"/>"))
oldvalue=poly1.path.value.replace("e","")
}else{ //旋转型铅笔
poly1=div1.appendChild(document.createElement("<v:polyline filled='"+str1+"' points='0px,0px' style='position:absolute;z-index:"+zz+";left:"+xx+";top:"+yy+";' strokecolor='"+color1+"' strokeweight='"+size1+"' fillcolor='"+color2+"'"+addnextid()+"/>"))
oldvalue=poly1.points.value
}}
case "圆型": //圆型
oval1.style.left=xx;oval1.style.top=yy;oval1.style.width=0;oval1.style.height=0;oval1.style.display=""
break;
case "长方型": //长方型
rect1.style.left=xx;rect1.style.top=yy;rect1.style.width=0;rect1.style.height=0;rect1.style.display=""
break;
case "圆矩型": //圆矩型
roundrect1.style.left=xx;roundrect1.style.top=yy;roundrect1.style.width=0;roundrect1.style.height=0;roundrect1.style.display=""
break;
case "文字": //文字
wenzi1.style.left=xx;wenzi1.style.top=yy;wenzi1.style.display=""
break;
case "图片": //图片
tupian1.style.left=xx;tupian1.style.top=yy;tupian1.style.display=""
break;
case "记忆线": //记忆线
oldx=xx;oldy=yy
poly1=div1.appendChild(document.createElement("<v:line to='0,0' style='position:absolute;z-index:"+zz+";left:"+xx+";top:"+yy+";' strokecolor='"+color1+"' strokeweight='"+size1+"'"+addnextid()+"/>"))
break;
case "记忆线2": //记忆线2
if(poly1==null){
oldx=xx;oldy=yy
div1.innerHTML+="<v:polyline points=\"0pt 0pt\" style='position:absolute;z-index:"+zz+";left:"+xx+";top:"+yy+";' strokecolor='"+color1+"' fillcolor='"+color2+"' strokeweight='"+size1+"'"+addnextid()+"/>";poly1=div1.lastChild;oldvalue="0pt 0pt"}else{oldvalue=poly1.points.value;}
break;
case "旋转": //旋转
if(ebj.parentElement.id=="div1"){
if(nouse(ebj,"textbox")==false)return false;
moveobj=ebj;
if(moveobj.xuanzhuan==null)moveobj.xuanzhuan="0";
morenxuanzhuan=parseInt(moveobj.xuanzhuan);
}
break;
case "贝塞曲": //贝塞曲
if(buzhou==0&&poly1==null){
if(isquxian1==0){
oldx=xx;oldy=yy
quxianbeijing.checked?str1='t':str1='f'
poly1=div1.appendChild(document.createElement("<v:curve filled='"+str1+"' to='0,0' style='position:absolute;z-index:"+zz+";left:"+xx+";top:"+yy+";' strokecolor='"+color1+"' fillcolor='"+color2+"' strokeweight='"+size1+"'"+addnextid()+"/>"));return false}
if(ebj.tagName.toLowerCase()!='curve'){alert('目标图型不是曲线,无法调整');yunxuchexiao=true;return false}
moveobj=ebj;oldx=xx;oldy=yy
if(isquxian1==1)str1=ebj.control1;
if(isquxian1==2)str1=ebj.control2;
str1=new String(str1).split(",")
quxianduanx=parseInt(str1[0]);quxianduany=parseInt(str1[1])
}
break;
}
}}
function div1.onmousemove(){
tempx=bodyscrollleft+event.x;tempy=bodyscrolltop+event.y;
ebn=event.button
if(ebn==0){zuobiao.value="X"+tempx+",Y"+tempy;}
if(ebn==1){ //、改变坐标显示
if(zuobiaotime==null){tempx>xx?jiajians1="+":jiajians1="-";tempy>yy?jiajians2="+":jiajians2="-";zuobiaotime=setTimeout("zuobiao.value='"+xx+jiajians1+Math.abs(tempx-xx)+","+yy+jiajians2+Math.abs(tempy-yy)+"';zuobiaotime=null;clearTimeout(zuobiaotime)",100)}
}
if(poly1!=null){
if(bitext=="铅笔"&&ebn==1){ //铅笔
if(whatqianbi==1){ //绘图型铅笔
oldvalue=oldvalue+","+tempx+","+tempy;poly1.path.value=oldvalue
poly1.path.value=poly1.path.value.replace(",0,",",").replace(",0 e","e")
}else{
oldvalue=oldvalue+","+(tempx-oldx)+","+(tempy-oldy);poly1.points.value=oldvalue
}
}
else if(bitext=="记忆线"){ //记忆线
poly1.to=(tempx-xx)+","+(tempy-yy)
}
else if(bitext=="记忆线2"){ //记忆线2
div1.lastChild.outerHTML=div1.lastChild.outerHTML.replace(/ points = \".*?\"/,' points=\"'+oldvalue+","+(tempx-oldx)+","+(tempy-oldy)+'\"');poly1=div1.lastChild
}
else if(bitext=="贝塞曲"){ //曲线
if(buzhou==1){oldto=(tempx-oldx)+","+(tempy-oldy);poly1.to=oldto}
if(buzhou==2){poly1.control1=(tempx-oldx)+","+(tempy-oldy);}
if(buzhou==3){poly1.control2=(tempx-oldx)+","+(tempy-oldy)}
}}
if(ebn==1){
switch(bitext){
case "贝塞曲": //贝塞曲线的调整
if(moveobj!=null){
if(isquxian1==1){try{moveobj.control1=(quxianduanx+(tempx-oldx))+"pt,"+(quxianduany+(tempy-oldy))+"pt";}catch(e){}}
if(isquxian1==2){try{moveobj.control2=(quxianduanx+(tempx-oldx))+"pt,"+(quxianduany+(tempy-oldy))+"pt";}catch(e){}}
}
break;
case "选移": //选移
if(moveobj!=null){moveobj.style.left=tempx-ckleft;moveobj.style.top=tempy-cktop}
break;
case "调大小": //调大小
if(moveobj!=null){
if(moveobj.tagName=="curve"){moveobj.to=parseInt(tempx-ckleft)+","+parseInt(tempy-cktop);
if(ckto=="")ckto=parseInt(tempx-ckleft)+","+parseInt(tempy-cktop);return false}
if(moveobj.tagName!="line"){
if(tempx>ckleft){moveobj.style.width=tempx-ckleft}else{moveobj.style.left=tempx;moveobj.style.width=ckleft-tempx}
if(tempy>cktop){moveobj.style.height=tempy-cktop}else{moveobj.style.top=tempy;moveobj.style.height=cktop-tempy}
}else{
moveobj.to=parseInt(tempx-ckleft)+","+parseInt(tempy-cktop);
if(ckto=="")ckto=parseInt(tempx-ckleft)+","+parseInt(tempy-cktop);}
}
break;
case "弧型": //弧型
if(whathuxing==1){
if(tempx-xx<0){arc1.style.left=tempx;arc1.style.width=(xx-tempx)}else{arc1.style.width=(tempx-xx)}
if(tempy-yy<0){arc1.style.top=tempy;arc1.style.height=(yy-tempy)}else{arc1.style.height=(tempy-yy)}
}else if(whathuxing==2){ //修改起点弧缺
sjj=huxingqidian+(tempx-xx)
if(sjj>-360&&sjj<360)moveobj.startangle=sjj
}else if(whathuxing==3){
sjj=huxingzhongdian+(tempx-xx)
if(sjj>-360&&sjj<360)moveobj.endangle=sjj
}
break;
case "直线": //直线
line1.to=(tempx-xx)+","+(tempy-yy)
break;
case "圆型": //圆型
if(tempx-xx<0){oval1.style.left=tempx;oval1.style.width=(xx-tempx)}else{oval1.style.width=(tempx-xx)}
if(tempy-yy<0){oval1.style.top=tempy;oval1.style.height=(yy-tempy)}else{oval1.style.height=(tempy-yy)}
break;
case "长方型": //长方型
if(tempx-xx<0){rect1.style.left=tempx;rect1.style.width=(xx-tempx);}else{rect1.style.width=(tempx-xx)}
if(tempy-yy<0){rect1.style.top=tempy;rect1.style.height=(yy-tempy);}else{rect1.style.height=(tempy-yy)}
break;
case "圆矩型": //圆矩型
if(tempx-xx<0){roundrect1.style.left=tempx;roundrect1.style.width=(xx-tempx)}else{roundrect1.style.width=(tempx-xx)}
if(tempy-yy<0){roundrect1.style.top=tempy;roundrect1.style.height=(yy-tempy)}else{roundrect1.style.height=(tempy-yy)}
break;
case "旋转": //旋转
if(moveobj!=null){moveobj.Rotation=morenxuanzhuan+(tempx-xx)}
break;
}}}
function div1.onmouseup(){
yunxuchexiao=true //允许撤消
savechexiao()
document.releaseCapture();
zuobiao.style.color="red";biaochi1.style.display="none";biaochi2.style.display="none"
tempx=bodyscrollleft+event.x;tempy=bodyscrolltop+event.y;
if(bitext=="贝塞曲")moveobj=null
if(bitext=="贝塞曲"&&poly1!=null){
if(event.button==2){
if(buzhou==1)poly1.removeNode()
poly1=null;buzhou=0;oldto="";return false}
if(buzhou==1){poly1.control1=oldto;poly1.control2=oldto;}
if(buzhou==3){poly1=null;buzhou=0;oldto=""}else{buzhou++;}
}
if(bitext=="铅笔"&&poly1!=null){
if(whatqianbi==1){ //绘图型铅笔
poly1.path.value=oldvalue;
poly1.path.value=poly1.path.value.replace(",0,",",").replace(",0 e","e")
oldvalue="";poly1=null;
}else{
poly1.points.value=oldvalue;oldvalue="";poly1=null;
div1.innerHTML=div1.innerHTML
}
}else if(event.button==2&&poly1==null&&moveobj==null){
if(event.srcElement.parentElement.id=="div1"){menu1.style.left=tempx;menu1.style.top=tempy;menu1.style.display='';thisobj=event.srcElement}else{menu2.style.left=tempx;menu2.style.top=tempy;menu2.style.display='';}
}else if(event.button==2&&bitext=="记忆线"&&poly1!=null){
poly1.outerHTML="";poly1=null
}else if(event.button==2&&bitext=="记忆线2"&&poly1!=null){
if(tianbu.checked==false){
div1.lastChild.outerHTML=div1.lastChild.outerHTML.replace(/ points = \".*?\"/,' points=\"'+oldvalue+'\"');
}else{div1.lastChild.outerHTML=div1.lastChild.outerHTML.replace(/ points = \".*?\"/,' points=\"'+oldvalue+',0,0\"');
}oldvalue='';poly1=null
}
if(event.button==1){
var ebj=event.srcElement
switch(bitext){
case "选移": //选移
moveobj=null
break;
case "调大小": //调大小
moveobj=null;ckto=""
break;
case "弧型": //弧型
if(whathuxing==1){
arc1.style.display='none';
if (Math.abs(tempx-xx)<=1||Math.abs(tempy-yy)<=1)return false
div1.appendChild(document.createElement("<v:arc startangle='270' endangle='90' style='position:absolute;z-index:"+zz+";left:"+arc1.style.left+";top:"+arc1.style.top+";width:"+arc1.style.width+";height:"+arc1.style.height+";' strokecolor='"+color1+"' strokeweight='"+size1+"' fillcolor='"+color2+"'"+addnextid()+"/>"))
if(huxingtixing==false){huxingtixing=true;alert("弧型已绘出,调整弧度请使用[修改弧缺起点/修改弧型终点]功能");huxing2[1].checked=true}
}
else{moveobj=null}
break;
case "直线": //直线
line1.style.display="none"
if (Math.abs(tempx-xx)<=2&&Math.abs(tempy-yy)<=2)return false
div1.appendChild(document.createElement("<v:line style='position:absolute;z-index:"+zz+";left:"+xx+";top:"+yy+";' to='"+(tempx-xx)+","+(tempy-yy)+"' strokecolor='"+color1+"' strokeweight='"+size1+"'"+addnextid()+"/>"))
break;
case "圆型": //圆型
oval1.style.display="none"
if (Math.abs(tempx-xx)<=1||Math.abs(tempy-yy)<=1)return false
div1.appendChild(document.createElement("<v:oval style='position:absolute;z-index:"+zz+";left:"+oval1.style.left+";top:"+oval1.style.top+";width:"+oval1.style.width+";height:"+oval1.style.height+";' strokecolor='"+color1+"' strokeweight='"+size1+"' fillcolor='"+color2+"'"+addnextid()+"/>"))
break;
case "长方型": //长方型
rect1.style.display="none"
if (Math.abs(tempx-xx)<=1||Math.abs(tempy-yy)<=1)return false
div1.appendChild(document.createElement("<v:rect style='position:absolute;z-index:"+zz+";left:"+rect1.style.left+";top:"+rect1.style.top+";width:"+rect1.style.width+";height:"+rect1.style.height+";' strokecolor='"+color1+"' strokeweight='"+size1+"' fillcolor='"+color2+"'"+addnextid()+"/>"))
break;
case "圆矩型": //圆矩型
roundrect1.style.display="none"
if (Math.abs(tempx-xx)<=1||Math.abs(tempy-yy)<=1)return false
div1.appendChild(document.createElement("<v:roundrect style='position:absolute;z-index:"+zz+";left:"+roundrect1.style.left+";top:"+roundrect1.style.top+";width:"+roundrect1.style.width+";height:"+roundrect1.style.height+";' strokecolor='"+color1+"' strokeweight='"+size1+"' fillcolor='"+color2+"'"+addnextid()+"/>"))
break;
case "填充": //填充
if(ebj.parentElement.id=="div1"){
if(nouse(ebj,"image,line,textbox")==false)return false
if(whattianchong[0].checked){ebj.fillcolor=tianchongbeijing.value;ebj.fill.type='frame';ebj.filled=true
}else if(whattianchong[1].checked){ //使用渐变
ebj.filled=true
temp1=jianbianyangshi[0].checked?'gradient':'gradientradial'
ebj.fillcolor=jianbianse2.value
ebj.fill.color2=jianbianse1.value
ebj.fill.type=temp1
}else if(whattianchong[2].checked){ //使用背景图片
gaojiobj=ebj
beijingtupian1.style.left=xx;beijingtupian1.style.top=yy;beijingtupian1.style.display="";return false
}
ebj.fill.opacity=beijingliangdu.options[beijingliangdu.selectedIndex].text
if(whattianchong[3].checked){ebj.filled=false;}
}
break;
case "立体": //立体
if(ebj.parentElement.id=="div1"){
if(nouse(ebj,"image,textbox")==false)return false
if(quxiaoliti.checked){ebj.extrusion.on=false}else{
ebj.extrusion.color=litiyanse.value
ebj.extrusion.backdepth=houxiangshenzhan.options[houxiangshenzhan.selectedIndex].text
ebj.extrusion.foredepth=qianxiangshenzhan.options[qianxiangshenzhan.selectedIndex].text
ebj.extrusion.diffusity=litiliangdu.options[litiliangdu.selectedIndex].text
ebj.extrusion.rotationangle=pianyishangbian.options[pianyishangbian.selectedIndex].text+","+pianyizuobian.options[pianyizuobian.selectedIndex].text
ebj.extrusion.on=true}
}
break;
case "边框": //边框
if(ebj.parentElement.id=="div1"){
if(nouse(ebj,"textbox")==false)return false
ebj.strokecolor=biankuangyanse.value
if(biankuangcudu.options[biankuangcudu.selectedIndex].text=='0'){ebj.stroked=false}else{ebj.stroked=true;ebj.strokeweight=biankuangcudu.options[biankuangcudu.selectedIndex].text+"px"}
ebj.stroke.dashstyle=biankuangyangshi.options[biankuangyangshi.selectedIndex].text
ebj.stroke.startarrow=qidianjiantou.options[qidianjiantou.selectedIndex].text
ebj.stroke.endarrow=zhongdianjiantou.options[zhongdianjiantou.selectedIndex].text
}
break;
case "隐藏": //隐藏
if(ebj.parentElement.id=="div1"){
if(isyincang[0].checked){
ebj.yincang="true";if(!yincangtixing1){yincangtixing1=true;alert('目标图型已被隐藏(仅设计时可见,运行时将不可见)')}
}else{
ebj.removeAttribute("yincang");if(!yincangtixing2){yincangtixing2=true;alert('目标图型已取消隐藏(设计、运行时均可见)')}
}}
break;
case "改源码": //改源码
if(ebj.parentElement.id=="div1"){
gaojiobj=ebj;gaojiobjdex=ebj.sourceIndex
txt2.value=ebj.outerHTML.replace(/></g,">\n<").replace(/ = /g,"=").replace(/\: /g,":").replace(/\; /g,";").replace(/temp_/g,"").replace("<?xml:namespace prefix=v />\n","");
zishu2.innerText=txt2.value.length
if(ebj.style.cursor==""){shubiaozhuangtai.options[0].selected=true}else{
for(i=0;i<shubiaozhuangtai.options.length;i++){
if(shubiaozhuangtai.options[i].value==ebj.style.cursor)shubiaozhuangtai.options[i].selected=true
}}
if(ebj.title==""){tishibiaoti.value=""}else{tishibiaoti.value=ebj.title}
tagnametext.innerText=ebj.tagName
gaoji1.style.left=tempx;gaoji1.style.top=tempy;gaoji1.style.display=''
}
break;
case "文字化": //文字化
if(ebj.parentElement.id=="div1"){
if(nouse(ebj,"image,textbox")==false)return false
switch(ebj.tagName.toLowerCase()){
case "shape":case "polyline":case "line":case "curve":case "arc":
if(ebj.path.textpathok==true){alert("[文字化]对基于shape/polyline/line/curve/arc结构的图型,只能使用一次\n\n目标图型已使用过一次,若想修改,必须使用[改源码]功能手工修改\n\n这是VML的硬性规定。");return false}
break;
}
if(quxiaowenzihua.checked){
ebj.innerHTML=ebj.innerHTML.replace(/<v\:path .*<\/v:path>/gi,'').replace(/<v\:textpath .*<\/v:textpath>/gi,'')
}else{
str1=prompt("请输入一段用于图型轨迹填充的文字(支持中文)",ebj.textpath.string)
if(!str1)return false;if(str1=='')return false
if(str1.indexOf("'")!=-1)return alert("输入的文字中不可含有违禁符号 ' 单引号")
ebj.filled=true
ebj.fillcolor=wenziyanse2.value
ebj.strokecolor=wenziyanse3.value
temp2=ebj.innerHTML.replace(/<v\:path .*<\/v:path>/gi,'').replace(/<v\:textpath .*<\/v:textpath>/gi,'')
ebj.innerHTML=temp2+"<v:path textpathok='True'/>\n<v:textpath on='True' style='font-size:"+wenzidaxiao2.options[wenzidaxiao2.selectedIndex].text+"px;font-family:"+ziti2.options[ziti2.selectedIndex].text+";' string='"+str1+"'/>"
}}
break;
case "阴影": //阴影
if(ebj.parentElement.id=="div1"){
if(nouse(ebj,"textbox")==false)return false;
ebj.shadow.offset=zuoyoupianyi.options[zuoyoupianyi.selectedIndex].text+"px,"+shangxiapianyi.options[shangxiapianyi.selectedIndex].text+"px"
ebj.shadow.color=yinyingyanse.value
ebj.shadow.on=true
}
break;
case "透明度": //透明度
if(ebj.parentElement.id=="div1"){
if(bantouming(0).checked==true){
ebj.style.filter="alpha(opacity="+toumingxishu.options[toumingxishu.selectedIndex].text+",style="+toumingyangshi.options[toumingyangshi.selectedIndex].value+")"
}else {ebj.style.filter="";}
}
break;
case "放大": //放大
if(ebj.parentElement.id=="div1"){if(nouse(ebj,"line,polyline,shape,curve")==false)return false;fangda(ebj)}
break;
case "缩小": //缩小
if(ebj.parentElement.id=="div1"){if(nouse(ebj,"line,polyline,shape,curve")==false)return false;suoxiao(ebj)}
break;
case "缩放": //缩放
if(ebj.parentElement.id=="div1"){
str1=suofangbili.options[suofangbili.selectedIndex].text
str1=="取消缩放"?ebj.style.zoom=null:ebj.style.zoom=str1
}else{
if(!confirm("当前鼠标指针下没有固定目标,你是想一次性缩放控制所有的图型?"))return false
str1=suofangbili.options[suofangbili.selectedIndex].text
str1=="取消缩放"?str1=null:str1=str1
for(i=0;i<div1.children.length;i++){div1.children[i].style.zoom=str1}
}
break;
case "旋转": //旋转
moveobj.xuanzhuan=morenxuanzhuan+(tempx-xx);moveobj=null
break;
case "定义ID标识": //定义ID标识
if(ebj.parentElement.id=="div1"){
str1=prompt("请设置当前目标的ID名称用以标识,简化编程时的目标控制\nID格式必须是英文或英文+数字,格式如:obj、obj1、oval1",ebj.id)
if(str1!=null){
if(ebj.id!=str1){
for(i=0;i<div1.children.length;i++){if(div1.children[i].id==str1&&div1.children[i]!=ebj){alert('名称 '+str1+' 已被其他图型对象当做ID使用,请使用其他名称');return false}}
ebj.id=str1
}
}}
break;
case "左键单击时":case "双击左键时":case "鼠标按下时":case "鼠标弹起时":case "鼠标靠近时":case "鼠标离开时":case "鼠标移动时":
if(ebj.parentElement.id=="div1"){
objorthis="this";tempstr1="";shijianobj=ebj
for(i in ebj){tempstr1+="<option>"+i}
shijianallobj1.outerHTML="<select id='shijianallobj1' style='width:170'>"+tempstr1+"</select>";tempstr1=""
for(i in ebj.style){tempstr1+="<option>style."+i}
shijianallobj2.outerHTML="<select id='shijianallobj2' style='width:229'>"+tempstr1+"</select>"
switch(bitext){
case "左键单击时":
if(ebj.temp_onclick!=null)shijiantxt.value=ebj.temp_onclick;else shijiantxt.value=""
break;
case "双击左键时":
if(ebj.temp_ondblclick!=null)shijiantxt.value=ebj.temp_ondblclick;else shijiantxt.value=""
break;
case "鼠标按下时":
if(ebj.temp_onmousedown!=null)shijiantxt.value=ebj.temp_onmousedown;else shijiantxt.value=""
break;
case "鼠标弹起时":
if(ebj.temp_onmouseup!=null)shijiantxt.value=ebj.temp_onmouseup;else shijiantxt.value=""
break;
case "鼠标靠近时":
if(ebj.temp_onmouseover!=null)shijiantxt.value=ebj.temp_onmouseover;else shijiantxt.value=""
break;
case "鼠标离开时":
if(ebj.temp_onmouseout!=null)shijiantxt.value=ebj.temp_onmouseout;else shijiantxt.value=""
break;
case "鼠标移动时":
if(ebj.temp_onmousemove!=null)shijiantxt.value=ebj.temp_onmousemove;else shijiantxt.value=""
break;
}shijian1.style.left=tempx;shijian1.style.top=tempy;shijian1.style.display=""}
break;
}zuizhongxingtai=div1.innerHTML;}}
function document.onmouseup(){ //针对功能按钮切换时
var ebj=event.srcElement
if(ebj.tagName=="BUTTON"&&event.button==1){
ebj.blur();if(ebj.className=="bon1")return true;
for(i=0;i<huabi.length;i++)if(huabi[i].className!="bon2"){huabi[i].className="bon2";break;}
ebj.className="bon1";
oldbitext=bitext
bitext=ebj.innerText;
switch(bitext){ //定义鼠标形状
case "调大小":case "旋转":div1.style.cursor="move";break;
case "记忆线":case "记忆线2":case "铅笔":case "贝塞曲":div1.style.cursor="default";break;
case "直线":case "圆型":case "长方型":case "圆矩型":case "弧型":div1.style.cursor="crosshair";break;
default:div1.style.cursor="hand"
}
bitext=="隐藏"?yincang1.style.display='':yincang1.style.display='none'
bitext=="铅笔"?qianbi1.style.display='':qianbi1.style.display='none'
bitext=="记忆线2"?jiyixian22.style.display='':jiyixian22.style.display='none'
bitext=="贝塞曲"?quxian1.style.display='':quxian1.style.display='none'
bitext=="弧型"?huxing1.style.display='':huxing1.style.display='none'
bitext=="放大"||bitext=="缩小"?fangdasuoxiao1.style.display='':fangdasuoxiao1.style.display='none'
bitext=="缩放"?suofang1.style.display='':suofang1.style.display='none'
bitext=="文字化"?wenzihua1.style.display='':wenzihua1.style.display='none'
bitext=="填充"?tianchong1.style.display='':tianchong1.style.display='none'
if(bitext=="立体"){liti1.style.display='';litiyanse.value=litiyanse.value==''?huabibeijing.value:litiyanse.value}else{liti1.style.display='none';}
if(bitext=="边框"){biankuang1.style.display='';biankuangyanse.value=biankuangyanse.value==''?huabiyanse.value:biankuangyanse.value}else{biankuang1.style.display='none';}
if(bitext=="阴影"){yinying1.style.display='';yinyingyanse.value=yinyingyanse.value==''?huabiyanse.value:yinyingyanse.value}else{yinying1.style.display='none';}
if(bitext=="透明度"){touming1.style.display='';}else{touming1.style.display='none';}
if(poly1!=null){
poname=poly1.tagName.toLowerCase()
if(oldbitext=="记忆线"){ //清除记忆线
if(poname=="polyline"){poly1.points.value=oldvalue;oldvalue="";poly1=null;}else{poly1.outerHTML="";oldvalue="";poly1=null;}
}else if(oldbitext=="记忆线2"){ //清除记忆线2
if(poname=="polyline"){div1.lastChild.outerHTML=div1.lastChild.outerHTML.replace(/ points = \".*?\"/,' points=\"'+oldvalue+'\"');oldvalue='';poly1=null}else{poly1.outerHTML="";oldvalue="";poly1=null;}
}else if(oldbitext=="贝塞曲"){ //清除曲线
poly1.outerHTML="";oldvalue="";poly1=null;buzhou=0
}
}
beijingtupian1.style.display='none';
wenzi1.style.display='none';tupian1.style.display='none';gaoji1.style.display='none';
shijian1.style.display='none';jiaoben.style.display='none';
colortab.style.display="none";caijian.style.display="none";yuandaima.style.display="none" //结束其他未完成工作
menu1.style.display='none'
}}
function donghuachengxu(whoid){
objorthis=whoid
shijianobj=document.all(whoid);tempstr1=""
if(whodonghua==true){ //进行侦式动画创作
if(miaozhong.selectedIndex==0){ //如果是分钟
temptext1=fenarray[parseInt(fenzhong.options[fenzhong.selectedIndex].text)]
if(temptext1!=null){shijiantxt.value=temptext1}else{shijiantxt.value=""}
}else{ //如果是秒钟
temptext1=miaoarray[parseInt(miaozhong.options[miaozhong.selectedIndex].text)]
if(temptext1!=null){shijiantxt.value=temptext1}else{shijiantxt.value=""}
}}else{ //进行流线动画创作
temptext1=dianchitxt[dianchi];if(temptext1!=null){shijiantxt.value=temptext1}else{shijiantxt.value=""}
}
for(i in shijianobj){tempstr1+="<option>"+i}
shijianallobj1.outerHTML="<select id='shijianallobj1' style='width:170'>"+tempstr1+"</select>";tempstr1=""
for(i in shijianobj.style){tempstr1+="<option>style."+i}
shijianallobj2.outerHTML="<select id='shijianallobj2' style='width:229'>"+tempstr1+"</select>"
shijian1.style.left=170;shijian1.style.top=370;shijian1.style.display=""
}
function shijianfun(){ //更新目标的事件定义
shijian1.style.display='none'
tempcolor1="yellow"
if(shijiantxt.value==''){str1=null}else{str1=shijiantxt.value}
if(objorthis!="this"){ //针对ID编程时
if(whodonghua==true){ //针对侦进行动画编程
if(miaozhong.selectedIndex!=0){ //针对秒钟编程
miao1=parseInt(miaozhong.options[miaozhong.selectedIndex].text)
miaoarray[miao1]=str1
str1==null?temp1="white":temp1=tempcolor1
miaozhong.options[miaozhong.selectedIndex].style.backgroundColor=temp1
}else{ //针对分钟编程
if(str1.indexOf("\n")!=-1){alert('禁止动画程序内使用回车符,此次更新无效');return false}
fen1=parseInt(fenzhong.options[fenzhong.selectedIndex].text)
fenarray[fen1]=str1
str1==null?temp1="white":temp1=tempcolor1
fenzhong.options[fenzhong.selectedIndex].style.backgroundColor=temp1
}return false;
}else{ //针对流线进行动画编程
if(str1.indexOf("\n")!=-1){alert('禁止动画程序内使用回车符,此次更新无效');return false}
dianchitxt[dianchi]=str1;dianchitime1[dianchi]=qishimiao.value
dianchitime2[dianchi]=haomiaobuchang.value;dianchitime3[dianchi]=jieshumiaozhong.value
str1==null?temp1="white":temp1=tempcolor1
dianchi1.options[dianchi1.selectedIndex].style.backgroundColor=temp1
return false
}}
switch(bitext){ //针对事件目标对象编程时
case "左键单击时":
shijianobj.temp_onclick=shijiantxt.value
break;
case "双击左键时":
shijianobj.temp_ondblclick=shijiantxt.value
break;
case "鼠标按下时":
shijianobj.temp_onmousedown=shijiantxt.value
break;
case "鼠标弹起时":
shijianobj.temp_onmouseup=shijiantxt.value
break;
case "鼠标靠近时":
shijianobj.temp_onmouseover=shijiantxt.value
break;
case "鼠标离开时":
shijianobj.temp_onmouseout=shijiantxt.value
break;
case "鼠标移动时":
shijianobj.temp_onmousemove=shijiantxt.value
break;
}}
function fangda(tempElement){ //放大函数
tgm=tempElement.tagName.toLowerCase()
if(tgm=="line"||tgm=="polyline"||tgm=="shape"||tgm=="curve")return false
if(anzhaoguize.selectedIndex==0){
thes1=parseInt(anzhaoxiangsu.options[anzhaoxiangsu.selectedIndex].text);thes2=thes1/2
if(kuanyugao[0].checked==true||kuanyugao[1].checked==true){
tempElement.style.left=parseInt(tempElement.style.left)-thes2;
tempElement.style.width=parseInt(tempElement.style.width)+thes1;}
if(kuanyugao[0].checked==true||kuanyugao[2].checked==true){
tempElement.style.top=parseInt(tempElement.style.top)-thes2;
tempElement.style.height=parseInt(tempElement.style.height)+thes1}
}else{
thes1=parseInt(anzhaoguize.options[anzhaoguize.selectedIndex].value);
thewidth=parseInt(tempElement.style.width);theheight=parseInt(tempElement.style.height)
if(kuanyugao[0].checked==true||kuanyugao[1].checked==true){
tempElement.style.left=parseInt(tempElement.style.left)-(thewidth/thes1/2);
tempElement.style.width=thewidth+(thewidth/thes1);}
if(kuanyugao[0].checked==true||kuanyugao[2].checked==true){
tempElement.style.top=parseInt(tempElement.style.top)-(theheight/thes1/2);
tempElement.style.height=theheight+(theheight/thes1)}
}}
function suoxiao(tempElement){ //缩小函数
tgm=tempElement.tagName.toLowerCase()
if(tgm=="line"||tgm=="polyline"||tgm=="shape"||tgm=="curve")return false
if(anzhaoguize.selectedIndex==0){
thes1=parseInt(anzhaoxiangsu.options[anzhaoxiangsu.selectedIndex].text);thes2=thes1/2
if(kuanyugao[0].checked==true||kuanyugao[1].checked==true){
tempElement.style.left=parseInt(tempElement.style.left)+thes2;
tempElement.style.width=parseInt(tempElement.style.width)-thes1;}
if(kuanyugao[0].checked==true||kuanyugao[2].checked==true){
tempElement.style.top=parseInt(tempElement.style.top)+thes2;
tempElement.style.height=parseInt(tempElement.style.height)-thes1}
}else{
thes1=parseInt(anzhaoguize.options[anzhaoguize.selectedIndex].value);
thewidth=parseInt(tempElement.style.width);theheight=parseInt(tempElement.style.height)
if(kuanyugao[0].checked==true||kuanyugao[1].checked==true){
tempElement.style.left=parseInt(tempElement.style.left)+(thewidth/thes1/2);
tempElement.style.width=thewidth-(thewidth/thes1);}
if(kuanyugao[0].checked==true||kuanyugao[2].checked==true){
tempElement.style.top=parseInt(tempElement.style.top)+(theheight/thes1/2);
tempElement.style.height=theheight-(theheight/thes1)}
}}
function savechexiao(){ //保存撤消
youbiao+=1;chexiao[youbiao]=div1.innerHTML;
}
function rndcolor(theobjis){ //颜色选择
colortab.style.display="";colorid.innerHTML="";str1="<table cellspacing=0 cellpadding=0>";
colortab.style.left=document.body.scrollLeft+event.x-100;colortab.style.top=document.body.scrollTop+event.y+event.srcElement.offsetHeight+15;
for(r=0;r<10;r++){str1+="<tr>"
for(i=0;i<10;i++){
tempcolor1=Math.round(Math.random()*255).toString(16)+Math.round(Math.random()*255).toString(16)+Math.round(Math.random()*255).toString(16);while(tempcolor1.length<6){tempcolor1+=Math.round(Math.random()*9)}
str1+="<td style='width:10;height:10;background-color:#"+tempcolor1+";' onclick="+theobjis+".value='#"+tempcolor1+"';"+theobjis+".style.color='#"+tempcolor1+"';colortab.style.display='none';></td>"
}str1+="</tr>"}
colorid.innerHTML=str1+"<tr><td colspan=20 align=center onclick=colortab.style.display='none' style='cursor:hand'>Close(关闭)</td></tr></table>"
}
function charuwenzi(){ //插入文字
if(txt1.value=="")return alert('请先输入文字,在点击插入')
wenzibiankuang.checked==true?thebiankuang="border:1 solid black;":thebiankuang=""
beijingtouming.checked==true?bkcolor1="":bkcolor1="background-color:"+wenzibeijing.value
if(zijiange.selectedIndex==0){str1=""}else{str1="letter-Spacing:"+zijiange.options[zijiange.selectedIndex].text+";"}
if(hangjiange.selectedIndex==0){str2=""}else{str2="line-height:"+hangjiange.options[hangjiange.selectedIndex].text+";"}
var newtxt=document.createElement("<v:Textbox inset='5pt,5pt,5pt,5pt' style='position:absolute;word-Break:break-all;z-index:"+zz+";left:"+xx+";top:"+yy+";color:"+wenziyanse.value+";"+bkcolor1+";font-size:"+wenzidaxiao.options[wenzidaxiao.selectedIndex].text+";font-family:"+wenziziti.options[wenziziti.selectedIndex].text+";"+duiqi.options[duiqi.selectedIndex].value+";"+str1+str2+thebiankuang+"'"+addnextid()+"></v:Textbox>");newtxt.innerHTML=txt1.value.replace(/\n/g,'<br>').replace(/ /g,' ')
div1.appendChild(newtxt);wenzi1.style.display='none'
}
function charutupian(){ //插入图片
if(file1.value=="")return alert('请先输入图片路径(HTTP://或FILE:///)格式,在点击插入')
if(file1.value.indexOf("'")>-1)return alert("图片地址不可以含有违禁字符 ' 单引号")
str1="";str2=""
if(heibai.checked==true){str1=" grayscale='true'"}else{
if(duibi.options[duibi.selectedIndex].text!='默认对比度')str1=" gain='"+duibi.options[duibi.selectedIndex].text+"'"
if(secai.options[secai.selectedIndex].text!='默认色彩度')str1=" gamma='"+secai.options[secai.selectedIndex].text+"'"
if(liangdu.options[liangdu.selectedIndex].text!='默认亮度')str1=" blacklevel='"+liangdu.options[liangdu.selectedIndex].text+"'"
}
if(mohudu.options[mohudu.selectedIndex].text!='默认模糊度')str2="blur(add=1,direction=0,strength="+mohudu.options[mohudu.selectedIndex].text+") "
if(bolang.checked==true)str2+="wave(add=0,freq=,lightstrength=5,phase=5,strength=3) "
if(xguangzhao.checked==true)str2+="invert "
if(fancai.checked==true)str2+="xray "
if(str2!="")str2=";filter:"+str2+";"
var newtxt=document.createElement("<v:Image style='position:absolute;z-index:"+zz+";left:"+xx+";top:"+yy+";width:100;height:100"+str2+"'"+addnextid()+" src='"+file1.value+"'"+str1+"/>");
div1.appendChild(newtxt);tupian1.style.display='none'
}
function charubeijingtupian(){ //插入背景图片
if(file2.value=="")return alert('请先输入背景图片路径(HTTP://或FILE:///)格式,在点击插入')
if(file2.value.indexOf("'")>-1)return alert("背景图片地址不可以含有违禁字符 ' 单引号")
gaojiobj.filled=true
gaojiobj.fill.opacity=beijingliangdu.options[beijingliangdu.selectedIndex].text
ronghebeijing.checked?gaojiobj.fillcolor=tianchongbeijing.value:gaojiobj.fillcolor="white"
gaojiobj.fill.type='frame'
gaojiobj.fill.src=file2.value
gaojiobj.fill.on=true
gaojiobj=null;beijingtupian1.style.display='none'
}
function document.onkeydown(){ //实现各种快捷键
eshift=event.shiftKey;ectrl=event.ctrlKey;ecode=event.keyCode;
if(event.srcElement.tagName!='TEXTAREA'){
with(document.all){
ectrl&&ecode==90?chexiao_get():
ectrl&&ecode==89?chexiao_get2():str1=1;
if(eshift&&(ecode==38||ecode==39)){fangda.click();return false}
if(eshift&&(ecode==40||ecode==37)){suoxiao.click();return false}
!ectrl&&ecode==27?esc.click():str1=1
if(!ectrl&&ecode==13){
if(caijian.style.display!="none"){caijian.style.display="none";thisobj=null;return false}
shiyunxing.click()
}
if(caijian.style.display!="none"){tx=parseInt(caijian.style.left);ty=parseInt(caijian.style.top);tw=parseInt(caijian.style.width);th=parseInt(caijian.style.height);objwid=thisobj.offsetWidth;objhei=thisobj.offsetHeight;tmove=1
str1=thisobj.style.clip;
if(str1==""){clips[0]=0;clips[1]=objwid;clips[2]=objhei;clips[3]=0;}else{str1=str1.replace(/[a-z\(\)\%]+/g,'');str1=str1.split(' ');for(i=0;i<3;i++)clips[i]=str1[i];}
}else{tmove=0}
if(!ectrl&&!eshift&&ecode==37){ //左键
if(tmove==1){
try{
caijian.style.width=tw-caijianbu
clips[1]-=caijianbu;thisobj.style.clip="rect("+clips[0]+" "+clips[1]+" "+clips[2]+" "+clips[3]+")"
}catch(e){caijianerr()}
return false}
zuoyi.click();return false
}
if(!ectrl&&!eshift&&ecode==38){ //上键
if(tmove==1){
try{
caijian.style.height=th-caijianbu
clips[2]-=caijianbu;thisobj.style.clip="rect("+clips[0]+" "+clips[1]+" "+clips[2]+" "+clips[3]+")"
}catch(e){caijianerr()}
return false}
shangyi.click();return false
}
if(!ectrl&&!eshift&&ecode==39){ //右键
if(tmove==1){
try{
caijian.style.left=tx+caijianbu;caijian.style.width=tw-caijianbu
clips[3]=parseInt(clips[3])+parseInt(caijianbu);thisobj.style.clip="rect("+clips[0]+" "+clips[1]+" "+clips[2]+" "+clips[3]+")"
}catch(e){caijianerr()}
return false}
youyi.click();return false
}
if(!ectrl&&!eshift&&ecode==40){ //下健
if(tmove==1){
try{
caijian.style.top=ty+caijianbu;caijian.style.height=th-caijianbu
clips[0]=parseInt(clips[0])+parseInt(caijianbu);thisobj.style.clip="rect("+clips[0]+" "+clips[1]+" "+clips[2]+" "+clips[3]+")"
}catch(e){caijianerr()}
return false}
xiayi.click();return false
}
}
}}
function caijianerr(){ //裁剪错误时
clips[0]=0;clips[1]=thisobj.offsetWidth;clips[2]=thisobj.offsetHeight;clips[3]=0;
thisobj.style.clip="rect(0 "+thisobj.offsetWidth+" "+thisobj.offsetHeight+" 0)";
caijian.style.left=thisobj.offsetLeft-caijianjuli;caijian.style.top=thisobj.offsetTop-caijianjuli;caijian.style.width=thisobj.offsetWidth+(caijianjuli*2);caijian.style.height=thisobj.offsetHeight+(caijianjuli*2);
}
function getallcode(yesgetall){ //编译函数
timestring1="" //存储侦式动画程序代码
miaoend=0;fenend=0;timestring2="" //用于记录最久的最后一侦,用于配合“结束时循环播放”功能函数的创建
endtime=0,theendtime=0,timefunstr="" //用于记录流线动画的最长时间,比较侦式动画最长时间,得到影片总长度秒钟
for(i=0;i<miaoarray.length;i++){if(miaoarray[i]!=null){timestring1+=('setTimeout("zhenlens++;statusreplace();'+miaoarray[i].replace(/\"/g,'\\\"')+'","'+i+'000");\n');miaoend=i*1000}}
for(i=0;i<fenarray.length;i++){if(fenarray[i]!=null){timestring1+=('setTimeout("zhenlens++;statusreplace();'+fenarray[i].replace(/\"/g,'\\\"')+'","'+(i*60)+'000");\n');fenend=i*1000}}
if(fenend!=0){fenend=fenend*60};
if(miaoend!=0&&miaoend>fenend){endtime=miaoend}else{endtime=fenend} //算出最后的结束时间、重播时间
if(xunhuan1.checked==true){ //如果是循环播放动画
timestring2='setTimeout("location.reload();",'+(endtime+1000)+');\n'
}else{timestring2=""}
if(timestring1!=""){timestring1="%^&!!script>\nfunction flashvml(){ //以下是侦式动画程序\n"+timestring1+timestring2+"}\n%^&!!/script>\n";flashvmlfunadd="flashvml();\n";}else{flashvmlfunadd=""}
liuxianstr1="" //存储流线动画程序代码
for(i=0;i<dianchitxt.length+1;i++){
if(dianchitxt[i]!=null){
temp0='FlashVmlIntervalVar'+i+'="zhenlens2++;statusreplace();'+dianchitxt[i].replace(/\"/g,'\\\"')+'";\n'
temp1="FlashVmlIntervalTime"+i+"=setInterval(FlashVmlIntervalVar"+i+","+dianchitime2[i]+")"
temp2="clearInterval(FlashVmlIntervalTime"+i+")"
liuxianstr1+=(temp0+'setTimeout("'+temp1+'",'+(dianchitime1[i]*1000)+');\nsetTimeout("'+temp2+'",'+(dianchitime3[i]*1000)+');\n')
if(dianchitime3[i]*1000>theendtime)theendtime=dianchitime3[i]*1000 //得到流线动画最长结束秒钟
}}
if(liuxianstr1!=""){liuxianstr1="%^&!!script>\n"+dhfun_dizhen.value+"\nfunction flashvml2(){ //以下是流线动画程序\n"+liuxianstr1+"}\n%^&!!/script>\n";flashvml2funadd="flashvml2();\n"}else{flashvml2funadd=""}
statuschangefunadd=""
if(endtime!=0||theendtime!=0){
if(endtime>theendtime){timefunstr='"/'+endtime/1000+'"'}else{timefunstr='"/'+theendtime/1000+'"'}
statuschangefunadd="statuschange();\n"
}
if(pingbicuowu.checked){temp3="<script>\nfunction window.onerror(){return true;} //防止您的程序出现错误时弹出提示\n;;;/script>\n"+statstime(timefunstr).replace(';;;','<')}else{temp3=statstime(timefunstr).replace(';;;','<')}
if(wodejiaoben=="function fun1(){\n\n}\n"||wodejiaoben==""){str3=temp3}else{str3=temp3.replace(";;;","<")+'<script id="myscript" language="javascript">\n'+wodejiaoben+';;;/script>\n'}
if(huaban_gundongtiao==0){gundongstr=" style='scrollbar-base-color:"+huaban_gundongbase+";scrollbar-shadow-color:white;scrollbar-highlight-color:white;scrollbar-arrow-color:white;'"}
else if(huaban_gundongtiao==1){gundongstr=""}
else if(huaban_gundongtiao==2){gundongstr=" scroll=no"}
str1="<HTML xmlns:v>\n<HEAD>\n<META http-equiv='Content-Type' content='text/html;charset=gb2312'>\n<TITLE>"+huaban_biaoti+"</TITLE>\n<META name='Gemeratpr' content='flashvml2.0'>\n<META name='KeyWords' content='"+huaban_biaoti.replace(/'/g,"")+","+keystrs+"'>\n<STYLE>\nv\\:*{behavior:url(#default#VML);}\n</STYLE>\n"+str3.replace(";;;","<")+"</HEAD>\n<BODY bgcolor="+huaban_yanse+gundongstr+">\n<bgsound loop=1 id=bgsound1>\n<bgsound loop=-1 id=bgsound2>\n"+timestring1.replace(/\%\^\&\!\!/g,'<')+liuxianstr1.replace(/\%\^\&\!\!/g,'<')+onloadstr(true).replace(";;;","<")+"\n"
if(yesgetall==true){
return str1+div1.innerHTML.replace(/></g,'>\n<').replace(/ = /g,'=').replace(/\: /g,':').replace(/\; /g,';').replace(/temp_/g,'').replace('<?xml:namespace prefix=v />\n','')+"</BODY>\n</HTML>"
}else{return str1}
}
function yunxingfun(){ //试运行函数
if(!caozuook())return false
win1=window.open("","lshdic1");win1.document.open()
win1.document.write(getallcode(true));
win1.document.close();
if(huaban_zuidahua==true){win1.moveTo(0,0);win1.resizeTo(screen.availWidth,screen.availHeight)}
}
function savefile(){ //保存文件函数
if(!caozuook())return false
web.document.clear();web.document.open();web.document.write(getallcode(true));web.document.execCommand('SaveAs',false,huaban_biaoti);web.document.clear();web.document.close();web.location.href="about:blank";changsts()
}
function chakandaima(){ //查看所有原代码函数
if(!caozuook())return false
huabanshezhi.style.display="none"
txt3_top.value=getallcode(false)
txt3.value=div1.innerHTML.replace(/></g,'>\n<').replace(/ = /g,'=').replace(/\: /g,':').replace(/\; /g,';').replace(/temp_/g,'').replace('<?xml:namespace prefix=v />\n','');
zishu1[0].innerText=txt3.value.length+txt3_top.value.length;zishu1[1].innerText=txt3.value.length;zishu1[2].innerText=txt3_top.value.length;
yuandaima.style.display==''?yuandaima.style.display='none':yuandaima.style.display=''
}
function quanbuqingchu(){ //全部清除函数
if(!caozuook())return false
if(!confirm("这将会清除[所有图型、侦式动画程序、流线动画程序],但不清空[我的脚本仓库]\n\n你确认要清除吗?"))return false
savechexiao();div1.innerHTML="";poly1=null;thisobj=null;gaoji1.style.display="none"
for(i=allid.options.length;i>0;i--)allid.remove(i);allid.selectedIndex=0
dianchi1.selectedIndex=0;dianchi=0;dianchi1.onchange()
dianchitxt.splice(0,99);miaoarray.splice(0,600);fenarray.splice(0,200) //删除动画存储数组
temp1="yellow";
for(i=0;i<fenzhong.options.length;i++){if(fenzhong.options[i].style.backgroundColor==temp1)fenzhong.options[i].style.backgroundColor="white"}
for(i=0;i<miaozhong.options.length;i++){if(miaozhong.options[i].style.backgroundColor==temp1)miaozhong.options[i].style.backgroundColor="white"}
for(i=0;i<dianchi1.options.length;i++){if(dianchi1.options[i].style.backgroundColor==temp1)dianchi1.options[i].style.backgroundColor="white"}
}
luxiangyoubiao=0
function luxiang(){ //播放录像函数
if(!caozuook())return false
if(div1.children.length<2){alert('要播放录像,您必须至少绘制2个基本图型');return false}
strs=prompt('请为录像播放定义一个[毫秒步长],录像将会按照你定义的[毫秒步长]数有规律的刷新、播放,建议范围100-1000,默认为[300]毫秒',luxianghaomiao)
if(strs!=null&&strs!=""){
if(isNaN(strs)){alert('值格式必须为数字!');return false}
if(strs<10||strs>10000){alert('可接受的数值范围为10-10000!');return false}
luxianghaomiao=strs;
str0="<script>\nFlashVmlluxiangyoubiao=3;BodyAllObjectLength=0;luxiangtime1=null;\ndocument.body.style.display='none';\nfunction luxiangstart(){\nBodyAllObjectLength=document.body.children.length;\nfor(i=0;i<BodyAllObjectLength;i++){document.body.children[i].style.display='none'}\ndocument.body.style.display='';\nluxiangtime1=setInterval('if(FlashVmlluxiangyoubiao<BodyAllObjectLength){document.body.children[FlashVmlluxiangyoubiao].style.display=\"\";}else{document.body.style.display=\"none\";FlashVmlluxiangyoubiao=3;BodyAllObjectLength=0;clearInterval(luxiangtime1);luxiangstart();return false}FlashVmlluxiangyoubiao++',"+strs+");\n}\n;;;/script>\n"
str1="<HTML xmlns:v>\n<HEAD>\n<META http-equiv=Content-Type content=text/html;charset=gb2312>\n<TITLE>"+huaban_biaoti+" - 教学录影回放</TITLE>\n<META name='Gemeratpr' content='flashvml2.0'>\n<META name='KeyWords' content='"+huaban_biaoti.replace(/'/g,"")+","+keystrs+"'>\n<STYLE>\nv\\:*{behavior:url(#default#VML);}\n</STYLE>\n"+statstime("").replace(';;;','<')+"</HEAD>\n<BODY bgcolor="+huaban_yanse+">\n<bgsound loop=1 id=bgsound1>\n<bgsound loop=-1 id=bgsound2>\n"+onloadstr(false).replace("}\n;;;","\nluxiangstart();\n}\n<")+"\n"+str0.replace(';;;','<')+div1.innerHTML.replace(/></g,'>\n<').replace(/ = /g,'=').replace(/\: /g,':').replace(/\; /g,';').replace(/temp_/g,'').replace('<?xml:namespace prefix=v />\n','')+"</BODY>\n</HTML>"
win1=window.open("","lshdic1");win1.document.open()
win1.document.write(str1);
win1.document.close();win1.moveTo(0,0);win1.resizeTo(screen.availWidth,screen.availHeight)
}}
function nouse(nouseobj,nousetag){ //快捷判断(判断对象是否不支持使用某功能),提示函数
nouseobjtagname=nouseobj.tagName.toLowerCase();nostr1=nousetag.split(",");
for(i=0;i<nostr1.length;i++)if(nouseobjtagname==nostr1[i]){alert("["+bitext+"]功能该"+nouseobjtagname+"对象无法使用");return false}
}
</script>
<div style='position:absolute;left:0;top:0;display:none;z-index:50010;background-color:#EDFFFC;padding:2;white-Space:nowrap;table-Layout:fixed;filter:alpha(style=1,finishopacity=55);color:navy;font-size:12px;' id=showdiv onmousemove='this.style.display="none"'></div>
<script>
var oldtext="加速变量",thetemp1=0,closetime
function showhelp(thetext){
try{
event.srcElement.tagName=="BUTTON"?temp1=event.srcElement.innerText:temp1=event.srcElement.value;
if(thetemp1!=temp1||showdiv.style.display=="none"){
thetemp1=temp1
clearTimeout(closetime)
bodyscrollleft=document.body.scrollLeft
bodyscrolltop=document.body.scrollTop
if(showdiv.style.display=='none'){showdiv.style.left=bodyscrollleft+event.x-3;showdiv.style.top=event.y+bodyscrolltop+18;}
oldtext=thetext;
showdiv.innerHTML="<B>"+temp1+":</b>"+thetext;
if(event.x>document.body.offsetWidth/2){
showdiv.style.left=bodyscrollleft+event.x-(oldtext.length*12);showdiv.style.top=event.y+bodyscrolltop+28;
}else{showdiv.style.left=bodyscrollleft+event.x-3;showdiv.style.top=event.y+bodyscrolltop+18;}
showdiv.style.display=''
closetime=setTimeout('showdiv.style.display="none"',5000)
}
}catch(e){}
}
/*
FlashVml2.0 - FYW(风云舞)
2005-1-25 22:35:50
*/
</script>
本文地址:http://com.8s8s.com/it/it30822.htm