极品--FlashVml(璀灿之星)4.5 - web上的PhotoShop

<HTML xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<HEAD>
<META http-equiv="Content-Type" content="text/html;Charset=gb2312">
<META name="GENERATOR content="网络程序员伴侣(Lshdic)2005">
<META name="KeyWords" content="flashvml,璀灿之星,vml极道教程,vml,vmlflash,FYW,lshdic">
<title>FlashVml(璀灿之星)4.5 - 多媒体Vml.Web(矢量2D/3D网页、图形图像、动画、UI、DVML编程、可视化开发系统)</title>
<link rel=stylesheet href="rs/fvml_css.css" type="text/css">
</HEAD>
<BODY
οnscrοll='a_bsleft=document.body.scrollLeft;a_bstop=document.body.scrollTop;try{if(a_srtime==null&&hb_scroll==true)a_srtime=setTimeout("mvgj()",500)}catch(e){}'
οncοntextmenu='var t_evt=event.srcElement;if(t_evt.tagName!="TEXTAREA"){if(t_evt.tagName=="INPUT"){if(t_evt.type=="text")return true}return false}'
onselectstart='var t_evt=event.srcElement.tagName;if(t_evt!="TEXTAREA"&&t_evt!="INPUT")return false'
onhelp='helplai();return false'
style='margin:0;cursor:default;border:1 solid black;scrollbar-base-color:purple;scrollbar-shadow-color:white;scrollbar-highlight-color:white;scrollbar-arrow-color:white;' vlink=#3732CD link=#3732CD>
<base target=_blank>
<script>
function window.onerror(){return true}
function jiazai(f_jztext){
window.status="FlashVml(璀灿之星)4.5 -- "+f_jztext+"资源加载中...."
}
var a_bsleft=0,a_bstop=0  //记录body的滚动条位置,为了加速
var a_srtime=null  //滚动条相关定时器
var n="none"  //节省字数变量
function mvgj(){  //定时移动工具栏配合滚动条位置
var t_bw=document.body.offsetWidth
gjlan1.style.left=a_bsleft+t_bw/2-(gjlan1.offsetWidth/2)
gjlan2.style.left=a_bsleft+t_bw-gjlan2.offsetWidth-20
gjlan3.style.left=a_bsleft+3;gjlan2.style.top=a_bstop;gjlan3.style.top=a_bstop+25
clearTimeout(a_srtime);a_srtime=null
}
function window.onresize(){
if(a_srtime==null&&hb_scroll==true)a_srtime=setTimeout("mvgj()",500)
}

function adlist(f_min,f_max,f_step,f_qtxt,f_htxt,f_tofixed){  //下拉菜单数据追加
if(f_step==undefined)f_step=1; else f_step=new Number(f_step)
f_qtxt==undefined?f_qtxt="":f_qtxt=f_qtxt
f_htxt==undefined?f_htxt="":f_htxt=f_htxt
f_tofixed==undefined?f_tofixed=0:f_tofixed=f_tofixed;
;
var t_ary1=[],t_sms=0
if(f_min>f_max){
for(i=f_min;i>f_max;i-=f_step){t_ary1[t_sms++]=(f_qtxt+new String(new Number(i).toFixed(f_tofixed))+f_htxt)}
}else{
for(i=f_min;i<f_max;i+=f_step){t_ary1[t_sms++]=(f_qtxt+new String(new Number(i).toFixed(f_tofixed))+f_htxt)}
}
document.write("<option>"+t_ary1.join(',').replace(/,/g,"<option>"))
}

var uidom=new ActiveXObject("Microsoft.XMLDOM")
uidom.async=false;
uidom.load("rs/fvml_uixml.xml");
var datadom=new ActiveXObject("Microsoft.XMLDOM")
datadom.async=false
datadom.load("rs/fvml_dataxml.xml");
if(uidom.parseError.errorCode!=0)alert("异常:UI-XML文件加载错误!程序将无法正常运行!")
if(datadom.parseError.errorCode!=0)alert("异常:DATA-XML文件加载错误!程序将无法正常运行!")
function getxml(f_nodename,f_whoxml){  //获取XML节点数据
var t_dom=uidom
if(f_whoxml==1){
t_dom=datadom
return t_dom.getElementsByTagName(f_nodename)[0].text
}
var t_ay=f_nodename.split(",")
if(t_ay.length!=0){
for(i=0;i<t_ay.length;i++){
document.write(t_dom.getElementsByTagName(t_ay[i])[0].text+"\n\n")
}}else{
document.write(t_dom.getElementsByTagName(f_nodename)[0].text+"\n\n")
}}
function gets(snumber){  //获取写给用户的脚本
var tempdom=datadom.getElementsByTagName("s"+snumber),tempstr=[],tempstr1="",tempdom2=tempdom.length
for(i=0;i<tempdom2;i++){
if(tempdom[i].getAttributeNode("d")!=null){tempstr1=(" jiazai="+tempdom[i].getAttributeNode("d").nodeValue);}else tempstr1=""
tempstr[i]="<option value="+tempdom[i].text+tempstr1+">"+tempdom[i].getAttributeNode("v").nodeValue
}
document.write(tempstr.join(""))
}
function getxvalue(whonode1,snumber1,snumber2){    //XML属性获取
return datadom.getElementsByTagName("styles")[snumber1].getAttributeNode("v"+snumber2).nodeValue
}

jiazai("UI动画与CG图形")
getxml("cg1,helpmenu,about,popmenu,showtitle,server")  //输出启动欢迎动画、F1帮助菜单、关于对话框、右键菜单、动态提示、服务器端程序
jiazai("UI用户交互可视化物件")
getxml("keshihua")  //输出各种动态可视化设计工具
jiazai("UI界面驱动程序引擎")
</script><script language="javascript" src="rs/fvml_uijs.js"></script>
<script>
jiazai("UI界面存取程式加载中")

 //画板初期状态存储变量
var fvmlhb="4.5"
var hb_ys="#EEEEEE",hb_bt="我的作品",hb_zdh=true,hb_gdt=0
var hb_gdtcor="purple",hb_addid=true,hb_killerr=true
var hb_coks=1,hb_wg="50px",hb_wgse="#5fb6f6",hb_hy=true
var hb_scroll=true,hb_tishi=true,hb_jzwid=450,hb_jzhei=260
var hb_jzcor="navy",hb_jz=true,hb_jmfg=1,hb_ysj="未知"
var hb_usemenu=true,hb_jmbx=1,hb_gjtm=false
var mvtime=null,nonos="none"
function delcks(){   //删除COOKIES
var dates = new Date();
dates.setDate(dates.getDate()-1000);
document.cookie="fvml1=1;expires="+dates.toGMTString()
}
function setcks(){   //设定COOKIES
var dates=new Date()
dates.setDate(dates.getDate()+365) //cookies过期时间1年
document.cookie="fvml1="+huabutab.width+","+hb_ys+","+hb_gdtcor+","+hb_bt+","+hb_zdh+","+hb_gdt+","+yesaddnextid.checked+","+pbcw.checked+","+xunhuan1.checked+","+hb_coks+","+hb_wg+","+hb_wgse+","+hb_hy+","+hb_scroll+","+hb_tishi+","+hb_jzwid+","+hb_jzhei+","+hb_jzcor+","+hb_jz+","+hb_jmfg+","+hb_ysj+","+hb_usemenu+","+hb_jmbx+","+hb_gjtm+";expires="+dates.toGMTString()
}
function getcks(){   //读取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(",")  //逗号分割
if(cks.length!=24){  //如果cks小于本版正常的数组数,那么就删除、使用默认设置
alert(getxml("msg2",1));delcks();return false
}
hb_coks=cks[9]
if(hb_coks==0){delcks();return false}  //如果是cookies不存储,删除COOKIES
huabutab.width=cks[0];huabutab.height=cks[0]  //设置启动值
div1.style.backgroundColor=cks[1];hb_ys=cks[1]
document.body.style.scrollbarBaseColor=cks[2];hb_gdtcor=cks[2]
hb_bt=cks[3]
if(cks[4]=="false")hb_zdh=false
hb_gdt=cks[5]
if(cks[6]=="false")yesaddnextid.checked=false
if(cks[7]=="false")pbcw.checked=false
if(cks[8]=="false")xunhuan1.checked=false
if(cks[12]=="false")hb_hy=false
if(cks[13]=="false")hb_scroll=false
if(cks[14]=="false")hb_tishi=false
hb_jzwid=cks[15];hb_jzhei=cks[16];hb_jzcor=cks[17];
if(cks[18]=="false")hb_jz=false
hb_wg=cks[10];hb_wgse=cks[11];hb_jmfg=cks[19]
hb_ysj=cks[20]
if(cks[21]=="false")hb_usemenu=false
hb_jmbx=cks[22]
if(cks[23]=="true")hb_gjtm=true
if(hb_jmfg!=1||hb_jmbx!=1||hb_gjtm!=false)csschange(hb_jmfg,hb_jmbx,hb_gjtm)
}

if(screen.width<1024||screen.height<768){alert(getxml("msg1",1));}
var fvmlfun="",fvml2fun="",stchangfun=""  //决定是否在编译window.onload()时插入相关函数脚本
var xx=0,yy=0,moveok=0
var loadjbstr=""  //存储用户对onload()函数所做的修改
function onloadstr(wtonload){
if(wtοnlοad==true){jtempp="\n"+fvmlfun+fvml2fun+stchangfun}else{jtempp=""}
if(loadjbstr!=""){jtempp2="\n"+loadjbstr+"\n"}else{jtempp2=""}
return "<script>\n//页面启动更新函数\nvar ltime=null,ltext='if(document.readyState!=\"complete\"){status=status+\".\"}else{clearInterval(ltime);status=\"艺术家:"+hb_ysj+",出品日期:"+new Date().toLocaleString()+"\"}';\nstatus='页面资源正在加载,请等待.'\nltime=setInterval(ltext,200)\nfunction window.onload(){"+jtempp+jtempp2+"}\n;;;/script>"
}
jiazai("工具栏1(编程、动画设计器)加载中")
</script>
<TABLE class=tooltab cellspacing=0 cellpadding=0 align=center style='left:3;top:20;z-index:2999' οnmοusedοwn='if(event.srcElement.tagName=="CENTER"&&event.button==1){moveok=1;setCapture();xx=event.x-offsetLeft;yy=event.y-offsetTop;}' οnmοusemοve="if(moveok==1){style.left=event.x-xx;style.top=event.y-yy;}" οnmοuseup='moveok=0;releaseCapture();if(parseInt(style.top)<-10){alert("工具栏高度不能低于页面最顶部");style.top=20}if(event.srcElement.tagName=="CENTER"&&event.button==2){style.zIndex==2999?style.zIndex=6000:style.zIndex=2999;}' id=gjlan3>
<tr><Td style='padding:3;'><center id=cen>编程工具(4) <input type=button class=bon2 value=× style='width:20;height:15' οnmοusemοve='sos("关闭不是必要的[编程\\动画]创作工具栏,进行静态绘图作业")' οnclick="gjlan3.style.display=n;xsgj.style.display=''"></td></tr>
<Tr><td>
<input type=button class=bon3 value=我的脚本仓库 style=width:105 οnmοusemοve='sos("在[我的Script脚本仓库]里,你可以自行编写编程所需的函数、变量<br>以便此后进行事件编程、动画创作时调用")' οnclick="jb.style.left=a_bsleft+event.x+100;jb.style.top=a_bstop+event.y+30;jbtxt.value=wodejb;jb_load.value=loadjbstr;jb.style.display==''?jb.style.display=n:jb.style.display=''"></td></tr>
<Tr><td><input type=button class=bon3 value=下载LD5 style=width:52 οnmοusemοve='sos("下载由作者原创的编程利器《网络程序员伴侣(Lshdic)2005》软件<br>在本地专业的配合FlashVml开发复杂的游戏、动画程序")' οnclick="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=')"><button class=bon2 id=hb style=width:53 οnmοusemοve='sos("查看及修改指定图形用以编程的ID属性")'>定义ID</td></tr>
<Tr><td><label for='yesaddnextid' οnmοusemοve='sos("当复选框打勾时,每绘制一个新图形会自动为该图形增加一个顺序ID方便编写程序")' value='绘图时自动添加'>绘图时自动添加</label><input type=checkbox checked id=yesaddnextid></td></tr>
<Tr><td><label for='pbcw' οnmοusemοve='sos("当复选框打勾时,会防止你的事件、动画程序在运行出错时弹出错误提示")' value='运行时屏蔽错误'>运行时屏蔽错误</label><input type=checkbox checked id=pbcw></td></tr>
<tr><Td style='padding:3;'><center id=cen>事件编程(5)</td></tr>
<Tr><td><select style=width:70 id=selectsj οnchange='for(i=0;i<hb.length;i++)if(hb[i].className!="bon2")hb[i].className="bon2";hbsj.className="bon1";div1.style.cursor="hand";'>
<option value=click>左键单击时
<option value=dblclick>双击左键时
<option value=mousedown>鼠标按下时
<option value=mouseup>鼠标弹起时
<option value=mouseover>鼠标靠近时
<option value=mouseout>鼠标离开时
<option value=mousemove>鼠标移动时</select><button name=hbsj class=bon2 id=hb style=width:35 οnmοusemοve='sos("选择一个事件后,左键单进画布内的图形进行该事件所触发的程序编写")'>增加</td></tr>
<tr><Td style='padding:3;'><center id=cen>动画创作(6)</td></tr>
<Tr><td><select id=allid οnmοuseοver='getallid()' οnchange='objorthis=options[selectedIndex].text;biaoshifun(objorthis);' οnmοuseup="if(event.button==2&&options.length!=1){if(confirm('你想把画板内图形的所有ID标识清除?')){for(i=options.length;i>1;i--){eval(options[i-1].text).id='';remove(i);}}}" style=width:105 size=5><option selected>可用的对象ID</select></td></tr>
<Tr><td><select id=mz style=width:52><option>秒钟<script>adlist(1,301)</script></select><select id=pianchang style=width:52 οnchange="miaoselchange(options[selectedIndex].value)"><option>片长<script>adlist(5,125,5)</script></select></td></tr>
<script>
function miaoselchange(changdulen){  //更新秒钟总数
if(changdulen=="")return false
sj1.style.display=n;
changdulen=parseInt(changdulen)

var opstemp1=[]
for(i=1;i<60*changdulen+1;i++){
opstemp1[i]=i
}

mz.outerHTML="<select id=mz style=width:52><option>秒钟"+opstemp1.join("a").replace(/a/g,"<option>")+"</select>";
for(i=0;i<miaoarray.length;i++){
if(miaoarray[i]!=null){try{mz.options[i].style.backgroundColor="yellow"}catch(e){}}
}
pianchang.options[0].selected=true
}
</script>
<Tr><td align=center><label for=xunhuan1>结束时循环播放</label><input type=checkbox checked id=xunhuan1></td></tr>
<Tr><td><input type=button class=bon3 value=编辑侦动画程序 οnmοusemοve=sos("编写侦式动画程序") οnclick="if(mz.selectedIndex==0){alert('编辑动画程序前,必须指定一个[秒钟]');return false}if(allid.selectedIndex==0){alert('编辑动画程序前,必须指定一个[可用的对象ID],可以使用[定义ID标识]功能定义');return false};whodh=true;dhchxu(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=dci1 style=width:105 οnchange='dci=selectedIndex;sj1.style.display=n;dcitime1[dci]==null?qsm.value="":qsm.value=dcitime1[dci];dcitime2[dci]==null?hmbc.value="":hmbc.value=dcitime2[dci];dcitime3[dci]==null?jsmz.value="":jsmz.value=dcitime3[dci];'><script>adlist(1,201,1,"动画蓄电池");</script></select></td></tr>
<tr><Td>起始秒钟<input style="border:1 solid aaaaaa;width:54;height:17" value=1 id=qsm οnmοusemοve=sos("支持小数点数字,最小值0.1")></td></tr>
<tr><Td>毫秒步长<input style="border:1 solid aaaaaa;width:54;height:17" value=20 id=hmbc οnmοusemοve=sos("最小值建议为10毫秒速度最快")></td></tr>
<tr><Td>结束秒钟<input style="border:1 solid aaaaaa;width:54;height:17" value=5 id=jsmz οnmοusemοve=sos("支持小数点数字,最小值0.3")></td></tr>
<Tr><td><input type=button class=bon3 value=编辑流线动画程序 οnmοusemοve='sos("编辑存储于["+dci1.options[dci1.selectedIndex].text+"]的流线动画程序")' οnclick="if(allid.selectedIndex==0){alert('编辑动画程序前,必须指定一个[可用的对象ID],可以使用[定义ID标识]功能定义');return false};str1=qsm.value;str2=hmbc.value;str3=jsmz.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};whodh=false;dhchxu(allid.options[allid.selectedIndex].text)" style=width:105></td></tr>
</td></tr></table>

<script>jiazai("工具栏2(图形画笔、图形处理)设计器")</script>
<TABLE class=tooltab cellspacing=0 cellpadding=0 align=center style='left:150;top:1;z-index:3000' οnmοusedοwn='if(event.srcElement.tagName=="CENTER"&&event.button==1){moveok=1;setCapture();xx=event.x-offsetLeft;yy=event.y-offsetTop;}' οnmοusemοve="if(moveok==1){style.left=event.x-xx;style.top=event.y-yy;}" οnmοuseup='moveok=0;releaseCapture();if(parseInt(style.top)<-10){alert("工具栏高度不能低于页面最顶部");style.top=1}if(event.srcElement.tagName=="CENTER"&&event.button==2){style.zIndex==3000?style.zIndex=6000:style.zIndex=3000;}' id=gjlan1>
<tr><Td style=padding:3;border-right:1 solid gray;><center id=cen>图形(1) <font οnclick="gjlan3.style.display='';style.display=n;" class=zhongyao style=display:none; id=xsgj οnmοuseοver=style.color="blue" οnmοuseοut=style.color="red" οnmοusemοve='sos("当您已熟悉FlashVml的静态绘图功能时<br>可以进一步领略FlashVml对程序、动画的设计功能")' value='显示编程\动画工具栏'>显示编程\动画工具栏</font></td><td style=padding:3;border-left:1 solid white;><center id=cen>处理(3) <font οnclick="alert('将打开flashvml主页-蓝丽网下载窗口,如暂时性无法访问\n请于GOOGLE搜索FlashVml4.5其他下载地址');window.open('http://www.lshdic.cn/flashvml.asp')" class=zhongyao οnmοuseοver=style.color="rgb("+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+")" οnmοuseοut=style.color="">下载FlashVml4.5</font> <font οnclick="helplai()" class=zhongyao οnmοuseοver=style.color="rgb("+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+","+Math.round(Math.random()*255)+")" οnmοuseοut=style.color="">演示与帮助(F1)</font></td></tr>
<Tr>
<td style=border-right:1 solid gray><button ps=铅笔 class=bon2 id=hb οnmοusemοve=sos("按住左键写字、划画")><v:shape style=position:static;WIDTH:5px;HEIGHT:5px coordsize=5,5 filled=f path=" m0,0 l0,0,10,7,11,7,13,6,17,0,17,-1,17,-2,17,0,17,1,18,4,18,7,19,8,19,9,21,9,24,8,26,7,28,5,29,5,30,5,31,5 33,5,35,5,38,4,41 e" strokeweight='1px'/><button ps=直线 class=bon1 id=hb οnmοusemοve=sos("按住左键移动光标") style=text-align:left><v:line from=5pt,3pt to=30pt,9pt strokeweight='1px'/><button ps=圆型 class=bon2 id=hb οnmοusemοve=sos("按住左键移动光标")><v:oval style=position:static;WIDTH:20;HEIGHT:11 filled=f strokeweight='1px'/><button ps=长方型 class=bon2 id=hb οnmοusemοve=sos("按住左键移动光标")><v:rect filled=f style=position:static;WIDTH:20;HEIGHT:11  strokeweight='1px'/><button ps=多边型 class=bon2 id=hb οnmοusemοve=sos("以连续点击、移动左键的规律决定每条线的路径,所绘图形为一个整体")><v:shape filled=f style=position:static;WIDTH:5;HEIGHT:5 coordsize=5,5 strokeweight=1px path="m0,0 l0,0,15,-10,30,0,0,0 e"/></button><br>
<button ps=圆矩型 class=bon2 id=hb οnmοusemοve=sos("按住左键移动光标")><v:roundrect filled=f style=position:static;WIDTH:20;HEIGHT:12 arcsize=19661f strokeweight='1px'/><button ps=弧型 class=bon2 id=hb οnmοusemοve=sos("按住左键移动光标即可")><v:arc filled=f style=position:static;WIDTH:26;HEIGHT:12 startangle=180 endangle=360 strokeweight='1px'/><button ps=贝塞曲 class=bon2 id=hb οnmοusemοve=sos("(贝塞尔曲线):以连续点击、移动左键的规律决定曲线长度、角度1、角度2") style=text-align:left><v:curve from=9pt,4.5pt control1=35pt,-6pt control2=-1pt,16pt to=27pt,4.5pt filled=f strokeweight='1px'/><button class=bon2 id=hb οnmοusemοve=sos("单击左键在目标位置插入") style=color:black ps=文字><v:image src="rs/text.gif" style='position:static;width:26;height:12'/><button class=bon2 id=hb οnmοusemοve=sos("单击左键在目标位置插入") style=color:black ps=图片><v:image src="rs/image.gif" style="position:static;width:26;height:12"/></button>
</td>
<td style=border-left:1 solid white;><button ps=选移 class=bon2 name=hbxuanyi id=hb οnmοusemοve=sos("按住左键拖动目标图形") style=text-align:left><v:line from=8pt,1pt to=25pt,9pt strokeweight=1px><v:stroke endarrow=classic dashstyle="dash"/></v:line><button class=bon2 name=hbtdx id=hb οnmοusemοve=sos("按住左键拖动目标图形") ps=调大小 style=text-align:left><v:line from=6pt,5pt to=27pt,5pt strokeweight=1px><v:stroke startarrow=classic endarrow=classic dashstyle="dash"/></v:line><button class=bon2 id=hb οnmοusemοve=sos("左键左右移动旋转目标图形") ps=旋转><v:arc style=position:static;WIDTH:20;HEIGHT:7 startangle=350 endangle=50 filled=f strokeweight=1px>
<v:stroke startarrow=classic startarrowwidth=min startarrowlength='short'/></v:arc><button class=bon2 id=hb οnmοusemοve=sos("左键点击目标图形") ps=边框><v:rect filled=f style=position:static;WIDTH:19;HEIGHT:11 strokeweight=1px style=border:1 solid navy; strokecolor=navy><v:stroke dashstyle="shortdash"/></v:rect><button class=bon2 id=hb οnmοusemοve=sos("左键点击目标图形,支持背景色填充、背景图片、完全空心化") ps=填充><v:rect style=position:static;WIDTH:23;HEIGHT:12 stroked=f fillcolor=red><v:fill method=none focus=50% type=gradient opacity=.5 color2=yellow angle="245"/></v:rect><button class=bon2 id=hb οnmοusemοve='sos("左键点击目标图形")' ps=阴影><v:rect style=position:static;WIDTH:20;HEIGHT:9 stroked=f fillcolor=#75DD9E><v:shadow on=t color=navy offset="1.5pt,1pt"/></v:rect></button><br><button class=bon2 id=hb οnmοusemοve=sos("左键点击目标图形") ps=立体><v:rect style=position:static;WIDTH:20;HEIGHT:9 fillcolor=yellow stroked=f><v:extrusion on=t foredepth=1pt backdepth=2.5pt color=yellow diffusity=72089f rotationangle="76,180"/>
</v:rect><button class=bon2 id=hb οnmοusemοve=sos("左键点击目标图形,以文字充当目标图形边框") ps=文字化><v:line  style=position:static; to=20pt,0.1px strokecolor=red strokeweight=1px><v:path textpathok="t"/>
<v:textpath on=t style=font-size:9.5px string="文字化"/>
<v:shadow on=t color=white offset='2pt,0pt'/>
</v:line><button class=bon2 id=hb οnmοusemοve=sos("左键点击目标图形,给图形增加特殊滤镜效果") ps=滤镜><v:oval style=position:static;WIDTH:20;HEIGHT:11;filter:wave(add=0,freq=3,lightstrength=5,strength=3) strokeweight=1px strokecolor=blue><v:fill method=none focus=50% type=gradient opacity=".5" color2=white angle="245"/></v:oval><button class=bon2 name=hbsuf id=hb οnmοusemοve=sos("左键点击目标图形") ps=缩放><v:oval style=position:static;WIDTH:6;HEIGHT:11; strokeweight=1px strokecolor="blue"/><v:oval style=position:static;WIDTH:16;HEIGHT:11; strokeweight=1px strokecolor="blue"/><button class=bon2 id=hb οnmοusemοve=sos("左键点击目标图形(该图形在设计时可见,运行时不可见),该功能用于配合动画初期布局设计") ps=隐藏><v:oval style=position:static;WIDTH:20;HEIGHT:11;filter:alpha(opacity=40,finishopacity=2,style=1) strokeweight=1px strokecolor="black"/><button class=bon2 id=hb οnmοusemοve=sos("左键点击目标图形,修改与学习目标图形相关的VML源码") ps=改源码><v:line style=position:static; to=20pt,0.1px strokecolor=navy strokeweight=1px><v:path textpathok="t"/>
<v:textpath on=t style=font-size:12px string="Code"/>
</v:line></button>
<tr><td>
<select style=width:45;font-size:11px id=bicudu><script>adlist(1,101,1,"","px")</script></select><input style='border:1 solid aaaaaa;border-right:0;width:45;height:19' value=black id=hbys οnmοusedοwn=rndcolor(id)><input style='border:1 solid aaaaaa;border-right:0;width:45;height:19;' value=white id=hbbj οnmοusedοwn=rndcolor(id)><input readonly value=0,0 id=zb style="border:1 solid aaaaaa;text-Align:center;width:106;height:19;color:red;font-size:11px">
</td><td>
<center id=cen>编组(S):<button class=bon2 id=hb οnmοusemοve=sos("拖拽选取想要[编为组]的多个图形,编组后,编程/设计将事半功倍") ps=批选择><v:rect filled=f style=position:static;WIDTH:20;HEIGHT:11 strokeweight=1.2px><v:stroke dashstyle="dot"/></v:rect><button class=bon2 id=hb οnmοusemοve=sos("选取后单击想要追加进[组]的图形") ps=追加><v:rect filled=f style=position:static;WIDTH:20;HEIGHT:11;color:black;font-size:10px;font-weight:bold strokeweight=1.2px><v:stroke dashstyle="dot"/>+</v:rect></button>
</td></tr></table>
<script>gjlan1.style.left=document.body.offsetWidth/2-(gjlan1.offsetWidth/2)</script>

<script>jiazai("工具栏3(属性页/全局工具/系统工具)")</script>
<TABLE class=tooltab cellspacing=0 cellpadding=1 align=center style='left:1014;top:1;z-index:2999' οnmοusedοwn='if(event.srcElement.tagName=="CENTER"&&event.button==1){moveok=1;setCapture();xx=event.x-offsetLeft;yy=event.y-offsetTop;}' οnmοusemοve="if(moveok==1){style.left=event.x-xx;style.top=event.y-yy;}" οnmοuseup='moveok=0;releaseCapture();if(parseInt(style.top)<-10){alert("工具栏高度不能低于页面最顶部");style.top=1}if(event.srcElement.tagName=="CENTER"&&event.button==2){style.zIndex==2999?style.zIndex=6000:style.zIndex=2999;}' id=gjlan2>
<tr><Td><center id=cen>属性设置(2)</td></tr><Tr><Td>
<span id=pxz1 style=display:none>
<br><center id=cen2>批选取精度设置</center><br>
超高精度(3) <input type=radio name=jingdu οnclick="pjingquedu=3"><br>
高级精度(5) <input type=radio name=jingdu οnclick="pjingquedu=5"><br>
一般精度(7) <input checked type=radio name=jingdu οnclick="pjingquedu=7"><br>
模糊精度(10) <input type=radio name=jingdu οnclick="pjingquedu=10"><br>
<input type=button value=精度说明 οnclick=alert(getxml("help_jingdu",1)) class=bon3 style=width:110>
</span>
<span id=hx1 style=display:none>
<p><center id=cen2>弧型专用工具</center><br>
创建基本弧型 <input type=radio name=hx2 checked><br>
修改弧缺起点 <input type=radio name=hx2><br>
修改弧缺终点 <input type=radio name=hx2><br>
</span>
<span id=tfill1 style=display:none>
<br><center id=cen2>填充效果设置</center><br>
填充亮度 <select style=width:54 id=bjlidu><script>adlist(0.1,1,0.1,"","",1);bjlidu.options[4].selected=true</script></select><br>
<font id=xl>使用普通背景</font><input type=radio name=wttfill checked><br>
普通背景 <input style='border:1 solid black;width:55;height:17' value=#0000FF id=tfillbj οnmοusedοwn=rndcolor(id)><br>
<font id=xl>使用渐变背景</font><input type=radio name=wttfill><br>
基本颜色 <input style='border:1 solid black;width:55;height:17' value=#FFFFFF id=jbse1 οnmοusedοwn=rndcolor(id)><br>
过度颜色 <input style='border:1 solid black;width:55;height:17'color:red value=#FF0000 id=jbse2 οnmοusedοwn=rndcolor(id)><br>
折射渐变 <input type=radio name=jbys><br>
平行渐变 <input type=radio name=jbys checked><br>
平行角度 <select style=width:54 id=pxjd><script>adlist(-360,365,5);pxjd.options[72].selected=true</script></select><br>
<font id=xl>设置背景图片</font><input type=radio name=wttfill><br>
<font id=xl>完全空心化</font> <input type=radio name=wttfill><br>
</span>
<span id=lt1 style=display:none>
<br><center id=cen2>立体效果设置</center><br>
立体颜色 <input style='border:1 solid black;width:54;height:17' value='' id=ltys  οnmοusedοwn=rndcolor(id)><br>
立体亮度 <select style=width:54 id=ltlidu><script>adlist(0.1,3.1,0.1,"","",1);ltlidu.options[10].selected=true</script></select><br>
后向伸展 <select style=width:54 id=hxsz><option>0<script>document.write(temp101);hxsz.options[15].selected=true</script></select><br>
前向伸展 <select style=width:54 id=qxsz><option>0<script>document.write(temp101)</script></select><br>
<font id=xl>增加立体效果</font><input type=radio name=wtlt checked οnclick="wtlt1=0"><br>
<font id=xl>3 D 角度旋转</font><input type=radio name=wtlt οnclick="wtlt1=1"><br>
<font id=xl>取消立体效果</font><input type=radio name=wtlt οnclick="wtlt1=2">
</span>
<span id=bk1 style=display:none>
<br><center id=cen2>边框效果设置</center><br>
边框粗度 <select style=width:54 id=bkcudu><option>0<script>document.write(temp101);bkcudu.options[1].selected=true</script></select><br>
边框亮度 <select style=width:54 id=bklidu><script>adlist(0.1,1,0.1,"","",1);bklidu.options[9].selected=true</script></select><br>
边框样式 <select style=width:54 id=bkyangshi><option>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=qidianjt><option>none<option>block<option>classic<option>diamond<option>open<option>oval</select><br>
终点箭头 <select style=width:54 id=zdjt><option>none<option>block<option>classic<option>diamond<option>open<option>oval</select><br>
箭头大小 <select style=width:54 id=jtdaxiao><option>max<option selected>normal<option>min</select><br>
边框颜色 <input style='border:1 solid black;width:54;height:17;' id=bkys οnmοusedοwn=rndcolor(id)><br>
</span>
<span id=yying1 style=display:none>
<br><center id=cen2>阴影效果设置</center><br>
左右偏移 <select style=width:54 id=zypianyi><script>adlist(-50,51);zypianyi.options[53].selected=true</script></select><br>
上下偏移 <select style=width:54 id=sxpianyi><script>adlist(-50,51);sxpianyi.options[53].selected=true</script></select><br>
阴影颜色 <input style='border:1 solid black;width:54;height:17;' id=yyingys οnmοusedοwn=rndcolor(id)><br>
阴影亮度 <select style=width:54 id=yyinglidu><script>adlist(0.01,1.01,0.01,"","",2);yyinglidu.options[79].selected=true</script></select><br>
<font id=xl>取消阴影处理</font><input type=checkbox id=qxyying><br>
</span>
<span id=tm1 style=display:none>
<br><center id=cen2>滤镜效果设置</center><br>
<select id=tmxishu><option>不使用透明度<script>adlist(100,-1)</script></select><br>
<select id=tmys><option value=0>默认透明样式<option value=1>左右渐淡<option value=2>圆型渐淡<option value=3>矩型渐淡</select><br>
<select id=mohudu><option>不使用模糊度<script>document.write(temp101)</script></select><br>
<select id=niuqudu><option>不使用扭曲度<script>document.write(temp101)</script></select><br>
<select id=ghd><option>不使用光辉度<script>document.write(temp101)</script></select><br>
光辉颜色 <input value="#FF0000" style='border:1 solid black;width:54;height:17;' id=guanghuiys οnmοusedοwn=rndcolor(id)><br>
<input type=radio name=tsxg id=gray><label for=gray>黑白</label> <input type=radio name=tsxg id=xray><label for=xray>X 光</label><br><input type=radio name=tsxg id=invert><label for=invert>反彩</label> <input type=radio name=tsxg id=light><label for=light>黑幕</label><br><input type=radio name=tsxg id=fudiao><label for=fudiao>浮雕</label> <input type=radio name=tsxg id=yandiao><label for=yandiao>岩雕</label><br>
<font id=xl>取消滤镜处理</font><input type=checkbox name=qxlvjing><br>
</span>
<span id=suf1 style=display:none>
<br><center id=cen2>缩放效果设置</center><br>
比例差 <select style=width:67 id=sufbili><option>取消缩放<script>adlist(0.1,9.9,0.1,"","",1);sufbili.options[20].selected=true</script></select><br>
<input type=button value=缩放说明 οnclick=alert(getxml("help_suofang",1)) class=bon3 style=width:110>
</span>
<span id=wzhua1 style=display:none>
<br><center id=cen2>文字化效果设置</center><br>
文字缩放占满 <input type=checkbox checked id=wzzhanman><br>
文字大小 <select style=width:54 id=wzdaxiao2><script>document.write(temp101);wzdaxiao2.options[49].selected=true</script></select><br>
文字背景 <input style='border:1 solid black;width:54;height:17;' id=wzys2 οnmοusedοwn=rndcolor(id) value=#FFFFFF><br>
文字边框 <input style='border:1 solid black;width:54;height:17;' id=wzys3 οnmοusedοwn=rndcolor(id) value=#FF0000><br>
字体 <select style=width:80 id=ziti2><script>document.write(getxml("ziti",1))</script></select><br>
<font id=xl>取消文字化</font> <input type=checkbox id=qxwzhua><br>
</span>
<span id=qb1 style=display:none>
<br><center id=cen2>铅笔专用工具</center><br>
Shape型 <input type=radio name=xzqb checked><br>
PolyLine型 <input type=radio name=xzqb><br>
<input type=button value=选择铅笔说明 οnclick=alert(getxml("help_qianbi",1)) class=bon3 style=width:110><br>
允许有背景 <input type=checkbox id=qbbj><br>
</span>
<span id=ych1 style=display:none>
<br><center id=cen2>隐藏效果设置</center><br>
隐藏目标图形 <input type=radio name=isych checked><br>
取消目标隐藏 <input type=radio name=isych><br>
</span>
<span id=jyx22 style=display:none>
<br><center id=cen2>多边型专用工具</center><br>
Shape型 <input type=radio name=wtjyx checked οnclick="if(poly1!=null&&wtjyx1!=0){alert('任务未结束,无法更改');wtjyx[1].checked=true;return false}wtjyx1=0"><br>
PolyLine型 <input type=radio name=wtjyx οnclick="if(poly1!=null&&wtjyx1!=1){alert('任务未结束,无法更改');wtjyx[0].checked=true;return false}wtjyx1=1"><br>
<input type=button value=选择线条说明 οnclick=alert(getxml("help_xiantiao",1)) class=bon3 style=width:110><br>
允许有背景 <input type=checkbox id=jyxbj checked><br>
终止时填补 <input type=checkbox id=tianbu checked><br>
<input type=button value=填补说明 οnclick=alert(getxml("help_tianbu",1)) class=bon3 style=width:110>
</span>
<span id=qx1 style=display:none>
<br><center id=cen2>贝塞曲专用工具</center><br>
允许有背景 <input type=checkbox id=qxbj><br>
绘制新曲线 <input type=radio name=isqx checked οnclick="isqx1=0;"><br>
调整曲度一 <input type=radio name=isqx οnclick="isqx1=1;if(buzhou!=0){alert('任务未结束,无法更改');isqx[0].checked=true;isqx1=0;}"><br>
调整曲度二 <input type=radio name=isqx οnclick="isqx1=2;if(buzhou!=0){alert('任务未结束,无法更改');isqx[0].checked=true;isqx1=0;}">
</span>
<span id=yuanjuxing1 style=display:none>
<br><center id=cen2>弧型专用工具</center><br>
圆角弧度 <select style=width:57 id=yjhd><script>adlist(0.00,0.51,0.01,"","",2);yjhd.options[15].selected=true</script></select>
</span>
<span id=tp2 style=display:none>
<br><center id=cen2>图片专用工具</center><br>
插入新的图片 <input type=radio checked name=wttp><br>
修改目标图片 <input type=radio name=wttp><br>
<select id=lidu οnchange="if(lidu.selectedIndex==0){tempimg.blacklevel=''}else{tempimg.blacklevel=options[selectedIndex].text}"><option>默认明亮度<script>adlist(-0.4,0.41,0.01,"","",2);</script></select><br>
<select id=duibidu οnchange="if(duibidu.selectedIndex==0){tempimg.gain='1'}else{tempimg.gain=options[selectedIndex].text}"><option>默认对比度<script>document.write(temp101)</script></select><br>
<select id=secaidu οnchange="if(secaidu.selectedIndex==0){tempimg.gamma=''}else{tempimg.gamma=options[selectedIndex].text}"><option>默认色彩度<script>adlist(0.9,0.1,0.1,"","",1);</script></select><br>
漫画卡通效果 <input type=checkbox id=katong οnclick="tempimg.bilevel=checked"><br>
</span>
<span id=wz2 style=display:none>
<br><center id=cen2>文字专用工具</center><br>
插入新的文本 <input type=radio checked name=wtwz><br>
修改目标文本 <input type=radio name=wtwz><br>
</span>
<span id=xz1 style=display:none>
<br><center id=cen2>旋转专用工具</center><br>
旋转目标图形 <input type=radio name=wtxz checked οnclick=wtxz1=0><br>
取消目标旋转 <input type=radio name=wtxz οnclick=wtxz1=1><br>
</span>
</td></tr>
<tr><Td><center id=cen>全局操作(8)</td></tr><Tr><Td>
<input type=button value=Undo οnclick=chex_get() class=bon3 id=chexck οnmοusemοve=sos("快捷键Ctrl+Z,撤消上次操作")><input type=button value=Redo οnclick=chex_get2() class=bon3 id=fanchexck οnmοusemοve=sos("快捷键Ctrl+Y,取消上次撤消操作")><br>
<input type=button value=← οnclick='if(!czok())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 οnmοusemοve=sos("快捷键←")><input type=button value=→ οnclick='if(!czok())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 οnmοusemοve=sos("快捷键→")><br>
<input type=button value=↑ οnclick='if(!czok())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 οnmοusemοve=sos("快捷键↑")><input type=button value=↓ οnclick='if(!czok())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 οnmοusemοve=sos("快捷键↓")><br>
<input type=button style=color:blue value=运行 οnclick=yunxingfun() class=bon3 id=shiyunxing οnmοusemοve=sos("快捷键回车键,在浏览器查看本次作业的真实程序编译运行效果")><input type=button value=Delete οnclick=quanbuqingchu() class=bon3 id=esc οnmοusemοve=sos("快捷键ESC,全部删除(同等于[新建])")>
</td></tr>
<Tr><Td><center id=cen>系统功能(9)</td></tr>
<tr><Td>
<input type=button value=查看/修改源码 οnmοusemοve=sos("把已保存的VML代码粘贴修改实现打开,或者手写修改当前编辑器内的所有VML代码") class=bon3 style=width:110 οnclick=chakandaima()><br>
<input type=button value=环境设置 class=bon3 style=width:110; id=fvmlshezhi οnclick='ydm.style.display=n;temp1=huabutab.width.replace("%","");hb_dx1.options[(temp1/100)-1].selected=true;hb_ys1.value=hb_ys;hb_bt1.value=hb_bt;hb_zdh1.checked=hb_zdh;hb_gdt1[hb_gdt].checked=true;hb_gdtcor1.value=hb_gdtcor;hb_coks1[hb_coks].checked=true;hb_hy1.checked=hb_hy;hb_scroll1.checked=hb_scroll;hb_tishi1.checked=hb_tishi;hb_jzwid1.value=hb_jzwid;hb_jzhei1.value=hb_jzhei;hb_jzcor1.value=hb_jzcor;hb_jz1.checked=hb_jz;for(i=0;i<hb_wg1.options.length;i++){if(hb_wg1.options[i].text==hb_wg)hb_wg1.options[i].selected=true}hb_wgse1.value=hb_wgse;hbsz.style.display==""?hbsz.style.display=n:hbsz.style.display="";hb_jmfg1.options[hb_jmfg-1].selected=true;hb_ysj1.value=hb_ysj;hb_usemenu1.checked=hb_usemenu;hb_jmbx1.options[hb_jmbx-1].selected=true;hb_gjtm1.checked=hb_gjtm' οnmοusemοve=sos("打开画板设置选项卡,设置画板设计、运行时的各项指标")><br>
<input type=button value='Save File' οnmοusemοve=sos("将本次工作保存为后缀为htm的文件,注意保存时请使用Unicode保存") class=bon3 style=width:110 οnclick=savefile()><br>
<input type=button value=生成作业录像 οnmοusemοve=sos("生成作业录像文件(动态以你指定的速度[毫秒]播放您整个绘图过程)") class=bon3 style=width:110 οnclick=luxiang()>
</td></tr>
<Tr><Td><center id=cen>网络功能(10)</td></tr><td>
<input type=button value='上传/浏览/下载' οnmοusemοve=sos("FlashVml后台数据库扩展系统,为您免费提供互联网上存取服务") class=bon3 style=width:110 οnclick=wangluo()><script>
function wangluo(){
ser1.style.left=a_bsleft+document.body.offsetWidth/2-(parseInt(ser1.style.width)/2);
ser1.style.top=a_bstop+document.body.offsetHeight/2-(parseInt(ser1.style.height)/2);
if(ser1.style.visibility=='hidden'){ser1.style.visibility='';if(serckone==0){serckone=1;serframe.location.href=fuwuqi2.href}}else{ser1.style.visibility='hidden';}
}
</script><br><input type=button value=关于FlashVml class=bon3 style=width:110;color:red οnclick=gykai()></td></tr></table>

<script language=jscript>
gjlan2.style.left=document.body.offsetWidth-gjlan2.offsetWidth-20
jiazai("扩展功能程序引擎、全局存储器")
var open_var="vml"  //定义基于用户的变量名
var bi=4    //定义当前使用的画笔工具,3为铅笔
var bitext=""   //定义当前使用的画笔工具的名称,用以判断
var color1='#000000',color2='#000000',size1=""  //定义缺剩的画笔颜色及画笔填充颜色和笔边粗度
var xx=0,yy=0,zz=3000  //定义缺剩的X及Y坐标
var mobj=null,ckleft=0,cktop=0,ckwid=0,ckhei=0,ckto=""  //被移动物件、调整大小物件的引用
var poly1=null,oldvalue="",oldx=0,oldy=0  //为了完成铅笔、记忆点等连续线段
var wtqb=1,wthx=1  //区分使用了哪种铅笔、弧型画笔,该变量起加速作用
var morenxz=0  //存储对象的旋转前的旋转度
var hxqidian=0,hxzhongdian=0  //定义记录弧型旧的起点与终点的变量
var gjobj=null,gjobjdex=0,sjobj=null  //为了完成“改源码”“事件编程”功能,绑定被修改对象
var thisobj=null   //为了完成各种基本编辑功能,如“置前”“复制”“删除”等
var zz2=3000          //为完成“置后”功能,zz2为负数
var hxtx=false,fztx=false  //如果为false则ALERT()提醒弧型/复制得特性及缺陷,否则不提醒
var ychtx1=false,ychtx2=false  //为false则提醒隐藏/取消隐藏,否则不提醒
var chex=new Array(),youbiao=0,fanchex1=2  //定义一个存储撤消内容的数组以及位移游标,fanchex1为0时+2,否则+1
var zzxt=""   //定义反撤消的最终形态
var objorthis=""   //区分针对ID编程还是针对this编程
var diplaytime=null   //用于控制红色箭头的关闭时间,为了避免有闪烁感
var wodejb="function fun1(){\n\n}\n"    //用于存储我的脚本仓库内容
var nextid=-1
var whodh=true   //区别是按照侦创作动画程序还是按照流线创作动画程序
var miaoarray=new Array()  //存储侦的动画内容
var dci=0   //蓄电池的游标
var dcitxt=new Array()  //蓄电池程序内容
var dcitime1=new Array()  //蓄电池起始秒种
var dcitime2=new Array()  //蓄电池步长
var dcitime3=new Array()  //蓄电池结束秒种
dcitime1[0]=1;dcitime2[0]=20;dcitime3[0]=5  //定义[默认蓄电池1]的时间设定
var luxianghaomiao=300  //记录录像播放时的毫秒步厂
var worktime=0  //记忆用户使用FlashVml绘制一副完整动画所用的时间,单位秒
var buzhou=0,oldto=""  //记忆曲线绘制的步骤、伸展度的信息
var wtcj=1,cjoldx=0,cjoldy=0,cjoldwid=0,cjoldhei=0  //记录已何种方向裁剪目标对象、鼠标按下时坐标
var clips=new Array(0,0,0,0)  //存储对象的默认裁剪
var cjjuli=5,cjbu=25  //设置裁剪容器距离实体边缘的边距,以及设置裁剪的最大步长
var zbtime=null  //绘图时的坐标
var yxchex=true  //决定当前情况能否使用撤消、恢复撤消
var isqx1=0,qxduanx=0,qxduany=0  //曲线绘制时的变量存储
var wtjyx1=0 //决定选择了哪种多边型
var wtlt1=0,ltoldx=0,ltoldy=0  //决定选择了哪种立体处理、立体上次X、Y旋转度,起加速作用
var wtxz1=0  //决定怎样旋转图形,起加速作用
var gupwid=1000,guphei=1000,gupx=0,gupy=0  //调大小鼠标按下时存储group组的宽高
var serckone=0  //判断是否第一次打开服务器端系统
var pjingquedu=7  //批选择精确度存储变量
var vmljs=[],vmljsstr=""  //控制是否为用户输出对应的动画特技函数
</script><Script language="javascript" src="rs/fvml_pubjs.js"></script>


<script>
jiazai("鼠控绘图程序引擎(核心程式)")
function div1.onmousedown(){
colortab.style.display=n;cj.style.display=n;ydm.style.display=n  //结束其他未完成工作
zb.style.color="blue";
if(event.button==1){menuclose(menu1,40);menuclose(menu2,40);}
if(event.button==2){gaoji1.style.display=n;sj1.style.display=n;bjtp1.style.display=n;zhuijia1.style.display=n;}
yxchex=false  //锁定撤消
div1.setCapture();  //画笔绘画开始,锁定鼠标
color1=hbys.value  //定义画笔基本颜色
color2=hbbj.value;  //定义画笔背景颜色
size1=bicudu.options[bicudu.selectedIndex].text  //定义画笔基本粗度
a_bsleft=document.body.scrollLeft  //获取滚动条信息
a_bstop=document.body.scrollTop
xx=a_bsleft+event.x;yy=a_bstop+event.y;zz+=1  //定义基本起始坐标
for(i=0;i<hb.length;i++){if(hb[i].className=="bon1"){bi=i;if(hb[i].ps==null)bitext=hb[i].innerText;else bitext=hb[i].ps;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=="弧型"){  //支持显示标尺线的画笔
bc1.style.left=xx;bc1.style.display="";
bc2.style.top=yy;bc2.style.left=a_bsleft;bc2.style.display="";
}
switch(bitext){
case "批选择": //批选择
var temp1=div1.style.backgroundColor
if(pixz1.fillcolor!=temp1)pixz1.fillcolor=temp1
pixz1.style.left=xx;pixz1.style.top=yy;pixz1.style.width=0;pixz1.style.height=0;pixz1.style.visibility="";break;
case "选移":  //选移
if(ebj.parentElement.id=="div1"||ebj.parentElement.tagName=="group"){mobj=ebj;ckleft=xx-parseInt(mobj.style.left);cktop=yy-parseInt(mobj.style.top);}
break;
case "调大小":  //调大小
if(ebj.parentElement.id=="div1"||ebj.parentElement.tagName=="group"){
str1=ebj.tagName.toLowerCase()
if(str1=="polyline"||str1=="shape"||str1=="group"){
alert('无法调整核心基于'+str1+'图形,请使用[缩放]功能调整其大小\n\n或者使用[改源码]直接修改其源坐标系');yxchex=true
hb[bi].className="bon2";
hbsuf.className="bon1";div1.style.cursor="hand";suf1.style.display='';hbys.focus();return false
}
mobj=ebj;
ckleft=parseInt(mobj.style.left);cktop=parseInt(mobj.style.top);ckwid=mobj.offsetWidth;ckhei=mobj.offsetHeight}
break;
case "弧型":  //弧型
if(hx2[0].checked==true){wthx=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('目标图形不是弧型,无法调整');yxchex=true;wthx=2;return false}
for(i=0;i<hx2.length;i++){if(hx2[i].checked)wthx=i+1}
mobj=ebj;hxqidian=mobj.startangle;hxzhongdian=mobj.endangle
}
break;
case "直线":  //直线
line1.style.left=xx;line1.style.top=yy;line1.to="0,0";line1.style.display=""
break;
case "铅笔":  //铅笔
if(document.getElementsByName('xzqb')[0].checked==true){wtqb=1}else{wtqb=0}
if(poly1==null&&event.button==1){
oldx=xx;oldy=yy
qbbj.checked?str1="t":str1='f'
if(wtqb==1){  //绘图形铅笔
poly1=div1.appendChild(document.createElement("<v:shape path='m0,0 l0,0' filled='" + str1 + "' style='z-index:"+zz+";left:"+xx+";top:"+yy+";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='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 "圆矩型":  //圆矩型,arcsize属性只读,必须使用outerHTML更新
roundrect1.outerHTML="<v:roundrect arcsize='"+yjhd.options[yjhd.selectedIndex].text+"' class=keshi style='display:none;left:"+xx+";top:"+yy+";width:0;height:0;' id='roundrect1' strokecolor='"+color1+"' strokeweight='"+size1+"' fillcolor='"+color2+"'><v:Stroke dashstyle='dashdot'/></v:roundrect>"
roundrect1.style.display=''
break;
case "文字":  //文字
if(wtwz[0].checked){
wz1.style.left=xx;wz1.style.top=yy-20;charu1.value="插入";wz1.style.display=""
}else{
if(ebj.tagName.toLowerCase()!="textbox"){alert("目标不是Textbox文本对象,无法修改");yxchex=true;return false}
txt1.value=ebj.innerHTML.replace(/( <BR>|<BR>)/g,"\n");gjobj=ebj;wz1.style.left=xx;wz1.style.top=yy;charu1.value="修改";wz1.style.display=""
}
break;
case "图片":  //图片
if(wttp[0].checked){
tp1.style.left=xx;tp1.style.top=yy;tp1.style.display=""
}else{
if(ebj.tagName.toLowerCase()!="image"){alert("目标不是Image图片对象,无法修改");yxchex=true;return false}
ebj.blacklevel=tempimg.blacklevel;ebj.gain=tempimg.gain;ebj.gamma=tempimg.gamma;ebj.bilevel=tempimg.bilevel
}
break;
case "多边型":  //多边型
if(poly1==null){
if(jyxbj.checked)temp1="t";else temp1="f"
if(wtjyx1==1){
oldx=xx;oldy=yy
div1.innerHTML+="<v:polyline filled='"+temp1+"' points=\"0pt 0pt\" style='z-index:"+zz+";left:"+xx+";top:"+yy+";' strokecolor='"+color1+"' fillcolor='"+color2+"' strokeweight='"+size1+"'"+addnextid()+"/>";poly1=div1.lastChild;oldvalue="0pt 0pt"
}else{
poly1=div1.appendChild(document.createElement("<v:shape path='m0,0 l0,0' filled='"+temp1+"' style='z-index:"+zz+";left:"+xx+";top:"+yy+";width:100;height:100' strokecolor='"+color1+"' strokeweight='"+size1+"' coordsize='100,100' fillcolor='"+color2+"'"+addnextid()+"/>"))
oldvalue=poly1.path.value.replace("e","")
oldx=xx;oldy=yy
}
}else{
if(wtjyx1==1)oldvalue=poly1.points.value;else {oldvalue=poly1.path.value.replace(" e","");}
}
break;
case "旋转": //旋转
if(ebj.parentElement.id=="div1"||ebj.parentElement.tagName=="group"){
if(nouse(ebj,"textbox")==false)return false;
if(wtxz1==0){
mobj=ebj;
if(mobj.style.rotation==''||mobj.style.rotation==null){mobj.style.rotation=0}
morenxz=parseInt(mobj.style.rotation)}
}
break;
case "贝塞曲":  //贝塞曲
if(buzhou==0&&poly1==null){
if(isqx1==0){
oldx=xx;oldy=yy
qxbj.checked?str1='t':str1='f'
poly1=div1.appendChild(document.createElement("<v:curve filled='"+str1+"' to='0,0' style='z-index:"+zz+";left:"+xx+";top:"+yy+";' strokecolor='"+color1+"' fillcolor='"+color2+"' strokeweight='"+size1+"'"+addnextid()+"/>"));return false}
if(ebj.tagName.toLowerCase()!='curve'){alert('目标图形不是曲线,无法调整');yxchex=true;return false}
mobj=ebj;oldx=xx;oldy=yy
if(isqx1==1)str1=ebj.control1;
if(isqx1==2)str1=ebj.control2;
str1=new String(str1).split(",")
qxduanx=parseInt(str1[0]);qxduany=parseInt(str1[1])
}
break;
case "立体":  //立体角度调整
if(ebj.parentElement.id=="div1"||ebj.parentElement.tagName=="group"){
if(wtlt1==1){
if(ebj.extrusion.on!=true){alert("目标未增加立体效果,无法修改");yxchex=true;return false}
if(ebj.extrusion.rotationangle=="")ebj.extrusion.rotationangle="0,0"
str1=ebj.extrusion.rotationangle;str1=new String(str1).split(",")
ltoldy=parseInt(str1[0]);ltoldx=parseInt(str1[1])
mobj=ebj
}}
break;
}
}}
function div1.onmousemove(){
tempx=a_bsleft+event.x;tempy=a_bstop+event.y;
ebn=event.button
if(zbtime==null){
if(ebn==0){zbtime=setTimeout("zb.value='X'+tempx+',Y'+tempy;zbtime=null;clearTimeout(zbtime)",100)}
else if(ebn==1){  //、改变坐标显示
tempx>xx?jiajians1="+":jiajians1="-";tempy>yy?jiajians2="+":jiajians2="-";
zbtime=setTimeout("zb.value='"+xx+jiajians1+Math.abs(tempx-xx)+","+yy+jiajians2+Math.abs(tempy-yy)+"';zbtime=null;clearTimeout(zbtime)",100)}
}
if(poly1!=null){
if(bitext=="铅笔"&&ebn==1){   //铅笔
if(wtqb==1){  //绘图形铅笔
oldvalue=oldvalue+","+(tempx-xx)+","+(tempy-yy);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=="多边型"){   //多边型
if(wtjyx1==1){
div1.lastChild.outerHTML=div1.lastChild.outerHTML.replace(/ points = \".*?\"/,' points=\"'+oldvalue+","+(tempx-oldx)+","+(tempy-oldy)+'\"');poly1=div1.lastChild
}else{
poly1.path.value=oldvalue+","+(tempx-oldx)+","+(tempy-oldy)
poly1.path.value=poly1.path.value.replace(",0,0,",",0,").replace(",0 e","e")
}
}
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(tempx-xx<0){pixz1.style.left=tempx;pixz1.style.width=(xx-tempx)}else{pixz1.style.width=(tempx-xx)}
if(tempy-yy<0){pixz1.style.top=tempy;pixz1.style.height=(yy-tempy)}else{pixz1.style.height=(tempy-yy)}
case "贝塞曲":  //贝塞曲线的调整
if(mobj!=null){
if(isqx1==1){try{mobj.control1=(qxduanx+(tempx-oldx))+"pt,"+(qxduany+(tempy-oldy))+"pt";}catch(e){}}
if(isqx1==2){try{mobj.control2=(qxduanx+(tempx-oldx))+"pt,"+(qxduany+(tempy-oldy))+"pt";}catch(e){}}
}
break;
case "选移":  //选移
if(mobj!=null){mobj.style.left=tempx-ckleft;mobj.style.top=tempy-cktop}
break;
case "调大小":  //调大小
if(mobj!=null){
if(mobj.tagName=="curve"){
mobj.to=parseInt(tempx-ckleft)+","+parseInt(tempy-cktop);
if(ckto=="")ckto=parseInt(tempx-ckleft)+","+parseInt(tempy-cktop);return false
}else if(mobj.tagName=="line"){
mobj.to=parseInt(tempx-ckleft)+","+parseInt(tempy-cktop);
if(ckto=="")ckto=parseInt(tempx-ckleft)+","+parseInt(tempy-cktop);
}else{
if(tempx>ckleft){mobj.style.width=tempx-ckleft}else{mobj.style.left=tempx;mobj.style.width=ckleft-tempx}
if(tempy>cktop){mobj.style.height=tempy-cktop}else{mobj.style.top=tempy;mobj.style.height=cktop-tempy}
}}
break;
case "弧型":  //弧型
if(wthx==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.styl

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值