<html>
<head>
<title>JavaScript TO HTML 轉(zhuǎn)換</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 轉(zhuǎn)換</div>
<div class="content">
<div>請(qǐng)?jiān)谙逻呡斎隞avaScript代碼:</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>以下是經(jīng)過(guò)轉(zhuǎn)換后的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,"http://").replace(//////g,"http://")
}
//-->
</SCRIPT></body></html>
|
新聞熱點(diǎn)
疑難解答
圖片精選