person woman desk laptop
person woman desk laptop

Encode And Decode

Posted on

Encode and Decode Use this code:

<center>
<b>
<div style=”text-align: center; width: 100%;”>
<div style=”margin: 0 auto; padding: 0; width: 100%;”>
<div id=”mainDiv” style=”padding: 2px 0;”>
<textarea cols=”20″ id=”tarea” onfocus=”code_check();” rows=”10″ style=”font-size: 12px; height: 90%; width: 90%;”></textarea>

<br />
<style>
button{padding:5px 20px 5px 20px;color:#fff;background:#333;border:solid 1px #333;border-radius:5px;}
button:hover{padding:5px 20px 5px 20px;color:#fff;background:#808383;border:solid 1px #333;border-radius:5px;}
#tarea{border:solid 1px #333;border-radius:10px;-webkit-box-shadow: 0 0 5px 2px #696969;box-shadow: 0 0 5px 2px #696969;padding:7px 15px 7px 15px;}
</style>
<div style=”margin: 0 auto; padding: 5px 0; width: 95%;”>
<button onclick=”code_convert();” style=”margin-right: 5px;” type=”button”>Parse</button>
<button onclick=”code_clear();” style=”margin-left: 5px;” type=”button”>Clear</button> </div>
</div>
</div>
</div>
<script>
function code_check(){
var focuscheck=document.getElementById(‘tarea’);if(focuscheck.value.indexOf(‘Pastekan Disini Kode yang Akan Anda Pasang pada Postingan Blog’)>0)focuscheck.value=”;}
function code_clear(){
var wtarea=document.getElementById(‘tarea’);wtarea.value=”;}
function code_convert(){
var ctarea=document.getElementById(‘tarea’);var toConvert=ctarea.value;
var toConvert=toConvert.replace(/&/g,”&amp;”);
var toConvert=toConvert.replace(/’/g,”&#039;”);
var toConvert=toConvert.replace(/”/g,”&quot;”);
var toConvert=toConvert.replace(/</g,”&lt;”);
var toConvert=toConvert.replace(/>/g,”&gt;”);
ctarea.value=toConvert;ctarea.focus();ctarea.select();};
</script>
</b></center>

Like this if you set in blogger LINK ENCODE and DECODE: