当前位置: 首页 > 图文教程 > 网络编程 > PHP > VML绘图板①主控--VMLgraph.htm

PHP
让我们来编写一些PHP实用的脚本
七种缓存使用武器 为网站应用和访问加速
动态网页PHP中引用&的使用注意事项
在PHP中全面阻止SQL注入式攻击
PHP自带可以代替echo调试的unit函数
小结:PHP动态网页程序优化及高效提速问题
php对特殊语句查询结果进行数组排序
实例:用PHP技术解决网站URL格式过长的问题
小结:PHP动态网页程序两个有用的小技巧
动态网页中直接不让访问PHP程序文件
网页实例:详细介绍用PHP来编写网页记数器
菜鸟学习:动态网页PHP基础学习笔记
利用Apache实现禁止图片盗链
PHP编程中常用的三则技巧
PHP制作的网站意见在线反馈表
大型Web需求解决方案 PHP定位突出
PHP实例:精确到每一秒钟的在线人数显示代码
实用:动态网页制作技术PHP的十个应用技巧
常见php页面漏洞分析及相关问题解决
PHP和MYSQL制作动态网站开发经验之谈

PHP 中的 VML绘图板①主控--VMLgraph.htm


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 28 ::
收藏到网摘: n/a

主控
***************
* VMLgraph.htm
***************
<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#VML); }
td { font-size:9pt; }
</style>
</head>
<script src="VMLgraph.js"></script>
<script src="XMLtool.js"></script>
<script language="javascript">
// 钩子函数,当选择了工具时被调用
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>
    你的浏览器可能不支持VML!请使用IE5+。需要xml3.0支持。<br>
    最佳效果出现在IE6。
   </span>
  </td>
  <td valign=top>
   <input type=button value="刷新" style="height:16; border:1px solid #C0C0C0;" onClick="view.innerHTML=tree(canvas.documentElement,0)">
   <input type=button value="保存" style="height:16; border:1px solid #C0C0C0;" onClick="saveXML()"><br><br>
   <span id="gradientBox"></span><br>
   <input id="type1" type=button value="渐进" style="width:36; height:16; border:1px solid red;" onClick="settype(this)">
   <input id="type2" type=button value="焦点" style="width:36; height:16; border:1px solid black;" onClick="settype(this)">
   <input id="type3" type=button value="色阶" style="width:36; height:16; border:1px solid red;" onClick="settype(this)"><br>
   <span id="textbox" style="visibility:hidden;">
   文本<input type=text name=txt id=txt size=15 style="width:96; height:16; border:1px solid #C0C0C0;"><br>
   字体<select style="width:60; height:16; border:1px solid #C0C0C0;">
   </select><br>
   字号<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=&