<html>
<head>
<style>
textarea{width:760;height:180;font-size:9pt;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>
<base>
</head>
<body>
<div align="center">
	<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="table">
      <tr>
        <td class="xingmu"><div align="center"><strong><font color="#FF3300" >HTML转换JS</font></strong><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</strong><strong><a href="JStoHTML.aspx"><font color="#0066FF">JS转换HTML</font></a></strong></div></td>
      </tr>
      <tr>
        <td class="left_table"><div align="center"><br>
            <strong>请将HTML源代码拷贝到下面表单中</strong><br>
            <br>
          <textarea id="oSource" onpropertychange="change()" ></textarea>
            <br>
            <br>
        </div></td>
      </tr>
      <tr>
        <td class="left_table"><div align="center"><br>
            <strong>下面表单中代码转换后的JS代码</strong><br>
            <br>        
            <textarea cols="100" id="oResult" title="双击复制" ondblclick='this.select();oResult.createTextRange().execCommand("Copy")'></textarea>
        </div></td>
      </tr>
    </table>
<script>
 function change(){
 oResult.value="document.writeln(\""+oSource.value.replace(/\\/g,"\\\\").replace(/\//g,"\\/").replace(/\'/g,"\\\'").replace(/\"/g,"\\\"").split('\r\n').join("\");\ndocument.writeln(\"")+"\");"
 } </script>
  </p>
</div>
</body>
</html>
