<SCRIPT language=Javascript><!– // load htmlarea
_editor_url = “”;                     // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split(“MSIE”)[1]);
if (navigator.userAgent.indexOf(‘Mac’)        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf(‘Windows CE’) >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf(‘Opera’)      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
  document.write(‘<scr’ + ‘ipt src=”‘ +_editor_url+ ‘editor.js”‘);
  document.write(‘ language=”Javascript”></scr’ + ‘ipt>’); 
} else { document.write(‘<scr’+'ipt>function editor_generate() { return false; }</scr’+'ipt>’); }
// –></SCRIPT>
<TEXTAREA id=mytextarea style=”WIDTH: 800px; HEIGHT: 400px” runat=”server”>         </TEXTAREA>
<SCRIPT language=javascript>
editor_generate(‘<% Response.Write(mytextarea.ClientID); %>’); ;
</SCRIPT>

轻松将html转化为.net了

看来我要学学基础了!
 


评论

该日志第一篇评论

发表评论

评论也有版权!