Tutorials to .com

Tutorials to .com » Php » Xml » ⑤ browser VML graphics board - view. Php

⑤ browser VML graphics board - view. Php

Print View , by: iSee ,Total views: 9 ,Word Count: 459 ,Date: Tue, 5 May 2009 Time: 5:03 AM

<html>
<xmlns:v="urn:schemas-microsoft-com:vml" />
<head>
<meta http-equiv="Content-type" content="text/html; charset=gb2312">
<title> VML graphics tablet </ title>
<style>
v \: * (behavior: url (# default # VML);)
td (font-size: 9pt;)
</ style>
</ head>
<script src="XMLtool.js"> </ script>
<script>
/ / Hook function for the removal of the code shows
function hooke () (
code.innerText = "";
)
/ / Obtain the xml document from the server. Vml server will return documents that can be used simple parameters v function readfile
function loadXML (v)
(
var xmlHTTP = new ActiveXObject ( "Microsoft.XMLHTTP");
xmlHTTP.open ( "GET", "server.php? info =" + v, false);
xmlHTTP.setRequestHeader ( "Contrn-type", "text / xml");
xmlHTTP.setRequestHeader ( "Contrn-charset", "gb2312");

xmlHTTP.send (v);
view.innerHTML = xmlHTTP.responseText;
hooke ();
if (xmlHTTP.responseText.indexOf ( "Error :")!=- 1) (
alert (xmlHTTP.responseText);
)
)
/ / The following function for interactive document vml
function cursor () ()
function mouse_down () ()
function mouse_up () ()
function setOverColor () ()
function setOutColor () ()
function deleteNode () ()
</ script>
<body onLoad="loadXML(1)">
<table>
<tr>
<td> display works </ td>
</ tr>
<tr>
<td id="view"> </ td>
</ tr>
<tr>
<td>
<? php
/ / Variable num is the total number of documents saved vml, here simply designated. Please adjusted according to actual organizations
$ num = 10;
for ($ i = 1; $ i <= $ num; $ i + +)
echo sprintf ( "<span style=\"cursor:hand;\" onClick=\"loadXML(%d)\" nobr>% 4d </ span> \ n", $ i, $ i);
?>
</ td>
</ tr>
<tr>
<td style="cursor:help;" onClick="code.innerText=view.innerHTML"> See VML code </ td>
</ tr>
<tr>
<td id="code"> </ td>
</ tr>
</ table>
</ body>
</ html>


Php XML Application Articles


Can't Find What You're Looking For?


Rating: Not yet rated

Comments

No comments posted.