杂货铺子
好玩的软件( )
快来涂鸦吧--[在线的快乐]
 
 
 
好玩的软件
2004-11-8 19:51
请按运行,然后开始涂鸦吧:)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- saved from url=(0032)http://fyw.dyrd.com/flashvml.htm --> <HTML xmlns:v><HEAD><TITLE>FlashVml1.0(在线Flash&Vml动画画板)</TITLE> <META http-equiv=Content-Type content="text/html; Charset=gb2312"> <META content="MSHTML 6.00.2800.1126" name=GENERATOR> <META content="FlashVml FlashVml1.0(在线Flash&Vml动画画板) FYWVml Flash Vml Vml图像画板 在线图像画板 在线画板 FlashVml1.0 FYW 风云舞 动画回放 教学录影回放" name=KeyWords> <STYLE>v\:* { BEHAVIOR: url(#default#VML) } A { COLOR: white; TEXT-DECORATION: none } A:hover { COLOR: yellow; TEXT-DECORATION: underline } TD { FONT-SIZE: 12px; COLOR: white } .bon1 { BORDER-RIGHT: #eeeeee 1px solid; BORDER-TOP: gray 1px solid; BORDER-LEFT: gray 1px solid; WIDTH: 54px; CURSOR: hand; COLOR: yellow; BORDER-BOTTOM: #eeeeee 1px solid; BACKGROUND-COLOR: #619ce7 } .bon2 { BORDER-RIGHT: gray 1px solid; BORDER-TOP: #eeeeee 1px solid; BORDER-LEFT: #eeeeee 1px solid; WIDTH: 54px; CURSOR: hand; COLOR: white; BORDER-BOTTOM: gray 1px solid; BACKGROUND-COLOR: #619ce7 } </STYLE> </HEAD> <BODY oncontextmenu='if(event.srcElement.tagName!="TEXTAREA")return false' onselectstart='if(event.srcElement.tagName!="TEXTAREA"&&event.srcElement.tagName!="INPUT")return false' style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; MARGIN: 0px; BORDER-LEFT: 0px; CURSOR: default; BORDER-BOTTOM: 0px" onhelp="fywvmlhelp.click();return false" vLink=#3732cd link=#3732cd> <SCRIPT> 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 function onloadstr(whatonload){ if(whatonload==true){jtempp="\n"+flashvmlfunadd+flashvml2funadd+statuschangefunadd}else{jtempp=""} 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+"}\n;;;/script>" } function window.onerror(){return true} </SCRIPT> <v:Line id=line1 style="DISPLAY: none; Z-INDEX: 2000; POSITION: absolute" from = "0,0" to = "0,0"><!--直线可视化--><v:Stroke dashstyle = "shortDash"></v:Stroke></v:Line><v:arc id=arc1 style="DISPLAY: none; Z-INDEX: 2000; POSITION: absolute" startangle = "300" endangle = "0" coordsize = "21600,21600" adj = ",,5400"><!--弧型可视化--><v:Stroke joinstyle = "miter" dashstyle = "shortDash"></v:Stroke></v:arc><v:Oval id=oval1 style="DISPLAY: none; Z-INDEX: 2000; POSITION: absolute" coordsize = "21600,21600"><!--圆型可视化--><v:Stroke dashstyle = "shortDash"></v:Stroke></v:Oval><v:rect id=rect1 style="DISPLAY: none; Z-INDEX: 2000; POSITION: absolute" coordsize = "21600,21600"><!--长方型可视化--><v:Stroke dashstyle = "shortDash"></v:Stroke></v:rect><v:roundrect id=roundrect1 style="DISPLAY: none; Z-INDEX: 2000; POSITION: absolute" arcsize = "4321f" coordsize = "21600,21600"><!--圆锯型可视化--><v:Stroke dashstyle = "shortDash"></v:Stroke></v:roundrect><SPAN id=wenzi1 style="DISPLAY: none; FONT-SIZE: 12px; Z-INDEX: 2000; POSITION: absolute"><!--插入文字可视化-->文字内容(支持HTML标签):<SELECT id=textstyle><OPTION value="<b></b>" selected>粗体字<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>">流动字幕</OPTION></SELECT><INPUT class=bon2 style="WIDTH: 75px" 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)' type=button value=加入该标签><BR><TEXTAREA id=txt1 style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 300px; BORDER-BOTTOM: black 1px solid; HEIGHT: 100px"></TEXTAREA><BR> <CENTER>字体:<SELECT id=wenziziti style="WIDTH: 100px" onchange=gengxinwenzi.click()> <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 id=wenzibiankuang type=checkbox CHECKED> 背景透明<INPUT id=beijingtouming type=checkbox CHECKED><BR>颜色:<INPUT onmousemove=gengxinwenzi.click() onmousedown=rndcolor(this.id) id=wenziyanse style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 50px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px" value=#000000> 背景:<INPUT onmousemove=gengxinwenzi.click() onmousedown=rndcolor(this.id) id=wenzibeijing style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 50px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px" value=#FFFFFF> 大小:<SELECT id=wenzidaxiao style="WIDTH: 50px" onchange=gengxinwenzi.click()><OPTION selected>12 <SCRIPT>var temp101="";for(i=1;i<101;i++){temp101+="<option>"+i;}document.write(temp101)</SCRIPT> </OPTION></SELECT><BR><SELECT id=duiqi><OPTION value="" selected>左对齐<OPTION value=text-align:center>居中<OPTION value=text-align:right>右对齐</OPTION></SELECT><SELECT id=zijiange><OPTION selected>默认字间隔度 <SCRIPT>document.write(temp101)</SCRIPT> </OPTION></SELECT><SELECT id=hangjiange><OPTION selected>默认行隔度 <SCRIPT>var temp1="";for(i=1;i<10;i+=0.5){temp1=temp1+"<option>"+i.toPrecision(2)}document.write(temp1)</SCRIPT> </OPTION></SELECT><BR><INPUT class=bon2 id=gengxinwenzi onclick=txt1.style.color=wenziyanse.value;txt1.style.backgroundColor=wenzibeijing.value;txt1.style.fontSize=wenzidaxiao.options[wenzidaxiao.selectedIndex].text;txt1.style.fontFamily=wenziziti.options[wenziziti.selectedIndex].text; type=button value=浏览更新><INPUT class=bon2 onclick=charuwenzi() type=button value=插入><INPUT class=bon2 onclick="wenzi1.style.display='none'" type=button value=取消> </SPAN><SPAN id=tupian1 style="DISPLAY: none; Z-INDEX: 2000; POSITION: absolute"><!--插入图片可视化--><INPUT id=file1 style="WIDTH: 400px" type=file><BR> <CENTER><SELECT id=duibi><OPTION selected>默认对比度 <SCRIPT>document.write(temp101)</SCRIPT> </OPTION></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</OPTION></SELECT><SELECT id=liangdu><OPTION selected>默认亮度 <SCRIPT>temp1="";for(i=-0.5;i<0.6;i+=0.1){temp1+="<option>"+new Number(i).toFixed(1)};document.write(temp1)</SCRIPT> </OPTION></SELECT><SELECT id=mohudu><OPTION selected>默认模糊度 <SCRIPT>document.write(temp101)</SCRIPT> </OPTION></SELECT><BR><INPUT id=heibai onclick=duibi.disabled=this.checked;secai.disabled=this.checked;liangdu.disabled=this.checked type=checkbox><LABEL for=heibai>黑白效果</LABEL> <INPUT id=bolang type=checkbox><LABEL for=bolang>波浪效果</LABEL> <INPUT id=xguangzhao type=checkbox><LABEL for=xguangzhao>X光照效果</LABEL> <INPUT id=fancai type=checkbox><LABEL for=fancai>反彩效果</LABEL><BR><INPUT class=bon2 onclick=charutupian() type=button value=插入><INPUT class=bon2 onclick="tupian1.style.display='none'" type=button value=取消> </SPAN><SPAN id=gaoji1 style="DISPLAY: none; Z-INDEX: 2000; POSITION: absolute"><!--改源码改可视化--><TEXTAREA id=txt2 style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 400px; BORDER-BOTTOM: black 1px solid; HEIGHT: 150px"></TEXTAREA><BR> <CENTER><INPUT class=bon2 onclick="gaojiobj.outerHTML=txt2.value.replace(/ onmouse/g,' fywvmltempstring_onmouse').replace(/ onkey/g,' fywvmltempstring_onkey').replace(/ (onclick|ondblclick)/g,' fywvmltempstring_');gaojiobj=null;gaoji1.style.display='none'" type=button value=修改><INPUT class=bon2 onclick='gaoji1.style.display="none"' type=button value=取消> </SPAN><v:line id=biaoshi style="DISPLAY: none; Z-INDEX: 2000; POSITION: absolute" from = "0,0" to = "0,24.75pt" strokecolor = "red" strokeweight = "4pt"><!--红色箭头用于标识目标ID对象--><v:Stroke startarrow = "none" endarrow = "block"></v:Stroke></v:line><SPAN id=shijian1 style="DISPLAY: none; Z-INDEX: 2000; POSITION: absolute; TEXT-ALIGN: left"><!--可视化的事件编程-->编程辅助键入工具:<INPUT class=bon2 style="WIDTH: 70px" onclick="thefile1.click();if(document.all.thefile1.value!='')shijiantxt.value+='file:///'+document.all.thefile1.value.replace(/\\/g,'/')" type=button value=文件路径><INPUT id=thefile1 style="DISPLAY: none" type=file> <INPUT onmousedown=rndcolor(this.id) id=yansedaima style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 54px; BORDER-BOTTOM: black 1px solid; HEIGHT: 20px" value=颜色代码><BR><TEXTAREA id=shijiantxt style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 300px; BORDER-BOTTOM: black 1px solid; HEIGHT: 100px"></TEXTAREA><BR>简易程序:<SELECT id=jianyichengxu style="WIDTH: 170px"> <OPTGROUP style="COLOR: red" label=网页控制类-通用><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:abc@abc.com'">发送电子邮件<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()>关闭窗口</OPTION></OPTGROUP> <OPTGROUP style="COLOR: green" label=外观控制类-基本通用><OPTION value="strokeweight='5'" selected>边框粗度改变<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</OPTION></OPTGROUP> <OPTGROUP style="COLOR: blue" label=Css外观控制类-通用><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></OPTGROUP> <OPTGROUP style="COLOR: purple" label=流线动画程序-逐渐类> <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>逐渐边框粗度减少</OPTION></OPTGROUP> <OPTGROUP style="COLOR: purple" label=流线动画程序-重复类> <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'">重复背景颜色交替</OPTION></OPTGROUP> <OPTGROUP style="COLOR: purple" label=流线动画程序-随机类> <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)>图型随机旋转</OPTION></OPTGROUP> <OPTGROUP style="COLOR: purple" label=流线动画程序-滤镜类> <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">光辉效果减弱</OPTION><OPTGROUP style="COLOR: purple" label=流线动画程序-特技类> <OPTION value="fill.color='blue';%%%.fill.type='gradient';%%%.fill.angle-=2">背景右向渐变特技<OPTION value="fill.color='blue';%%%.fill.type='gradient';%%%.fill.angle+=2">背景左向渐变特技</OPTION></OPTGROUP></SELECT><INPUT class=bon2 style="WIDTH: 75px" 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)+";");}' type=button value=增加该效果> <BR>可用属性:<SELECT id=shijianallobj1 style="WIDTH: 170px"></SELECT><INPUT class=bon2 style="WIDTH: 75px" onclick="shijiantxt.focus();document.selection.createRange().text=(objorthis+"."+shijianallobj1.options[shijianallobj1.selectedIndex].text+"='';")" type=button value=更改该属性> <BR><SELECT id=shijianallobj2></SELECT><INPUT class=bon2 style="WIDTH: 75px" onclick="shijiantxt.focus();document.selection.createRange().text=(objorthis+"."+shijianallobj2.options[shijianallobj2.selectedIndex].text+"='';")" type=button value=更改该属性> <BR> <CENTER><INPUT class=bon2 onclick="shijianfun();shijianobj=null;shijiantxt.value='';" type=button value=修改><INPUT class=bon2 onclick='shijiantxt.value="";shijian1.style.display="none"' type=button value=取消> </SPAN><SPAN id=yuandaima style="DISPLAY: none; Z-INDEX: 2000; ; LEFT: expression(document.body.offsetWidth/2-(this.offsetWidth/2)); POSITION: absolute; ; TOP: expression(document.body.offsetHeight/2-(this.offsetHeight/2))"><!--所有原代码--><TEXTAREA id=txt3 style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 550px; BORDER-BOTTOM: black 1px solid; HEIGHT: 270px"></TEXTAREA><BR><TEXTAREA id=txt3_top style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 550px; COLOR: gray; BORDER-BOTTOM: black 1px solid; HEIGHT: 130px" readOnly></TEXTAREA><BR> <CENTER><INPUT class=bon2 onclick="window.clipboardData.setData('text',txt3_top.value+txt3.value+'</BODY>\n</HTML>');alert('已将数据复制到系统剪切板')" type=button value=复制全部> <INPUT class=bon2 onclick="div1.innerHTML=txt3.value.replace(/ onmouse/g,' fywvmltempstring_onmouse').replace(/ onkey/g,' fywvmltempstring_onkey').replace(/ (onclick|ondblclick)/g,' fywvmltempstring_');yuandaima.style.display='none'" type=button value=更新修改> <INPUT class=bon2 onclick="yuandaima.style.display='none'" type=button value=取消> </SPAN><SPAN id=jiaoben style="DISPLAY: none; Z-INDEX: 2000; POSITION: absolute; TEXT-ALIGN: left"><!--我的脚本仓库--><script id="myscript" language="javascript"><BR><TEXTAREA id=jiaobentxt style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 350px; BORDER-BOTTOM: black 1px solid; HEIGHT: 250px"></TEXTAREA><BR></script><BR><INPUT class=bon2 onclick="wodejiaoben=jiaobentxt.value;jiaoben.style.display='none'" type=button value=修改> <INPUT class=bon2 onclick="jiaoben.style.display='none'" type=button value=取消> </SPAN><SPAN id=menu1 style="DISPLAY: none; Z-INDEX: 2000; POSITION: absolute"><!--弹出菜单--><INPUT class=bon2 onclick='zz+=1;thisobj.style.zIndex=zz;menu1.style.display="none"' type=button value=置前><BR><INPUT class=bon2 onclick='zz2-=1;thisobj.style.zIndex=zz2;menu1.style.display="none"' type=button value=置后><BR><INPUT class=bon2 id=fuzhi onclick='div1.innerHTML+=thisobj.outerHTML;if(div1.lastChild.id!=""){nextid++;div1.lastChild.id="fyw"+nextid};if(fuzhitixing==false){alert("复制完成,请使用选移功能拖动");fuzhitixing=true};menu1.style.display="none";for(i=0;i<huabi.length;i++)huabi[i].className="bon2";huabi[19].className="bon1";div1.style.cursor="hand"' type=button value=复制><BR><INPUT class=bon2 id=shanchu style="BORDER-BOTTOM: navy 3px solid" onclick='thisobj.outerHTML="";menu1.style.display="none"' type=button value=删除><BR><INPUT class=bon2 onmousemove='showhelp("放大单个图型对象,对钢笔和记忆点2无效")' onclick='fangda(thisobj);menu1.style.display="none"' type=button value=放大><BR><INPUT class=bon2 onmousemove='showhelp("缩小单个图型对象,对钢笔和记忆点2无效")' onclick='suoxiao(thisobj);menu1.style.display="none"' type=button value=缩小><BR><INPUT class=bon2 onmousemove='showhelp("增加Css滤镜的fliph的左右反转效果")' onclick='thisobj.style.filter+="fliph ";menu1.style.display="none"' type=button value=反转><BR><INPUT class=bon2 onmousemove='showhelp("增加Css滤镜的flipy的上下颠倒效果")' style="BORDER-BOTTOM: navy 3px solid" onclick='thisobj.style.filter+="flipv ";menu1.style.display="none"' type=button value=颠倒><BR><INPUT class=bon2 style="BACKGROUND-COLOR: gray" onclick='menu1.style.display="none"' type=button value=取消> </SPAN><IFRAME id=web style="DISPLAY: none" src="about:blank"></IFRAME><!--实现保存--> <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%"> <TBODY> <TR> <TD> <DIV id=div1 style="WIDTH: 100%; CURSOR: crosshair; COLOR: black; HEIGHT: 100%; BACKGROUND-COLOR: #eeeeee"></DIV></TD></TR></TBODY></TABLE> <TABLE onmouseup='moveok=0;releaseCapture();if(parseInt(this.style.top)<-10){alert("工具栏高度不能低于页面最顶部");this.style.top=20}' onmousemove=if(moveok==1){this.style.left=event.x-xx;this.style.top=event.y-yy;} onmousedown='if(event.srcElement.tagName=="CENTER"&&event.button==1){moveok=1;setCapture();xx=event.x-this.offsetLeft;yy=event.y-this.offsetTop;}' id=gongjulan3 style="Z-INDEX: 3; LEFT: 1px; POSITION: absolute; TOP: 20px" cellSpacing=0 cellPadding=0 align=center bgColor=#619ce7> <TBODY> <TR> <TD style="BORDER-RIGHT: gray 1px solid; PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px"> <CENTER style="FONT-WEIGHT: bold; WIDTH: 100%; CURSOR: move; HEIGHT: 100%">编程工具(4) <INPUT class=bon2 onmousemove='showhelp("关闭不是必要的[编程\\动画]创作工具栏,进行FYWVml3.0时代基本的静态图像绘制作业")' style="WIDTH: 20px; HEIGHT: 15px" onclick="gongjulan3.style.display='none';xianshigongju.style.display=''" type=button value=×></CENTER></TD></TR> <TR> <TD><INPUT class=bon2 onmousemove='showhelp("下载由FYW原创的编程利器《网络程序员伴侣(Lshdic)2005》软件<br>在本地专业的配合FlashVml1.0开发复杂的游戏、动画程序")' style="WIDTH: 105px" 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=')" type=button value=下载LD2005></TD></TR> <TR> <TD><INPUT class=bon2 onmousemove='showhelp("在这个[我的Script脚本仓库]里,你可以自行编写编程所需的函数、变量<br>以便于此后进行事件编程、动画创作时动态调用")' style="WIDTH: 105px" onclick="jiaoben.style.left=event.x+50;jiaoben.style.top=event.y;jiaobentxt.value=wodejiaoben;jiaoben.style.display==''?jiaoben.style.display='none':jiaoben.style.display=''" type=button value=我的脚本仓库></TD></TR> <TR> <TD><BUTTON class=bon2 onmousemove='showhelp("查看及修改指定图型用以编程的ID属性")' id=huabi style="WIDTH: 105px">定义ID标识</BUTTON></TD></TR> <TR> <TD><LABEL onmousemove='showhelp("当复选框打勾时,每绘制一个新图型回自动为该图型增加一个随机ID方便编写程序")' for=yesaddnextid value="绘图时自动添加">绘图时自动添加</LABEL><INPUT onmousemove='showhelp("当复选框打勾时,每绘制一个新图型会自动为该图型增加一个随机ID方便编写程序")' id=yesaddnextid type=checkbox CHECKED value=绘图时自动添加></TD></TR> <TR> <TD><LABEL onmousemove='showhelp("当复选框打勾时,会防止你的事件、动画程序在运行出错时弹出错误提示")' for=pingbicuowu value="运行时屏蔽错误">运行时屏蔽错误</LABEL><INPUT onmousemove='showhelp("当复选框打勾时,会防止你的事件、动画程序在运行出错时弹出错误提示")' id=pingbicuowu type=checkbox CHECKED value=运行时屏蔽错误></TD></TR> <TR> <TD style="BORDER-RIGHT: gray 1px solid; PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px"> <CENTER style="FONT-WEIGHT: bold; WIDTH: 100%; CURSOR: move; HEIGHT: 100%">事件编程(5)</CENTER></TD></TR> <TR> <TD><BUTTON class=bon2 onmousemove='showhelp("onclick")' id=huabi style="WIDTH: 105px">左键单击时</BUTTON></TD></TR> <TR> <TD><BUTTON class=bon2 onmousemove='showhelp("ondblclick")' id=huabi style="WIDTH: 105px">双击左键时</BUTTON></TD></TR> <TR> <TD><BUTTON class=bon2 onmousemove='showhelp("onmousedown")' id=huabi style="WIDTH: 105px">鼠标按下时</BUTTON></TD></TR> <TR> <TD><BUTTON class=bon2 onmousemove='showhelp("onmouseup")' id=huabi style="WIDTH: 105px">鼠标弹起时</BUTTON></TD></TR> <TR> <TD><BUTTON class=bon2 onmousemove='showhelp("onmouseover")' id=huabi style="WIDTH: 105px">鼠标靠近时</BUTTON></TD></TR> <TR> <TD><BUTTON class=bon2 onmousemove='showhelp("onmouseout")' id=huabi style="WIDTH: 105px">鼠标离开时</BUTTON></TD></TR> <TR> <TD><BUTTON class=bon2 onmousemove='showhelp("onmousemove")' id=huabi style="WIDTH: 105px">鼠标移动时</BUTTON></TD></TR> <TR> <TD style="BORDER-RIGHT: gray 1px solid; PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px"> <CENTER style="FONT-WEIGHT: bold; WIDTH: 100%; CURSOR: move; HEIGHT: 100%">动画创作(6)</CENTER></TD></TR> <TR> <TD><SELECT id=allid onmouseover=getallid() style="WIDTH: 105px" onchange=biaoshifun(this.options[this.selectedIndex].text); size=5><OPTION selected>可用的对象ID</OPTION></SELECT></TD></TR> <TR> <TD><SELECT id=miaozhong style="WIDTH: 105px" onchange=fenzhong.selectedIndex=0><OPTION selected>秒钟动作 <SCRIPT>tempstr1="";for(i=1;i<600;i++){if(i%60!=0)tempstr1+=("<option>"+i);}document.write(tempstr1)</SCRIPT> </OPTION></SELECT></TD></TR> <TR> <TD><SELECT id=fenzhong style="WIDTH: 105px" onchange=miaozhong.selectedIndex=0><OPTION selected>分钟动作 <SCRIPT>tempstr1="";for(i=1;i<201;i++){tempstr1+=("<option>"+i);}document.write(tempstr1)</SCRIPT> </OPTION></SELECT></TD></TR> <TR> <TD align=middle><LABEL for=xunhuan1>结束时循环播放</LABEL><INPUT id=xunhuan1 type=checkbox CHECKED></TD></TR> <TR> <TD><INPUT class=bon2 onmousemove='showhelp("编写侦式动画程序")' style="WIDTH: 105px" 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)" type=button value=编辑动画程序></TD></TR> <TR> <TD style="BORDER-RIGHT: gray 1px solid; PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px"> <CENTER style="FONT-WEIGHT: bold; WIDTH: 100%; CURSOR: move; HEIGHT: 100%">流线动画创作(7)</CENTER></TD></TR> <TR> <TD><SELECT id=dianchi1 style="WIDTH: 105px" 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 onmousemove='showhelp("支持小数点数字,最小值0.1")' id=qishimiao style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 54px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px" value=1></TD></TR> <TR> <TD>毫秒步长<INPUT onmousemove='showhelp("最小值建议为10毫秒速度最快")' id=haomiaobuchang style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 54px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px" value=20></TD></TR> <TR> <TD>结束秒钟<INPUT onmousemove='showhelp("支持小数点数字,最小值0.3")' id=jieshumiaozhong style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 54px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px" value=5></TD></TR> <TR> <TD><INPUT class=bon2 onmousemove='showhelp("编辑存储于["+dianchi1.options[dianchi1.selectedIndex].text+"]的流线动画程序")' style="WIDTH: 105px" 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)" type=button value=编辑动画程序></TD></TR></TD></TR></TBODY></TABLE> <TABLE onmouseup='moveok=0;releaseCapture();if(parseInt(this.style.top)<-10){alert("工具栏高度不能低于页面最顶部");this.style.top=1}' onmousemove=if(moveok==1){this.style.left=event.x-xx;this.style.top=event.y-yy;} onmousedown='if(event.srcElement.tagName=="CENTER"&&event.button==1){moveok=1;setCapture();xx=event.x-this.offsetLeft;yy=event.y-this.offsetTop;}' style="; LEFT: expression(document.body.offsetWidth/2-(this.offsetWidth/2)); POSITION: absolute; TOP: 1px" cellSpacing=0 cellPadding=0 align=center bgColor=#619ce7> <TBODY> <TR> <TD style="BORDER-RIGHT: gray 1px solid; PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px"> <CENTER style="FONT-WEIGHT: bold; WIDTH: 100%; CURSOR: move; HEIGHT: 100%">画笔选择(1) <FONT onmousemove='showhelp("当您已熟悉FlashVml1.0的静态绘图功能时<br>可以进一步领略FlashVml1.0对程序、动画的设计功能")' id=xianshigongju onmouseover='this.style.color="yellow"' style="DISPLAY: none; FONT-WEIGHT: bold; CURSOR: hand" onclick="gongjulan3.style.display='';this.style.display='none';" onmouseout='this.style.color=""' value="显示编程\动画工具栏">显示编程\动画工具栏</FONT></CENTER></TD> <TD style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; BORDER-LEFT: white 1px solid; PADDING-TOP: 3px"> <CENTER style="FONT-WEIGHT: bold; WIDTH: 100%; CURSOR: move; HEIGHT: 100%">图型编辑(3) <FONT onmousemove='showhelp("播放FlashVml1.0的功能演示影片")' onmouseover='this.style.color="red"' style="FONT-WEIGHT: bold; CURSOR: hand; COLOR: yellow" onclick="window.open('flashvml/helpflash.htm');" onmouseout='this.style.color="yellow"' value="入门动画教程">入门动画教程</FONT> <FONT onmousemove='showhelp("入门必看,FlashVml1.0图解教程")' onmouseover='this.style.color="red"' style="FONT-WEIGHT: bold; CURSOR: hand; COLOR: yellow" onclick="window.open('flashvml/helptool.htm');" onmouseout='this.style.color="yellow"' value="入门图解教程">入门图解教程</FONT></CENTER></TD></TR> <TR> <TD style="BORDER-RIGHT: gray 1px solid"><BUTTON class=bon2 onmousemove='showhelp("选择后,按住鼠标左键在画板内写字、划画")' id=huabi>铅笔<BUTTON class=bon1 onmousemove='showhelp("选择后,按住鼠标左键在画板内移动光标即可")' id=huabi>直线<BUTTON class=bon2 id=huabi>圆型<BUTTON class=bon2 id=huabi>长方型<BUTTON class=bon2 onmousemove='showhelp("选择后,以点击鼠标左键的方式决定每条线的路径,所绘制的图型由N条线段组成")' id=huabi>记忆线<BUTTON class=bon2 onmousemove='showhelp("新增功能,所绘制的图型为一个整体,由于程序更新烦琐,画图时画笔移动速率若低")' id=huabi>记忆线2</BUTTON><BR><BUTTON class=bon2 id=huabi>圆矩型<BUTTON class=bon2 onmousemove='showhelp("调整弧度,请使用[改源码]功能修改其startangle、endangle属性或使用旋转更改弧缺即可")' id=huabi>弧型<BUTTON class=bon2 onmousemove='showhelp("选择后,在画板内单击鼠标左键即在目标位置插入文字")' id=huabi>文字<BUTTON class=bon2 onmousemove='showhelp("支持HTTP协议的网上资源")' id=huabi>图片</BUTTON><BUTTON class=bon2 onmousemove='showhelp("绘制由FlashVml提供了几种固有图型")' id=huabi>高级图型</BUTTON> </TD> <TD style="BORDER-LEFT: white 1px solid"><BUTTON class=bon2 onmousemove='showhelp("选择后,左键按住画板内需要移动的图形,而后移动鼠标即可")' id=huabi>选移<BUTTON class=bon2 id=huabi>调大小<BUTTON class=bon2 onmousemove='showhelp("不支持放大[线条]一类的图型")' id=huabi>放大<BUTTON class=bon2 onmousemove='showhelp("不支持缩小[线条]一类的图型")' id=huabi>缩小<BUTTON class=bon2 id=huabi>阴影<BUTTON class=bon2 onmousemove='showhelp("同样可以在次定义画笔的粗度,甚至去掉边框")' id=huabi>边框<BUTTON class=bon2 onmousemove='showhelp("[线条、图片、文字]不支持填充")' id=huabi>填充</BUTTON><BR><BUTTON class=bon2 onmousemove='showhelp("[图片、文字]不支持立体")' id=huabi>立体<BUTTON class=bon2 onmousemove='showhelp("可以设置目标透明度、透明效果、是否空心")' id=huabi>透明度<BUTTON class=bon2 onmousemove='showhelp("以文字充当目标图型的边框")' id=huabi>文字化<BUTTON class=bon2 onmousemove='showhelp("旋转幅度可单独依据鼠标左右、上下移动控制,<b>注意:</b>Rotation旋转效果在运行时必须由脚本控制")' id=huabi>旋转<BUTTON class=bon2 onmousemove='showhelp("选择后,点击想要隐藏的图型(该图型在设计时可见,运行时不可见),该功能用于配合动画初期布局设计")' id=huabi>隐藏<BUTTON class=bon2 onmousemove='showhelp("高级功能,可以查看或直接修改目标图形的VML源代码")' id=huabi>改源码</BUTTON> </TD> <TR></TR></TBODY></TABLE> <TABLE onmouseup='moveok=0;releaseCapture();if(parseInt(this.style.top)<-10){alert("工具栏高度不能低于页面最顶部");this.style.top=1}' onmousemove=if(moveok==1){this.style.left=event.x-xx;this.style.top=event.y-yy;} onmousedown='if(event.srcElement.tagName=="CENTER"&&event.button==1){moveok=1;setCapture();xx=event.x-this.offsetLeft;yy=event.y-this.offsetTop;}' style="; LEFT: expression(document.body.offsetWidth-this.offsetWidth-20); POSITION: absolute; TOP: 1px" cellSpacing=0 cellPadding=3 align=center bgColor=#619ce7> <TBODY> <TR> <TD> <CENTER style="FONT-WEIGHT: bold; WIDTH: 100%; CURSOR: move; HEIGHT: 100%">画笔设置(2)</CENTER></TD></TR> <TR> <TD>笔边粗度 <SELECT id=bibiancudu style="WIDTH: 54px"><OPTION selected>1 <SCRIPT>temp1="";for(i=2;i<101;i++){temp1+="<option>"+i}document.write(temp1)</SCRIPT> </OPTION></SELECT><BR>画笔颜色 <INPUT onmousedown=rndcolor(this.id) id=huabiyanse style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 54px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px" value=#000000><BR>画笔背景 <INPUT onmousedown=rndcolor(this.id) id=huabibeijing style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 54px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px" value=#FFFFFF><BR>X Y 坐标 <INPUT id=zuobiao style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 54px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px" disabled value=0,0><BR>网页背景 <INPUT onmousedown=rndcolor(this.id) id=wangyebeijing onkeyup=div1.style.backgroundColor=this.value; style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 54px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px" value=#EEEEEE><BR>图像标题 <INPUT id=tuxiangbiaoti style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 54px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px" value=吾之画> <SPAN id=huxing1 style="DISPLAY: none"><BR> <CENTER style="WIDTH: 100%; CURSOR: move; HEIGHT: 100%">弧型基本参数</CENTER><BR>360°起点 <SELECT id=yuanqueqidian style="WIDTH: 54px" onchange=arc1.startangle=this.options[this.selectedIndex].text><OPTION selected>300 <SCRIPT>temp1="";for(i=-360;i<370;i+=10){temp1+="<option>"+i}document.write(temp1)</SCRIPT> </OPTION></SELECT><BR>360°终点 <SELECT id=yuanquezhongdian style="WIDTH: 54px" onchange=arc1.endangle=this.options[this.selectedIndex].text><OPTION selected>0 <SCRIPT>temp1="";for(i=-360;i<370;i+=10){temp1+="<option>"+i}document.write(temp1)</SCRIPT> </OPTION></SELECT> </SPAN><SPAN id=tianchong1 style="DISPLAY: none"><BR> <CENTER style="WIDTH: 100%; CURSOR: move; HEIGHT: 100%">填充基本参数</CENTER><BR>普通背景 <INPUT onmousedown=rndcolor(this.id) id=tianchongbeijing style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 54px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px"><BR>使用渐变背景<INPUT id=usejianbian type=checkbox><BR>上下渐变 <INPUT type=radio CHECKED name=jianbianyangshi><BR>斜向渐变 <INPUT type=radio name=jianbianyangshi><BR>渐变色一 <INPUT onmousedown=rndcolor(this.id) id=jianbianse1 style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 55px; COLOR: red; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px" value=#FF0000><BR>渐变色二 <INPUT onmousedown=rndcolor(this.id) id=jianbianse2 style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 55px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px" value=#FFFFFF> </SPAN><SPAN id=liti1 style="DISPLAY: none"><BR> <CENTER style="WIDTH: 100%; CURSOR: move; HEIGHT: 100%">立体基本参数</CENTER><BR>后向伸展 <SELECT id=houxiangshenzhan style="WIDTH: 54px"><OPTION selected>20 <SCRIPT>temp1="";for(i=0;i<101;i++){temp1+="<option>"+i}document.write(temp1)</SCRIPT> </OPTION></SELECT><BR>前向伸展 <SELECT id=qianxiangshenzhan style="WIDTH: 54px"><OPTION selected>0 <SCRIPT>document.write(temp101)</SCRIPT> </OPTION></SELECT><BR>偏移左边 <SELECT id=pianyizuobian style="WIDTH: 54px"><OPTION selected>0 <SCRIPT>temp1="";for(i=-100;i<0;i+=1){temp1+="<option>"+i};document.write(temp1);document.write(temp101)</SCRIPT> </OPTION></SELECT><BR>偏移上边 <SELECT id=pianyishangbian style="WIDTH: 54px"><OPTION selected>0 <SCRIPT>temp1="";for(i=-100;i<0;i+=1){temp1+="<option>"+i};document.write(temp1);document.write(temp101)</SCRIPT> </OPTION></SELECT><BR>立体颜色 <INPUT onmousedown=rndcolor(this.id) id=litiyanse style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 54px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px"><BR></SPAN><SPAN id=biankuang1 style="DISPLAY: none"><BR> <CENTER style="WIDTH: 100%; CURSOR: move; HEIGHT: 100%">边框基本参数</CENTER><BR>边框粗度 <SELECT id=biankuangcudu style="WIDTH: 54px"> <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 id=biankuangyangshi style="WIDTH: 54px"><OPTION selected>none<OPTION>dash<OPTION>dashdot<OPTION>dot<OPTION>longdash<OPTION>longdashdot<OPTION>shortdash<OPTION>shortdashdot<OPTION>shortdashdotdot<OPTION>longdashdotdot<OPTION>shortdot</OPTION></SELECT><BR>起点尖头 <SELECT id=qidianjiantou style="WIDTH: 54px"><OPTION selected>none<OPTION>block<OPTION>classic<OPTION>diamond<OPTION>open<OPTION>oval</OPTION></SELECT><BR>终点尖头 <SELECT id=zhongdianjiantou style="WIDTH: 54px"><OPTION selected>none<OPTION>block<OPTION>classic<OPTION>diamond<OPTION>open<OPTION>oval</OPTION></SELECT><BR>边框颜色 <INPUT onmousedown=rndcolor(this.id) id=biankuangyanse style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 54px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px"><BR></SPAN><SPAN id=yinying1 style="DISPLAY: none"><BR> <CENTER style="WIDTH: 100%; CURSOR: move; HEIGHT: 100%">阴影基本参数</CENTER><BR>左右偏移 <SELECT id=zuoyoupianyi style="WIDTH: 54px"> <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 id=shangxiapianyi style="WIDTH: 54px"> <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 onmousedown=rndcolor(this.id) id=yinyingyanse style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 54px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px"><BR></SPAN><SPAN id=touming1 style="DISPLAY: none"><BR> <CENTER style="WIDTH: 100%; CURSOR: move; HEIGHT: 100%">透明度设置</CENTER><BR>图形透明度<INPUT type=radio CHECKED name=bantouming><BR>透明系数 <SELECT id=toumingxishu style="WIDTH: 54px"> <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 id=toumingyangshi style="WIDTH: 54px"><OPTION value=0 selected>淡化所有<OPTION value=1>左右渐淡<OPTION value=2>圆型渐淡<OPTION value=3>矩型渐淡</OPTION></SELECT><BR>完全空心化<INPUT type=radio name=bantouming> </SPAN><SPAN id=fangdasuoxiao1 style="DISPLAY: none"><BR> <CENTER style="WIDTH: 100%; CURSOR: move; HEIGHT: 100%">放大与缩小</CENTER><BR>针对宽高 <INPUT type=radio CHECKED name=kuanyugao><BR>仅针对宽 <INPUT type=radio name=kuanyugao><BR>仅针对高 <INPUT type=radio name=kuanyugao><BR>按照规则 <SELECT id=anzhaoguize style="WIDTH: 54px"><OPTION style="BACKGROUND-COLOR: #dddddd" selected>按照像素<OPTION value=2>2分之1 <SCRIPT>temp1="";for(i=3;i<11;i++){temp1+=("<option value='"+i+"'>"+i+"分之1");}document.write(temp1)</SCRIPT> </OPTION></SELECT><BR>按照像素 <SELECT id=anzhaoxiangsu style="WIDTH: 54px"> <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=wenzihua1 style="DISPLAY: none"><BR> <CENTER style="WIDTH: 100%; CURSOR: move; HEIGHT: 100%">文字化基本设置</CENTER><BR>文字大小 <SELECT id=wenzidaxiao2 style="WIDTH: 54px"><OPTION selected>50 <SCRIPT>document.write(temp101)</SCRIPT> </OPTION></SELECT><BR>文字颜色 <INPUT onmousedown=rndcolor(this.id) id=wenziyanse2 style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 54px; BORDER-BOTTOM: black 1px solid; HEIGHT: 17px" value=#000000><BR>字体 <SELECT id=ziti2 style="WIDTH: 80px"> <SCRIPT>document.write(zitistr)</SCRIPT> </SELECT><BR></SPAN><SPAN id=gaojituxing1 style="DISPLAY: none"><BR> <CENTER style="WIDTH: 100%; CURSOR: move; HEIGHT: 100%">选择一种高级图形</CENTER><BR>三角型 <INPUT type=radio CHECKED name=xuanzetuxing><BR>四角型 <INPUT type=radio name=xuanzetuxing><BR>五角星 <INPUT type=radio name=xuanzetuxing><BR>六角型 <INPUT type=radio name=xuanzetuxing><BR>十字架 <INPUT type=radio name=xuanzetuxing><BR>交叉线 <INPUT type=radio name=xuanzetuxing><BR><INPUT class=bon2 onmousemove='showhelp("使用[记忆线2]功能可以手工绘制复杂图型,图型为一个整体")' style="WIDTH: 110px" onclick='for(i=0;i<huabi.length;i++)huabi[i].className="bon2";huabi[13].className="bon1";gaojituxing1.style.display="none"' type=button value=手工绘制> </SPAN><SPAN id=yincang1 style="DISPLAY: none"><BR> <CENTER style="WIDTH: 100%; CURSOR: move; HEIGHT: 100%">决定怎么处理图型</CENTER><BR>隐藏目标图型 <INPUT type=radio CHECKED name=isyincang><BR>取消目标隐藏 <INPUT type=radio name=isyincang><BR></SPAN></TD></TR> <TR> <TD> <CENTER style="FONT-WEIGHT: bold; WIDTH: 100%; CURSOR: move; HEIGHT: 100%">全局操作(8)</CENTER></TD></TR> <TR> <TD><INPUT class=bon2 onmousemove='showhelp("快捷键Ctrl+Z")' id=chexiaock onclick="if(youbiao>0){div1.innerHTML=chexiao[youbiao];youbiao-=1;fanchexiao1=2}" type=button value=撤消><INPUT class=bon2 onmousemove='showhelp("快捷键Ctrl+Y")' id=fanchexiaock onclick="if(youbiao<chexiao.length-fanchexiao1){youbiao+=fanchexiao1;fanchexiao1=1;div1.innerHTML=chexiao[youbiao];}else if(chexiao.length-youbiao==1&&youbiao>0){div1.innerHTML=zuizhongxingtai}" type=button value=反撤消><BR><INPUT class=bon2 onmousemove='showhelp("快捷键Ctrl+↑")' id=fangda onclick="for(i=0;i<div1.all.length;i++){try{fangda(div1.all[i])}catch(e){}}" type=button value=放大><INPUT class=bon2 onmousemove='showhelp("快捷键Ctrl+↓")' id=suoxiao onclick="for(i=0;i<div1.all.length;i++){try{suoxiao(div1.all[i])}catch(e){}}" type=button value=缩小><BR><INPUT class=bon2 onmousemove='showhelp("快捷键←")' id=zuoyi onclick="for(i=0;i<div1.all.length;i++){try{div1.all[i].style.left=parseInt(div1.all[i].style.left)-10;}catch(e){}}" type=button value=左移><INPUT class=bon2 onmousemove='showhelp("快捷键→")' id=youyi onclick="for(i=0;i<div1.all.length;i++){try{div1.all[i].style.left=parseInt(div1.all[i].style.left)+10;}catch(e){}}" type=button value=右移><BR><INPUT class=bon2 onmousemove='showhelp("快捷键↑")' id=shangyi onclick="for(i=0;i<div1.all.length;i++){try{div1.all[i].style.top=parseInt(div1.all[i].style.top)-10;}catch(e){}}" type=button value=上移><INPUT class=bon2 onmousemove='showhelp("快捷键↓")' id=xiayi onclick="for(i=0;i<div1.all.length;i++){try{div1.all[i].style.top=parseInt(div1.all[i].style.top)+10;}catch(e){}}" type=button value=下移><BR><INPUT class=bon2 onmousemove='showhelp("快捷键回车键")' id=shiyunxing onclick=yunxingfun() type=button value=试运行><INPUT class=bon2 onmousemove='showhelp("快捷键ESC")' id=esc onclick=quanbuqingchu() type=button value=全部清除> </TD></TR> <TR> <TD> <CENTER style="FONT-WEIGHT: bold; WIDTH: 100%; CURSOR: move; HEIGHT: 100%">系统功能(9)</CENTER></TD></TR> <TR> <TD><INPUT class=bon2 onmousemove='showhelp("把已保存的VML代码粘贴修改实现打开,或者手写修改当前编辑器内的所有VML代码")' style="WIDTH: 110px" onclick=chakandaima() type=button value=查看及修改源码><BR><INPUT class=bon2 onmousemove='showhelp("将编辑器图型保存为后缀为htm的文件,注意保存时请使用Unicode保存")' style="WIDTH: 110px" onclick=savefile() type=button value=保存为文件><BR><INPUT class=bon2 onmousemove='showhelp("FlashVml特有的录像功能,动态的以你指定的速度播放您整个绘图过程")' style="WIDTH: 110px" onclick=luxiang() type=button value=播放作业录像><BR><INPUT class=bon2 onmousemove='showhelp("打开FlashVml的帮助文件,帮助文件有详细的教程、演示范例、FlashVml版本及原理信息")' id=fywvmlhelp style="WIDTH: 110px" onclick='window.open("flashvml/index.htm")' type=button value=FlashVml帮助手册><BR> <CENTER style="WIDTH: 100%; CURSOR: move; HEIGHT: 100%"><A onmousemove='showhelp("访问Lshdic200X、FYWVml、FlashVml原作者的主页-蓝丽网")' style="FONT-WEIGHT: bold" href='javascript:alert("因商务繁忙,蓝丽网(http://www.lshdic.com)自2004年8月份后暂时关闭,有事请联系作者QQ:21152530,作者其他IT作品请暂时登陆google.com、baidu.com、51js.com进行搜索、下载");http://www.lshdic.com' target=_target value="Original author">原作:FYW(风云舞)</A> </CENTER></TD></TR></TBODY></TABLE> <TABLE id=colortab style="DISPLAY: none; Z-INDEX: 3000; WIDTH: 100px; POSITION: absolute; HEIGHT: 100px; BACKGROUND-COLOR: red" cellSpacing=0 cellPadding=0> <TBODY> <TR> <TD id=colorid></TD></TR></TBODY></TABLE> <SCRIPT language=jscript> var bi=4 //定义当前使用的画笔工具,3为铅笔 var bitext="" //定义当前使用的画笔工具的名称,用以判断 var color1='#000000',color2='#000000',size1=0 //定义缺剩的画笔颜色及画笔填充颜色和笔边粗度 var xx=0,yy=0,zz=1000 //定义缺剩的X及Y坐标 var isok=false //区分画笔起点是否在DIV内,超出范围则无效 var moveobj=null,ckleft=0,cktop=0,ckwid=0,ckhei=0,ckto="" //被移动物件、调整大小物件的引用 var poly1=null,oldvalue="",oldx=0,oldy=0 //为了完成记忆点,创建一个可折式线段 var gaojiobj=null,shijianobj=null //为了完成“改源码”“事件编程”功能,绑定被修改对象 var thisobj=null //为了完成各种基本编辑功能,如“置前”“复制”“删除”等 var zz2=1000 //为完成“置后”功能,zz2为负数 var huxingtixing=false,qianbitixing=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绘制一副完整动画所用的时间,单位秒 setInterval('worktime++',1000) //使用时间增加 function addnextid(){ //该函数使每一个对象有一个xx1\xx2\xx3\xx*递加形式的ID标记 if(yesaddnextid.checked==true){nextid++;return " id='fyw"+nextid+"'"}else{return ""} } function statstime(endtimestrings1){ //控制在状态栏显示[当前秒钟/影片结束秒钟] if(endtimestrings1==""){ return "" }else{return "<script>\nvar exptime=0;endtime="+endtimestrings1+";\nfunction statuschange(){\nif(top.location==self.location)setInterval('exptime++;window.status=\"The FlashVml Play Time\\\'s \"+exptime+endtime+\" Seconds.\"',1000)\n}\n;;;/script>\n"} } function div1.onmousedown(){ colortab.style.display="none" //关闭颜色对话框 div1.setCapture(); //画笔绘画开始,锁定鼠标 color1=huabiyanse.value //定义画笔基本颜色 color2=huabibeijing.value; //定义画笔背景颜色 isok=true; size1=bibiancudu.options[bibiancudu.selectedIndex].text //定义画笔基本粗度 xx=event.x;yy=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; if(event.button==1){ switch(bitext){ case "选移": //选移 if(event.srcElement.parentElement.id=="div1"){moveobj=event.srcElement;ckleft=xx-parseInt(moveobj.style.left);cktop=yy-parseInt(moveobj.style.top);} break; case "调大小": //调大小 if(event.srcElement.parentElement.id=="div1"){ if(event.srcElement.tagName.toLowerCase()=="polyline"){alert('无法对polyline线段大小调整!请用改源码功能调整其points=""属性值');return false} moveobj=event.srcElement; ckleft=parseInt(moveobj.style.left);cktop=parseInt(moveobj.style.top);ckwid=moveobj.offsetWidth;ckhei=moveobj.offsetHeight} break; case "弧型": //弧型 arc1.style.left=event.x;arc1.style.top=event.y;arc1.style.width=0;arc1.style.height=0;arc1.style.display=""; break; case "直线": //直线 line1.style.left=event.x;line1.style.top=event.y;line1.to="0,0";line1.style.display="" break; case "铅笔": //铅笔 if(poly1==null&&event.button==1){ oldx=xx;oldy=yy poly1=div1.appendChild(document.createElement("<v:polyline filled='false' 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=event.x;oval1.style.top=event.y;oval1.style.width=0;oval1.style.height=0;oval1.style.display="" break; case "长方型": //长方型 rect1.style.left=event.x;rect1.style.top=event.y;rect1.style.width=0;rect1.style.height=0;rect1.style.display="" break; case "圆矩型": //圆矩型 roundrect1.style.left=event.x;roundrect1.style.top=event.y;roundrect1.style.width=0;roundrect1.style.height=0;roundrect1.style.display="" break; case "文字": //文字 wenzi1.style.left=event.x;wenzi1.style.top=event.y;wenzi1.style.display="" break; case "图片": //图片 tupian1.style.left=event.x;tupian1.style.top=event.y;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(event.srcElement.parentElement.id=="div1"){moveobj=event.srcElement;event.srcElement.xuanzhuan="0";} break; case "高级图型": //高级图型 if(xuanzetuxing[0].checked==true){ //绘制三角形 moveobj=document.createElement("<v:Polyline points='60 60 90 0 120 60 60 60' style='position:absolute;z-index:"+zz+";left:"+(xx-60)+";top:"+(yy-60)+";' fillcolor='"+color2+"' strokecolor='"+color1+"' strokeweight='"+size1+"'"+addnextid()+"/>") div1.appendChild(moveobj);oldx=60;oldy=60} if(xuanzetuxing[1].checked==true){ //绘制四角形 moveobj=document.createElement("<v:Polyline points='100 50 150 0 200 50 150 100 100 50' style='position:absolute;z-index:"+zz+";left:"+(xx-100)+";top:"+(yy-50)+";' fillcolor='"+color2+"' strokecolor='"+color1+"' strokeweight='"+size1+"'"+addnextid()+"/>") div1.appendChild(moveobj);oldx=100;oldy=50} if(xuanzetuxing[2].checked==true){ //绘制五角星 moveobj=document.createElement("<v:Polyline points='40 40 85 45 95 0 105 45 150 40 110 64 135 110 96 75 60 110 82 65 40 40' style='position:absolute;z-index:"+zz+";left:"+(xx-40)+";top:"+(yy-40)+";' fillcolor='"+color2+"' strokecolor='"+color1+"' strokeweight='"+size1+"'"+addnextid()+"/>") div1.appendChild(moveobj);oldx=40;oldy=40} if(xuanzetuxing[3].checked==true){ //绘制六角型 moveobj=document.createElement("<v:Polyline points='40 40 60 20 100 20 120 40 120 80 100 100 60 100 40 80 40 40' style='position:absolute;z-index:"+zz+";left:"+(xx-40)+";top:"+(yy-40)+";' fillcolor='"+color2+"' strokecolor='"+color1+"' strokeweight='"+size1+"'"+addnextid()+"/>") div1.appendChild(moveobj);oldx=40;oldy=40} if(xuanzetuxing[4].checked==true){ //绘制十字架 div1.insertAdjacentHTML("beforeEnd","<v:line to='80,0' style='position:absolute;z-index:"+zz+";left:"+xx+";top:"+yy+";' strokecolor='"+color1+"' strokeweight='"+size1+"'"+addnextid()+"/><v:line to='0,80' style='position:absolute;z-index:"+(zz+1)+";left:"+(xx+40)+";top:"+(yy-40)+";' strokecolor='"+color1+"' strokeweight='"+size1+"'"+addnextid()+"/>");zz+=1} if(xuanzetuxing[5].checked==true){ //绘制交叉线 div1.insertAdjacentHTML("beforeEnd","<v:line to='60,60' style='position:absolute;z-index:"+zz+";left:"+xx+";top:"+yy+";' strokecolor='"+color1+"' strokeweight='"+size1+"'"+addnextid()+"/><v:line to='60,-60' style='position:absolute;z-index:"+(zz+1)+";left:"+xx+";top:"+(yy+60)+";' strokecolor='"+color1+"' strokeweight='"+size1+"'"+addnextid()+"/>");zz+=1} break; } }} function div1.onmousemove(){ tempx=event.x;tempy=event.y;temp1=0;temp2=0 zuobiao.value=tempx+","+tempy if(bitext=="铅笔"&&poly1!=null&&event.button==1){ //铅笔 oldvalue=oldvalue+","+(tempx-oldx)+","+(tempy-oldy);poly1.points.value=oldvalue }else if(bitext=="记忆线"&&poly1!=null){ //记忆线 poly1.to=(tempx-xx)+","+(tempy-yy) }else if(bitext=="记忆线2"&&poly1!=null){ //记忆线2 div1.lastChild.outerHTML=div1.lastChild.outerHTML.replace(/ points = \".*?\"/,' points=\"'+oldvalue+","+(tempx-oldx)+","+(tempy-oldy)+'\"');poly1=div1.lastChild } if(event.button==1){ switch(bitext){ case "选移": //选移 if(moveobj!=null){moveobj.style.left=tempx-ckleft;moveobj.style.top=tempy-cktop} break; case "调大小": //调大小 if(moveobj!=null){ 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(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)} 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=(tempx+tempy)/2} break; case "高级图型": //高级图型 if(moveobj!=null){moveobj.style.left=tempx-oldx;moveobj.style.top=tempy-oldy;} break; }}} function div1.onmouseup(){ savechexiao() document.releaseCapture();if(isok==false){forerr();return false};isok=false;menu1.style.display='none' tempx=event.x;tempy=event.y;divwid=div1.offsetWidth;divhei=div1.offsetHeight if(tempx>document.body.offsetWidth){forerr();return alert("X坐标越界")} if(tempy>document.body.offsetHeight){forerr();return alert("Y坐标越界")} if(bitext=="铅笔"&&poly1!=null){ poly1.points.value=oldvalue;oldvalue="";poly1=null; if(qianbitixing==false){alert('因本软件的铅笔功能尚不完善,所绘制出的铅笔图形位置会稍有偏差(即你当前绘制的这个图形位置有偏差),但本软件可以纠正其至正当位置,然后请您使用[选移]功能手工移动到您所期望的图形位置');qianbitixing=true} div1.innerHTML=div1.innerHTML }else if(event.srcElement.parentElement.id=="div1"&&event.button==2&&poly1==null){ menu1.style.left=tempx;menu1.style.top=tempy;menu1.style.display='';thisobj=event.srcElement } else if(event.button==2&&bitext=="记忆线"&&poly1!=null){ poly1.outerHTML="";poly1=null }else if(event.button==2&&bitext=="记忆线2"&&poly1!=null){ div1.lastChild.outerHTML=div1.lastChild.outerHTML.replace(/ points = \".*?\"/,' points=\"'+oldvalue+'\"');oldvalue='';poly1=null } if(event.button==1){ var ebj=event.srcElement switch(bitext){ case "选移": //选移 if(moveobj!=null&&parseInt(moveobj.style.left)<0&&moveobj.tagName!="polyline"){forerr();return alert("被移动物体X1超出界限")} if(moveobj!=null&&parseInt(moveobj.style.left)+moveobj.offsetWidth-2>document.body.offsetWidth&&moveobj.tagName!="polyline"){forerr();return alert("被移动物体X2超出界限")} if(moveobj!=null&&parseInt(moveobj.style.top)<0&&moveobj.tagName!="polyline"){forerr();return alert("被移动物体Y1超出界限")} if(moveobj!=null&&parseInt(moveobj.style.top)+moveobj.offsetHeight-2>document.body.offsetHeight&&moveobj.tagName!="polyline"){forerr();return alert("被移动物体Y2超出界限")} moveobj=null break; case "调大小": //调大小 moveobj=null;ckto="" break; case "弧型": //弧型 arc1.style.display='none'; if (Math.abs(tempx-xx)<=1||Math.abs(tempy-yy)<=1)return false div1.appendChild(document.createElement("<v:arc startangle='"+yuanqueqidian.options[yuanqueqidian.selectedIndex].text+"' endangle='"+yuanquezhongdian.options[yuanquezhongdian.selectedIndex].text+"' 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("弧型已绘出,调整弧度 startangle='' endangle='' 请使用“改源码”功能或使用旋转功能更改弧缺")} 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='"+(event.x-xx)+","+(event.y-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(!usejianbian.checked){ebj.fillcolor=tianchongbeijing.value}else{ temp1=jianbianyangshi[0].checked?'gradient':'gradientradial' ebj.fillcolor=jianbianse2.value ebj.fill.color2=jianbianse1.value ebj.fill.type=temp1 }} break; case "立体": //立体 if(ebj.parentElement.id=="div1"){ ebj.extrusion.color=litiyanse.value ebj.extrusion.backdepth=houxiangshenzhan.options[houxiangshenzhan.selectedIndex].text ebj.extrusion.foredepth=qianxiangshenzhan.options[qianxiangshenzhan.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"){ ebj.strokecolor=biankuangyanse.value biankuangcudu.options[biankuangcudu.selectedIndex].text=='0'?ebj.stroked=false:event.srcElement.strokeweight=biankuangcudu.options[biankuangcudu.selectedIndex].text 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 txt2.value=ebj.outerHTML.replace(/></g,">\n<").replace(/ = /g,"=").replace(/\: /g,":").replace(/\; /g,";").replace(/fywvmltempstring_/g,"").replace("<?xml:namespace prefix=v />\n","");gaoji1.style.left=event.x;gaoji1.style.top=event.y;gaoji1.style.display='' } break; case "文字化": //文字化 if(ebj.parentElement.id=="div1"){ str1=prompt("请输入一段用于图型轨迹填充的文字(如果您的VML插件版本过低,中文可能无法显示)","") if(!str1)return false;if(str1=='')return false if(str1.indexOf("'")!=-1)return alert("输入的文字中不可含有违禁符号 ' 单引号") temp2=ebj.innerHTML.replace(/<v\:path .*<\/v:path>/gi,'').replace(/<v\:textpath .*<\/v:textpath>/gi,'') ebj.fillcolor=wenziyanse2.value 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"){ 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.filled=true ebj.style.filter="alpha(opacity="+toumingxishu.options[toumingxishu.selectedIndex].text+",style="+toumingyangshi.options[toumingyangshi.selectedIndex].value+")" }else{ebj.style.filter="";ebj.filled=false} } break; case "放大": //放大 if(ebj.parentElement.id=="div1")fangda(ebj) break; case "缩小": //缩小 if(ebj.parentElement.id=="div1")suoxiao(ebj) break; case "旋转": //旋转 if(moveobj!=null)moveobj.xuanzhuan=(tempx+tempy)/2; moveobj=null break; case "高级图型": //高级图型 moveobj=null;oldx=0;oldy=0 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.fywvmltempstring_onclick!=null)shijiantxt.value=ebj.fywvmltempstring_onclick;else shijiantxt.value="" break; case "双击左键时": if(ebj.fywvmltempstring_ondblclick!=null)shijiantxt.value=ebj.fywvmltempstring_ondblclick;else shijiantxt.value="" break; case "鼠标按下时": if(ebj.fywvmltempstring_onmousedown!=null)shijiantxt.value=ebj.fywvmltempstring_onmousedown;else shijiantxt.value="" break; case "鼠标弹起时": if(ebj.fywvmltempstring_onmouseup!=null)shijiantxt.value=ebj.fywvmltempstring_onmouseup;else shijiantxt.value="" break; case "鼠标靠近时": if(ebj.fywvmltempstring_onmouseover!=null)shijiantxt.value=ebj.fywvmltempstring_onmouseover;else shijiantxt.value="" break; case "鼠标离开时": if(ebj.fywvmltempstring_onmouseout!=null)shijiantxt.value=ebj.fywvmltempstring_onmouseout;else shijiantxt.value="" break; case "鼠标移动时": if(ebj.fywvmltempstring_onmousemove!=null)shijiantxt.value=ebj.fywvmltempstring_onmousemove;else shijiantxt.value="" break; }shijian1.style.left=event.x;shijian1.style.top=event.y;shijian1.style.display=""} break; }zuizhongxingtai=div1.innerHTML;}} function document.onmouseup(){ if(event.srcElement.tagName=="BUTTON"&&event.button==1){ colortab.style.display="none" //关闭颜色对话框 event.srcElement.blur();if(event.srcElement.className=="bon1")return true; for(i=0;i<huabi.length;i++)huabi[i].className="bon2" event.srcElement.className="bon1"; oldbitext=bitext bitext=event.srcElement.innerText; switch(bitext){ //定义鼠标形状 case "调大小":case "旋转":div1.style.cursor="move";break; case "图片":case "文字":case "高级图型":case "记忆线":case "记忆线2":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=="高级图型"?gaojituxing1.style.display='':gaojituxing1.style.display='none' bitext=="弧型"?huxing1.style.display='':huxing1.style.display='none' bitext=="放大"||bitext=="缩小"?fangdasuoxiao1.style.display='':fangdasuoxiao1.style.display='none' bitext=="文字化"?wenzihua1.style.display='':wenzihua1.style.display='none' if(bitext=="填充"){tianchong1.style.display='';tianchongbeijing.value=tianchongbeijing.value==''?huabibeijing.value:tianchongbeijing.value}else{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&&oldbitext=="记忆线"){ //清除记忆线 if(poly1.tagName.toLowerCase()=="polyline"){poly1.points.value=oldvalue;oldvalue="";poly1=null;}else{poly1.outerHTML="";oldvalue="";poly1=null;} }else if(poly1!=null&&oldbitext=="记忆线2"){ //清除记忆线2 if(poly1.tagName.toLowerCase()=="polyline"){div1.lastChild.outerHTML=div1.lastChild.outerHTML.replace(/ points = \".*?\"/,' points=\"'+oldvalue+'\"');oldvalue='';poly1=null}else{poly1.outerHTML="";oldvalue="";poly1=null;} } wenzi1.style.display='none';tupian1.style.display='none';gaoji1.style.display='none';menu1.style.display='none' shijian1.style.display='none';jiaoben.style.display='none' }} 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 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' 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 }else{ //针对分钟编程 fen1=parseInt(fenzhong.options[fenzhong.selectedIndex].text) fenarray[fen1]=str1 }return false; }else{ //针对流线进行动画编程 dianchitxt[dianchi]=str1;dianchitime1[dianchi]=qishimiao.value dianchitime2[dianchi]=haomiaobuchang.value;dianchitime3[dianchi]=jieshumiaozhong.value return false }} switch(bitext){ //针对事件目标对象编程时 case "左键单击时": shijianobj.fywvmltempstring_onclick=shijiantxt.value break; case "双击左键时": shijianobj.fywvmltempstring_ondblclick=shijiantxt.value break; case "鼠标按下时": shijianobj.fywvmltempstring_onmousedown=shijiantxt.value break; case "鼠标弹起时": shijianobj.fywvmltempstring_onmouseup=shijiantxt.value break; case "鼠标靠近时": shijianobj.fywvmltempstring_onmouseover=shijiantxt.value break; case "鼠标离开时": shijianobj.fywvmltempstring_onmouseout=shijiantxt.value break; case "鼠标移动时": shijianobj.fywvmltempstring_onmousemove=shijiantxt.value break; }} function fangda(tempElement){ //放大函数 if(tempElement.tagName=="line"||tempElement.tagName.toLowerCase()=="polyline")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){ //缩小函数 if(tempElement.tagName=="line"||tempElement.tagName.toLowerCase()=="polyline")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=event.x-100;colortab.style.top=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';div1.style.backgroundColor=document.all('wangyebeijing').value;document.all('wangyebeijing').style.color='black'></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 forerr(){ if(moveobj!=null&&bitext=="选移"){moveobj.style.left=xx-ckleft;moveobj.style.top=yy-cktop;ckleft=0;cktop=0;moveobj=null} if(moveobj!=null&&bitext=="调大小"){ if(moveobj.tagName!="line"){moveobj.style.left=ckleft;moveobj.style.top=cktop;moveobj.style.width=ckwid;moveobj.style.height=ckhei;}else{moveobj.to=ckto;} ckleft=0;cktop=0;ckwid=0;ckhei=0;ckto="";moveobj=null } line1.style.display='none';oval1.style.display='none';rect1.style.display='none';roundrect1.style.display='none';arc1.style.display='none'; } 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 document.onkeydown(){ //实现各种快捷键 if(event.srcElement.tagName!='TEXTAREA'){ with(document.all){ event.ctrlKey&&event.keyCode==90?chexiaock.click(): event.ctrlKey&&event.keyCode==89?fanchexiaock.click(): event.ctrlKey&&event.keyCode==38?fangda.click(): event.ctrlKey&&event.keyCode==40?suoxiao.click(): !event.ctrlKey&&event.keyCode==37?zuoyi.click(): !event.ctrlKey&&event.keyCode==38?shangyi.click(): !event.ctrlKey&&event.keyCode==39?youyi.click(): !event.ctrlKey&&event.keyCode==40?xiayi.click(): !event.ctrlKey&&event.keyCode==27?esc.click(): !event.ctrlKey&&event.keyCode==13?shiyunxing.click():str1=1} }} 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("'+miaoarray[i].replace(/\"/g,'\\\"')+'","'+i+'000");\n');miaoend=i*1000}} for(i=0;i<fenarray.length;i++){if(fenarray[i]!=null){timestring1+=('setTimeout("'+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+'="'+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>\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'} str1="<HTML xmlns:v>\n<HEAD>\n<META http-equiv='Content-Type' content='text/html;charset=gb2312'>\n<TITLE>"+tuxiangbiaoti.value+"</TITLE>\n<META name='Gemeratpr' content='FlashVml1.0(在线Flash&Vml动画画板)'>\n<META name='KeyWords' content='"+tuxiangbiaoti.value.replace(/'/g,"")+" FlashVml FlashVml1.0(在线Flash&Vml动画画板) FYWVml Flash Vml Vml图像画板 在线图像画板 在线画板 FlashVml1.0 FYW 风云舞 动画回放 教学录影回放'>\n<STYLE>\nv\\:*{behavior:url(#default#VML);}\n</STYLE>\n"+str3.replace(";;;","<")+"</HEAD>\n<BODY bgcolor="+wangyebeijing.value+">\n<bgsound loop=1 id=bgsound1>\n"+timestring1.replace(/\%\^\&\!\!/g,'<')+liuxianstr1.replace(/\%\^\&\!\!/g,'<')+onloadstr(true).replace(";;;","<")+"\n" if(yesgetall==true){ return str1+"<!--This is Project Use The FlashVml1.0,Used "+(worktime/60).toFixed(2)+" minutes-->\n"+div1.innerHTML.replace(/></g,'>\n<').replace(/ = /g,'=').replace(/\: /g,':').replace(/\; /g,';').replace(/fywvmltempstring_/g,'').replace('<?xml:namespace prefix=v />\n','')+"</BODY>\n</HTML>" }else{return str1} } function yunxingfun(){ //试运行函数 win1=window.open("","lshdic1");win1.document.open() win1.document.write(getallcode(true)); win1.document.close();win1.moveTo(0,0);win1.resizeTo(screen.availWidth,screen.availHeight) } function savefile(){ //保存文件函数 web.document.clear();web.document.open();web.document.write(getallcode(true));web.document.execCommand('SaveAs',false,tuxiangbiaoti.value);web.document.clear();web.document.close() } function chakandaima(){ //查看所有原代码函数 txt3_top.value=getallcode(false) txt3.value='<!--This is Project Use The FlashVml1.0,Used '+(worktime/60).toFixed(2)+' minutes-->\n'+div1.innerHTML.replace(/></g,'>\n<').replace(/ = /g,'=').replace(/\: /g,':').replace(/\; /g,';').replace(/fywvmltempstring_/g,'').replace('<?xml:namespace prefix=v />\n','');yuandaima.style.display==''?yuandaima.style.display='none':yuandaima.style.display='' } function quanbuqingchu(){ //全部清除函数 if(!confirm("这将会清除[所有图型、侦式动画程序、流线动画程序],但不清空[我的脚本仓库]\n\n你确认要清除吗?"))return false savechexiao();div1.innerHTML="";poly1=null;thisobj=null; 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) //删除动画存储数组 } luxiangyoubiao=0 function luxiang(){ //播放录像函数 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>"+tuxiangbiaoti.value+" - 教学录影回放</TITLE>\n<META name='Gemeratpr' content='FlashVml1.0(在线Flash&Vml动画画板)'>\n<META name='KeyWords' content='"+tuxiangbiaoti.value.replace(/'/g,"")+" FlashVml FlashVml1.0(在线Flash&Vml动画画板) FYWVml Flash Vml Vml图像画板 在线图像画板 在线画板 FlashVml1.0 FYW 风云舞 动画回放 教学录影回放'>\n<STYLE>\nv\\:*{behavior:url(#default#VML);}\n</STYLE>\n"+statstime("").replace(';;;','<')+"</HEAD>\n<BODY bgcolor="+wangyebeijing.value+">\n<bgsound loop=1 id=bgsound1>\n"+onloadstr(false).replace("}\n;;;","\nluxiangstart();\n}\n<")+"\n<!--This is Project Use The FlashVml1.0,Used "+(worktime/60).toFixed(2)+" minutes-->\n"+str0.replace(';;;','<')+div1.innerHTML.replace(/></g,'>\n<').replace(/ = /g,'=').replace(/\: /g,':').replace(/\; /g,';').replace(/fywvmltempstring_/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) }} </SCRIPT> <DIV onmousemove='this.style.display="none"' id=showdiv style="TABLE-LAYOUT: fixed; PADDING-RIGHT: 2px; DISPLAY: none; PADDING-LEFT: 2px; FONT-SIZE: 12px; Z-INDEX: 5000; FILTER: alpha(style=1,finishopacity=55); LEFT: 0px; PADDING-BOTTOM: 2px; COLOR: navy; PADDING-TOP: 2px; WHITE-SPACE: nowrap; POSITION: absolute; TOP: 0px; BACKGROUND-COLOR: #edfffc"></DIV> <SCRIPT> var oldtext="加速变量",dingshi=null,closetime function showhelp(thetext){ try{ if(thetext!=oldtext){ clearTimeout(closetime) if(showdiv.style.display=='none'){showdiv.style.left=event.x-3;showdiv.style.top=event.y+document.body.scrollTop+18;} oldtext=thetext; event.srcElement.tagName=="BUTTON"?temp1=event.srcElement.innerText:temp1=event.srcElement.value; showdiv.innerHTML="<B>"+temp1+":</b>"+thetext; if(event.x>document.body.offsetWidth/2){ showdiv.style.left=event.x-(oldtext.length*12);showdiv.style.top=event.y+document.body.scrollTop+28; }else{showdiv.style.left=event.x-3;showdiv.style.top=event.y+document.body.scrollTop+18;} showdiv.style.display='' closetime=setTimeout('showdiv.style.display="none"',5000) } }catch(e){} } </SCRIPT> </CENTER></CENTER></CENTER></CENTER></CENTER></BODY></HTML>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
标签集:
TAGS:
回复
Comments
(
)
点击
Count
(
)
回复
Comments
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}
回复Comments
作者:
{commentrecontent}