📄 fywvml.htm
字号:
if(moveobj!=null)moveobj.xuanzhuanstr=(tempx+tempy)/2;
moveobj=null
break;
case "高级图型": //旋转
moveobj=null;oldx=0;oldy=0
break;
}zuizhongxingtai=div1.innerHTML}}
function fangda(tempElement){ //放大函数
if(tempElement.tagName=="line"||tempElement.tagName.toLowerCase()=="polyline"||tempElement.tagName=="SPAN")return false
if(anzhaoguize.selectedIndex==0){
thes1=parseInt(anzhaoxiangsu.options[anzhaoxiangsu.selectedIndex].text);thes2=thes1/2
tempElement.style.left=parseInt(tempElement.style.left)-thes2;
tempElement.style.top=parseInt(tempElement.style.top)-thes2;
tempElement.style.width=parseInt(tempElement.style.width)+thes1;
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)
tempElement.style.left=parseInt(tempElement.style.left)-(thewidth/thes1/2);
tempElement.style.top=parseInt(tempElement.style.top)-(theheight/thes1/2);
tempElement.style.width=thewidth+(thewidth/thes1);
tempElement.style.height=theheight+(theheight/thes1)
}}
function suoxiao(tempElement){ //缩小函数
if(tempElement.tagName=="line"||tempElement.tagName.toLowerCase()=="polyline"||tempElement.tagName=="SPAN")return false
if(anzhaoguize.selectedIndex==0){
thes1=parseInt(anzhaoxiangsu.options[anzhaoxiangsu.selectedIndex].text);thes2=thes1/2
tempElement.style.left=parseInt(tempElement.style.left)+thes2;
tempElement.style.top=parseInt(tempElement.style.top)+thes2;
tempElement.style.width=parseInt(tempElement.style.width)-thes1;
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)
tempElement.style.left=parseInt(tempElement.style.left)+(thewidth/thes1/2);
tempElement.style.top=parseInt(tempElement.style.top)+(theheight/thes1/2);
tempElement.style.width=thewidth-(thewidth/thes1);
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 document.onmouseup(){
if(event.srcElement.tagName=="BUTTON"&&event.button==1){
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";
bitext=event.srcElement.innerText
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){ //清除记忆点
if(poly1.tagName.toLowerCase()=="polyline"){poly1.points.value=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'
}}
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
var newtxt=document.createElement("<span style='position:absolute;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+";"+thebiankuang+"'></span>");newtxt.innerText=txt1.value
div1.appendChild(newtxt);wenzi1.style.display='none'
}
function charutupian(){ //插入图片
if(file1.value=="")return alert('请先输入图片路径(HTTP://或FILE:///)格式,在点击插入')
if(file1.value.indexOf("'")>-1)return alert("图片地址不可以含有违禁字符 ' 单引号")
str1=""
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+"'"
}
var newtxt=document.createElement("<v:Image style='position:absolute;z-index:"+zz+";left:"+xx+";top:"+yy+";width:100;height:100' 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}
}}
</script>
<div style='position:absolute;left:0;top:0;display:none;z-index:500;background-color:#FFF7FF;padding:2;white-Space:nowrap;table-Layout:fixed;filter:alpha(style=1,finishopacity=55);color:navy;font-size:12px;' id=showdiv onmousemove='this.style.display="none"'></div>
<script>
var oldtext="加速变量",colors1=new Array("#FFECD5","#FFF7FF","#FFFFEB","white","#F5FFEB","#EEFAFF","#FFFFEE","#EDFFFC")
var length1=colors1.length,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;
showdiv.style.backgroundColor=colors1[Math.round(Math.random()*colors1.length)];
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"',4000)
}
}catch(e){}
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -