<html>
<head>
<style>
textarea{width:760;height:180;font-family:Courier New;color:#666666;border:none;}
td,body {  font-size: 9pt}
</style>
<link rel="stylesheet" type="text/css" href="Css/12ym_main.css">
<title>JS转换成HTML</title>
</head>
<body>
<div align="center">
	<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="table">
      <tr>
        <td class="xingmu"><div align="center"><strong><a href="HTMLtoJS.aspx"><font color="#0066FF">HTML转换JS</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<font color="#FF3300" >JS转换HTML</font></strong></div></td>
      </tr>
      <tr>
        <td class="left_table"><div align="center"><br>
            <strong>请将JS源代码拷贝到下面表单中</strong><br>
            <br>
            <textarea id="oResult"  onpropertychange="rechange()" ondblclick='this.select();oResult.createTextRange().execCommand("Copy")' title="双击复制" cols="99" rows="12"></textarea>
            <br>
            <br>
        </div></td>
      </tr>
      <tr>
        <td class="left_table"><div align="center"><br>
            <strong>下面表单中是相应的HTML代码</strong><br>
            <br>        
          <textarea id="Re" ondblclick='this.select();this.createTextRange().execCommand("Copy")' title="双击复制" cols="99" rows="30"></textarea>
        </div></td>
      </tr>
    </table>
    <script>    
 function rechange(){
 Re.value=oResult.value.replace(/document.writeln\("/g,"").replace(/"\);/g,"").replace(/\\\"/g,"\"").replace(/\\\'/g,"\'").replace(/\\\//g,"\/").replace(/\\\\/g,"\\").replace(/\\\\/g,"")
 }
  </script>
  </p>
</div>
</body>
</html>
