<HTML>
<HEAD>
<META http-equiv='Content-Type' content='text/html; charset=gb2312'>
<TITLE>html转换成js工具-js转html工具</TITLE>
<script language="javascript">
<!--
     function Click()
  {
       alert('欢迎使用该工具!');
       window.event.returnValue=false;
     }
     document.oncontextmenu=Click;
-->
</script>
<style type="text/css">
<!--
body {
 font-size: 12px;
}
table {
 font-size: 12px;
}
.style1 {font-size: 12px}
-->
</style>
</HEAD>
<BODY >
<table width="70%"  border="0" align="center" cellpadding="3" cellspacing="0">
  <tr>
    <td>
 <p><strong>html源代码转换javascript代码工具</strong></p>
<p>请将html源代码拷贝到下面表单中: <br>
  <textarea cols="100" rows=8 ondblclick='this.select

();oResult.createTextRange().execCommand("Copy")'></textarea> 
  <br>
  <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>
<p><strong>javascrpt源代码转换html代码工具</strong></p>
<P><FONT size=2 class="style1">请将js源代码拷贝到下面表单中:</FONT> <BR>
  <TEXTAREA id=oResul ondblclick='this.select();oResul.createTextRange().execCommand

("Copy")' title=双击复制 onpropertychange=rechange() rows=12 cols=99></TEXTAREA>
<BR>
<span class="style1">下面表单中是相应的HTML代码: </span><BR>
<TEXTAREA id=Re ondblclick='this.select();this.createTextRange().execCommand("Copy")'

title=双击复制 rows=12 cols=99></TEXTAREA>
<SCRIPT>
 function rechange(){
 Re.value=oResul.value.replace(/document.writeln/("/g,"").replace(/"/);/g,"").replace

(////"/g,"/"").replace(////'/g,"/'").replace(//////g,"//").replace(//////g,"//")
 }
 </SCRIPT>
 </td>
  </tr>
</table>
</BODY></HTML>

相关文章:

  • 2021-06-15
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-08-29
  • 2022-01-20
猜你喜欢
  • 2021-10-16
  • 2022-12-23
  • 2021-06-12
  • 2022-02-08
  • 2022-01-28
  • 2021-09-07
相关资源
相似解决方案