Header Ads Widget

Ticker

6/recent/ticker-posts

Java to HTML

<div dir="ltr" style="text-align: left;" trbidi="on"> <script language="javascript" type="text/javascript"> /* <![CDATA[ */ function converttext(){ inputtext = document.getElementById('codeconverter').inputtext.value; out = inputtext.replace(/\&/g, '&amp;') out = out.replace(/\</g, '&lt;') out = out.replace(/\>/g, '&gt;') out = out.replace(/\"/g, '&quot;') out = out.replace(/\'/g, '&#39;') out = out.replace(/\|/g, '&#124;') out = '<div style="BORDER: #cccccc 1px dashed; PADDING: 5px; WIDTH: 95%; BACKGROUND: #f0f0f0; COLOR: #000000; FONT-SIZE: 12px; OVERFLOW: auto; height:auto"> <pre>' + out + '</pre> </div> ' document.getElementById('codeconverter').outputtext.value = out; } /* ]]> */ </script> <br /> <form id="codeconverter"> Input Text:<br /> <textarea cols="80" name="inputtext" rows="20"></textarea><br /> <input onclick="javascript:converttext();" style="margin-top: 5px;" type="button" value="Convert" /><br /> Output Text:<br /> <textarea cols="80" name="outputtext" rows="20"></textarea><br /></form> </div>

Posting Komentar

0 Komentar