<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>

标签:
JavaScript,TO,HTML,转换

免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
桃源资源网 Design By www.nqtax.com

评论“JavaScript TO HTML 转换”

暂无“JavaScript TO HTML 转换”评论...