VML绘图板③资源--VMLgraph.xml

xml

资源
***************
* VMLgraph.xml
***************
<?xml version="1.0" encoding="GB2312" ?>
<root xmlns:v="urn:schemas-microsoft-com:vml">
<toolbar id="1">
  <v:group ID="cut" style="width:24; height:24; cursor:hand" coordsize="30,30" title="裁剪" onClick="select(this)">
   <v:rect style="width:30; height:30;" fillcolor="#ffffff" strokecolor="#000000" strokeweight="1" />
   <v:line from="11,4" to="20,26" />
   <v:arc style="left:6; top:12; width:8; height:12;" startangle="180" endangle="400">
    <v:fill opacity="0" />
   </v:arc>
   <v:line from="19,4" to="10,26" />
   <v:arc style="left:16; top:12; width:8; height:12;" startangle="0" endangle="180">
    <v:fill opacity="0" />
   </v:arc>
  </v:group>
</toolbar>
<toolbar id="2">
   <v:group style="width:24; height:24; cursor:hand" coordsize="30,30" title="正常" onClick="select(this)">
    <v:rect style="width:30; height:30;" fillcolor="#ffffff" strokecolor="#000000" strokeweight="1" />
    <v:shape style="width:30; height:30;" strokecolor="#000000">
     <v:path v="m 9,5 l 9,20, 12,16 17,25 19,23 15,15 19,15 x e" />
     <v:fill opacity="0" />
    </v:shape>
   </v:group>
</toolbar>
<toolbar id="3">
   <v:group style="width:24; height:24; cursor:hand" coordsize="30,30" title="点、线" onClick="select(this)">
    <v:rect style="width:30; height:30;" fillcolor="#ffffff" strokecolor="#000000" strokeweight="1" />
    <v:line from="8,8" to="22,22"/>
   </v:group>
</toolbar>
<toolbar id="5">
   <v:group style="width:24; height:24; cursor:hand" coordsize="30,30" title="矩形" onClick="select(this)">
    <v:rect style="width:30; height:30;" fillcolor="#ffffff" strokecolor="#000000" strokeweight="1" />
    <v:rect style="top:4; left:4; width:22; height:22;">
     <v:fill opacity="0" />
    </v:rect>
   </v:group>
</toolbar>
<toolbar id="6">
   <v:group style="width:24; height:24; cursor:hand" coordsize="30,30" title="圆角矩形" onClick="select(this)">
    <v:rect style="width:30; height:30;" fillcolor="#ffffff" strokecolor="#000000" strokeweight="1" />
    <v:roundrect style="top:4; left:4; width:22; height:22;" arcsize="0.2">
     <v:fill opacity="0" />
    </v:roundrect>
   </v:group>
</toolbar>
<toolbar id="8">
   <v:group style="width:24; height:24; cursor:hand" coordsize="30,30" title="圆、椭圆" onClick="select(this)">
    <v:rect style="width:30; height:30;" fillcolor="#ffffff" strokecolor="#000000" strokeweight="1" />
    <v:oval style="top:4; left:4; width:22; height:22">
     <v:fill opacity="0" />
    </v:oval>
   </v:group>
</toolbar>
<toolbar id="7">
   <v:group style="width:24; height:24; cursor:hand" coordsize="30,30" title="多边形" onClick="select(this)">
    <v:rect style="width:30; height:30;" fillcolor="#ffffff" strokecolor="#000000" strokeweight="1" />
    <v:shape style="width:30; height:30;" path="m 14,4 l 4,14 12,24 24,18 15,12 x e">
     <v:fill opacity="0" />
    </v:shape>
   </v:group>
</toolbar>
<toolbar id="9">
   <v:group style="width:24; height:24; cursor:hand" coordsize="30,30" title="折线" onClick="select(this)">
    <v:rect style="width:30; height:30;" fillcolor="#ffffff" strokecolor="#000000" strokeweight="1" />
    <v:polyline points="4,18 20,4 8,20 24,10 10,22 22,20">
     <v:fill opacity="0" />
    </v:polyline>
   </v:group>
</toolbar>
<toolbar id="4">
   <v:group style="width:24; height:24; cursor:hand" coordsize="30,30" title="曲线" onClick="select(this)">
    <v:rect style="width:30; height:30;" fillcolor="#ffffff" strokecolor="#000000" strokeweight="1" />
    <v:curve from="4,24" control1="8,-10" control2="20,30" to="24,4">
     <v:fill opacity="0" />
    </v:curve>
   </v:group>
</toolbar>
<toolbar id="10">
   <v:group style="width:24; height:24; cursor:hand" coordsize="30,30" fillcolor="#ffffff" title="文字" onClick="select(this)">
    <v:rect style="width:30; height:30;" strokecolor="#000000" strokeweight="1" />
    <v:line from="14,4" to="4,26" />
    <v:line from="15,4" to="24,26" />
    <v:line from="10,18" to="20,18" />
   </v:group>
</toolbar>
<colorbar>
  <table cellspacing="0" cellpadding="0">
   <tr>
    <td rowspan="2">
     <v:group style="width:30; height:30;" coordsize="40,40">
      <v:rect style="width:40; height:40;" fillcolor="#ccc'" />
      <v:rect id="color2" style="left:16; top:16; width:20; height:20;" fillcolor="#ffffff" onMouseDown="setcolorkey=this" title="充填色" />
     <v:rect id="color1" style="left:4; top:4; width:20; height:20;" fillcolor="#000000" onMouseDown="setcolorkey=this" title="绘图色" />
    </v:group>
   </td>
   <td>
    <v:rect style="width:30; height:15;" fillcolor="#000000" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#808080" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#800000" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#808000" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#008000" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#008080" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#000080" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#800080" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#808040" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#004040" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#0080ff" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#004080" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#4000ff" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#804000" onClick="setcolor(this.fillcolor)" />
   </td>
  </tr>
  <tr>
   <td>
    <v:rect style="width:30; height:15;" fillcolor="#ffffff" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#c0c0c0" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#ff0000" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#ffff00" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#00ff00" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#00ffff" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#0000ff" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#ff00ff" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#ffff80" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#80ffff" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#80ffff" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#8080ff" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#ff0080" onClick="setcolor(this.fillcolor)" />
    <v:rect style="width:30; height:15;" fillcolor="#ff8040" onClick="setcolor(this.fillcolor)" />
   </td>
  </tr>
</table>
</colorbar>
<linebox>
  <v:group style="width:50; height:80" coordsize="50,80" title="线型选择">
   <v:rect style="width:50; height:80" />
   <v:line from="4,4" to="46,4" onClick="dashstyle.dashstyle=this.stroke.dashstyle">
    <v:stroke dashstyle="solid" />
   </v:line>
   <v:line from="4,10" to="46,10" onClick="dashstyle.dashstyle=this.stroke.dashstyle">
    <v:stroke dashstyle="shortdash" />
   </v:line>
   <v:line from="4,16" to="46,16" onClick="dashstyle.dashstyle=this.stroke.dashstyle">
    <v:stroke dashstyle="shortdot" />
   </v:line>
   <v:line from="4,22" to="46,22" onClick="dashstyle.dashstyle=this.stroke.dashstyle">
    <v:stroke dashstyle="shortdashdot" />
   </v:line>
   <v:line from="4,28" to="46,28" onClick="dashstyle.dashstyle=this.stroke.dashstyle">
    <v:stroke dashstyle="shortdashdotdot" />
   </v:line>
   <v:line from="4,34" to="46,34" onClick="dashstyle.dashstyle=this.stroke.dashstyle">
    <v:stroke dashstyle="dash" />
   </v:line>
   <v:line from="4,40" to="46,40" onClick="dashstyle.dashstyle=this.stroke.dashstyle">
    <v:stroke dashstyle="dot" />
   </v:line>
   <v:line from="4,46" to="46,46" onClick="dashstyle.dashstyle=this.stroke.dashstyle">
    <v:stroke dashstyle="dashdot" />
   </v:line>
   <v:line from="4,52" to="46,52" onClick="dashstyle.dashstyle=this.stroke.dashstyle">
    <v:stroke dashstyle="longdash" />
   </v:line>
   <v:line from="4,58" to="46,58" onClick="dashstyle.dashstyle=this.stroke.dashstyle">
    <v:stroke dashstyle="longdashdot" />
   </v:line>
   <v:line from="4,64" to="46,64" onClick="dashstyle.dashstyle=this.stroke.dashstyle">
    <v:stroke dashstyle="longdashdotdot" />
   </v:line>
   <v:rect style="left:2; top:68; width:46; height:8;" fillcolor="#c0c0c0" strokecolor="#c0c0c0" />
   <v:line from="6,72" to="44,72">
    <v:stroke id="dashstyle" dashstyle="solid" size="4" />
   </v:line>
  </v:group>
</linebox>
<gradient>
  <v:group style="WIDTH:120;HEIGHT:120" coordsize="120,120" onMouseMove="cursor(1)" onMouseOut="cursor(0)" title="过渡色充填">
   <v:rect style="width:120; height:120;" fillcolor="#ffffff" strokecolor="#000000" strokeweight="1" />
   <v:group style="left:35; top:13; width:50; height:34"  coordsize="50,34">
     <v:rect style="width:50; height:34" fillcolor="#ffff80" />
     <v:rect style="left:6; top:4; width:16; height:20;" fillcolor="#0000FF" />
     <v:oval style="left:18; top:4; width:26; height:26;" fillcolor="#00ff00" />
     <v:shape style="width:50; height:34" path="m 8,30 l 22,15 36,30 x e" fillcolor="#FF0000" />
   </v:group>
   <v:rect style="left:10; top:10; width:100; height:40;">
    <v:fill id="gradientBar" opacity="50%" type="gradient" color="red" color2="blue" angle="270" colors="30% yellow,70% green"  focusposition="50%,50%"/>
   </v:rect>
   <v:shape id="gradient1" style="left:8; top:50; width:120; height:100;" fillcolor="red" path="m 2,0 l 0,4 0,10 5,10 5,4 x e" onClick="gradientColor(this)" />
   <v:shape id="gradient4" style="left:108; top:50; width:120; height:100;" fillcolor="blue" path="m 2,0 l 0,4 0,10 5,10 5,4 x e" onClick="gradientColor(this)" />
   <v:shape id="gradient2" style="left:38; top:50; width:120; height:100;" fillcolor="yellow" path="m 2,0 l 0,4 0,10 5,10 5,4 x e" onClick="gradientColor(this)" onMouseMove="gradientPoint(this)" onMouseOut="gradientX=-1" title="色阶1" />
   <v:shape id="gradient3" style="left:78; top:50; width:120; height:100;" fillcolor="green" path="m 2,0 l 0,4 0,10 5,10 5,4 x e" onClick="gradientColor(this)" onMouseMove="gradientPoint(this)" onMouseOut="gradientX=-1" title="色阶2" />
   <v:line from="10,70" to="110,70" title="焦点1" />
   <v:shape id="focus1" style="left:58; top:66; width:120; height:100;" fillcolor="white" path="m 2,0 l 0,4 2,8 4,4 x e" onMouseMove="gradientPoint(this)" onMouseOut="gradientX=-1" title="焦点1" />
   <v:line from="10,80" to="110,80" title="焦点2" />
   <v:shape id="focus2" style="left:58; top:76; width:120; height:100;" fillcolor="red" path="m 2,0 l 0,4 2,8 4,4 x e" onMouseMove="gradientPoint(this)" onMouseOut="gradientX=-1" title="焦点2" />
   <v:line from="10,90" to="110,90" title="旋转角" />
   <v:line from="10,90" to="10,95" title="0°" onClick="anglePoint(this)" />
   <v:line from="35,90" to="35,95" title="90°" onClick="anglePoint(this)" />
   <v:line from="60,90" to="60,95" title="180°" onClick="anglePoint(this)" />
   <v:line from="85,90" to="85,95" title="270°" onClick="anglePoint(this)" />
   <v:line from="110,90" to="110,95" title="360°" onClick="anglePoint(this)" />
   <v:shape id="angle" style="left:83; top:86; width:120; height:100;" fillcolor="white" path="m 2,0 l 0,4 2,8 4,4 x e" onMouseMove="gradientPoint(this)" onMouseOut="gradientX=-1" title="旋转角" />
   <v:line from="10,100" to="110,100" title="透明度" />
   <v:line from="10,100" to="10,105" title="100%" onClick="opacityPoint(this)" />
   <v:line from="60,100" to="60,105" title="50%" onClick="opacityPoint(this)" />
   <v:line from="110,100" to="110,105" title="0%" onClick="opacityPoint(this)" />
   <v:shape id="opacity" style="left:58; top:96; width:120; height:100;" fillcolor="white" path="m 2,0 l 0,4 2,8 4,4 x e" onMouseMove="gradientPoint(this)" onMouseOut="gradientX=-1" title="透明度" />
  </v:group>
</gradient>
</root>

时间: 2024-11-03 02:50:21

VML绘图板③资源--VMLgraph.xml的相关文章

VML绘图板①主控--VMLgraph.htm

主控**************** VMLgraph.htm***************<html><xmlns:v="urn:schemas-microsoft-com:vml" /><head><meta http-equiv="Content-type" content="text/html; charset=gb2312"><title>VML绘图板</title>

VML绘图板②脚本--VMLgraph.js、XMLtool.js

js|xml|脚本 脚本************** VMLgraph.js*************var xo=0;var yo=0;var ox=80;var oy=20;var dx=0;var dy=0;var drawKey = false;var itemID = 0;var ShapeItemNum = 0;var ShapeItemX = 0;var ShapeItemY = 0;var CurveItemNum = 0;var NodeDelete = false;var T

VML绘图板②脚本--VMLgraph.js、XMLtool.js_php基础

脚本************** VMLgraph.js*************var xo=0;var yo=0;var ox=80;var oy=20;var dx=0;var dy=0;var drawKey = false;var itemID = 0;var ShapeItemNum = 0;var ShapeItemX = 0;var ShapeItemY = 0;var CurveItemNum = 0;var NodeDelete = false;var ToolBarNum

VML绘图板⑤浏览--view.php

<html><xmlns:v="urn:schemas-microsoft-com:vml" /><head><meta http-equiv="Content-type" content="text/html; charset=gb2312"><title>VML绘图板</title><style>v\:* { behavior: url(#default#VM

VML绘图板④简化的服务器端--server.php、server.asp

server|服务器 服务器端************* server.php************<?php$s = $HTTP_RAW_POST_DATA;$t = gettimeofday();$n = $t[sec].$t[usec];$filename = "vml/" .$n. ".txt";$fp = fopen($filename,"w");fwrite($fp,$s);fclose($fp);echo $s;?>

XML轻松学习手册(6)XML相关资源

xml 第六章:XML相关资源 一. XML的大本营 XML是由W3C(World Wide Web Consortium)国际组织负责开发和制定标准的.关于XML最权威,最新的消息都来自W3C.网址是:http://w3c.org/XML/ 另外一个名为OASIS的前著名的SGML研究组织也在一起推动XML的发展,网址是:http://www.oasis-open.org/ 二. XML指南 http://www.w3.org/TR/REC-xml W3C关于XML规范的详细,完整的说明.不用

ASP.NET创建Web服务之XML基础结构

asp.net|web|web服务|xml|创建 为了在网络多样性方面取得成功,XML Web服务必须不关心所选择的操作系统.对象模型和程序语言.而且,XML Web服务为了和其他基于Web的技术一样被广泛接受,它们必须: 松散耦联:如果两个系统中,只有使用的命令能理解前面提到过的自我描述基于文本的消息,那么这两个系统就被认为是松散耦联的.而另一方面,紧密耦联的系统使用大量的定制的软件来增强系统间的通讯,并且需要对系统之间了解的更多. 无所不在的通信:现在个人不太可能能够构造一个操作系统,或者在

XML加ASP实现网页“本地化”

xml|网页 想让你的站点能被来自多个国家的冲浪者看明白吗?无疑,这就需要提供多个语言版本的页面内容,也就是所谓的"本地化"功能.最容易想到的方法就是分别编写多种语言的页面内容,然后放置到不同的目录下,再在首页上添加导航到各自语言位置的链接.很明显,这样的处理方式将浪费许多包含公共元素以及设计框架的空间,而且修改.维护也很烦琐.有什么好方法吗?当然,本文就介绍如何结合使用XML与ASP技术实现这个目的. 本文将讨论如下几个方面的内容:创建包含语言资源的XML文档.使用ASP创建Web页

XML轻松学习手册(7)

xml 第六章:XML相关资源 一. XML的大本营 XML是由W3C(World Wide Web Consortium)国际组织负责开发和制定标准的.关于XML最权威,最新的消息都来自W3C.网址是:http://w3c.org/XML/ 另外一个名为OASIS的前著名的SGML研究组织也在一起推动XML的发展,网址是:http://www.oasis-open.org/ 二. XML指南 http://www.w3.org/TR/REC-xml W3C关于XML规范的详细,完整的说明.不用