富贵资源网 Design By www.hznty.com

<html>
<head>
<title>JavaScript TO HTML 转换</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="menu_head">JavaScript TO HTML 转换</div>
<div class="content">
 <div>请在下边输入JavaScript代码:</div>
 <div>
  <textarea name="textarea" style="width:99%" rows="15" id="oResult" ondblclick="this.select();oResult.createTextRange().execCommand('Copy')" onpropertychange="rechange()" onChange="rechange()"></textarea>
 </div>
 <BR />
 <div>以下是经过转换后的HTML代码:</div>
 <div>
  <textarea name="textarea2" style="width:99%" rows="15" id="Re" ondblclick='this.select();this.createTextRange().execCommand("Copy")'></textarea>
 </div>
</div>
<SCRIPT LANGUAGE="JavaScript">
<!--
function rechange()
{
 Re.value=oResult.value.replace(/document.writeln\("/g,"").replace(/"\);/g,"").replace(/\\\"/g,"\"").replace(/\\\'/g,"\'").replace(/\\\//g,"\/").replace(/\\\\/g,"\\")
}
//-->
</SCRIPT></body></html>

富贵资源网 Design By www.hznty.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
富贵资源网 Design By www.hznty.com