VML drawing board ① main control--vmlgraph.htm
Last Update:2017-02-28
Source: Internet
Author: User
Main control
***************
* vmlgraph.htm
***************
<html>
<xmlns:v= "urn:schemas-microsoft-com:vml"/>
<head>
<meta http-equiv= "Content-type" content= "text/html"; charset=gb2312 ">
<TITLE>VML drawing board </title>
<style>
v\:* {behavior:url (#default #vml);}
td {Font-size:9pt;}
</style>
</head>
<script src= "Vmlgraph.js" ></script>
<script src= "Xmltool.js" ></script>
<script language= "JavaScript" >
//Hook function, which is called when the tool is selected
function Hooke () {
}
</script>
<body onload= "init ()" >
<table>
<tr>
<td width=61 valign=top>
<span id= "toolbox" ></span><br>
<span id= "Linebox" ></span><br>
<span id= "opacity1" ></span><br>
</td>
<TD valign=top>
<span id= "View" Align=left valign=top>
your browser may not support vml! Please use ie5+. Need xml3.0 support. <br>
best results appear in IE6.
</span>
</td>
<TD valign=top>
<input type=button value= "Refresh style=" HEIGHT:16; border:1px solid #C0C0C0; "onclick=" View.innerhtml=tree (canvas.documentelement,0) ">
<input Type=button value= "Save style=" HEIGHT:16; border:1px solid #C0C0C0; "onclick=" SaveXML () ><br><br>
<span id= "Gradientbox" ></span><br>
<input id= "type1" Type=button value= "progressive" style= "width:36"; height:16; border:1px solid red; "onclick=" Settype (this) >
<input id= "type2" Type=button value= "Focus style=" width:36; height:16; border:1px solid black; "onclick=" Settype (this) >
<input id= "type3" Type=button value= "color order style=" WIDTH:36; height:16; border:1px solid red; "onclick=" Settype (this) ><br>
<span id= "textbox" style= "Visibility:hidden;" >
text <input type=text name=txt id=txt size=15 style= "width:96; height:16; border:1px solid #C0C0C0; " ><br>
font <select style= "width:60; height:16; border:1px solid #C0C0C0; " >
</select><br>
Font size <select style= "WIDTH:60; height:16; border:1px solid #C0C0C0; " >
</select>
</span>
<span id= "Minview" ></span>
</td>
</tr>
<tr>
<td><span id= "oxy" ></td>
<td id= "Color" valign= "Top" >
</td>
<td></td>
</tr>
</table>
<xml id= "Tools" src= "Vmlgraph.xml" async= "false" ></xml>
<xml id= "Canvas" >
<root xmlns:v= "URN:SCHEMAS-MICROSOFT-COM:VML" >
<v:group id= "group" style= "WIDTH:500; height:300 "coordsize=" 500,300 "onmousemove=" cursor (1) "onmouseout=" cursor (0) "onmousedown=" Mouse_down () "OnMouseUp" = "mouse_up ()" >
<v:rect style= "width:500; height:300 "fillcolor=" #ffffff "strokecolor=" #000000 "strokeweight=" 1 "/>
</v:group>
</root>
</xml>
</body>
</html>