[ HTML ] HTML Encoder


<html>

<head>

 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />



<title>HTML Encoder</title>

<style type="text/css">

body

{

color: #101010;

background-image:url('http://i.imgur.com/wBZXOia.gif');

font-family: Arial, Helvetica, sans-serif;

}

a{

color: #FFF;

text-decoration: none;

font-weight: bold;

}

.wrapper{

width: 1000px;

margin: 0 auto;

}

.tube{

padding: 10px;

}

.Button

      {

         padding: 5px 10px;

         background: #FFF;

         border: solid #101010 2px;

         color: #000;

         cursor: pointer;

         font-weight: bold;

         border-radius: 5px;

         -moz-border-radius: 5px;

         -webkit-border-radius: 5px;

      }

    .red

      {

         border: solid #101010 1px;

         color: #101010;

         font-weight: bold;

         padding: 3px;

         background-color: #eefceb;

      }

.red{

width: 998px;

border: 1px solid #3FFF37;

background: rgba(255, 255, 255, 0);

color: white;

box-shadow: 0px 0px 4px #3FFF37;

}

.passwd{

width: 865px;

border: 1px solid #3FFF37;

background: rgba(255, 255, 255, 0);

color: white;

box-shadow: 0px 0px 4px #3FFF37;

}

.blue{

float: left;

width: 1000px;

border: 1px solid #F90808;

background: #FFFFFF;

color: #FFF200;

box-shadow: 0px 0px 4px #F90808;

}

.green{

float: left;

width: 1000px;

border: 1px solid #F90808;

background: #FFFFFF;

color: #FFF200;

box-shadow: 0px 0px 4px #F90808;

}

</style>

<script type="text/javascript">IN_REQ='Trước tiên phải nhập đoạn code cần mã hóa vào !"'

TMPL="<script type=\"text/javascript\">document.write('__UNI__')<\/script>"

function submitHndlr()

{if(!window.eIn)

{eIn=document.getElementById("input");eOut=document.getElementById("output");eSelect=document.getElementById("select");eReset=document.getElementById("reset");}

if(!eIn.value.length)

{alert(IN_REQ);eIn.focus();}

else

{eSelect.disabled=eReset.disabled=eOut.disabled=false;eOut.value=TMPL.replace(/__UNI__/,convertString2Unicode(eIn.value));}

return false;}

function resetHndlr()

{eSelect.disabled=eReset.disabled=eOut.disabled=true;eIn.value=eOut.value="";}

function convertString2Unicode(s)

{var uniString="",hexVal,uniChar;for(var i=0;i<s.length;++i)

{hexVal=Number(s.charCodeAt(i)).toString(16);uniChar="\\u"+("000"+hexVal).match(/.{4}$/)[0];uniString+=uniChar;}

return uniString;}</script>

</head>

<body><tr>

<form id="program" action="javascript:location.href;void 0" onsubmit="return submitHndlr()">

<center>

<div><font style="color:white" ><h1>HTML Encoder</font></h1></div>

<div>

<div><font style="color:white" ><b>HTML Input:</b></font></div>

<textarea id="input" rows="12" class=red cols="50" style="width: 943px" style="height: 218px " ></textarea>

</div> 

<div style="margin-top: 2em; margin-bottom: 2em">

<input type="submit" class=Button value="Encode HTML">

<input type="reset" id="reset" class=Button disabled="disabled" onclick="resetHndlr()" value="Reset" >

</div>

<div>

<div><font style="color:white" ><b>Encoded HTML output:</b></font></div>

<textarea id="output" disabled="disabled" class=red rows="12" cols="50" style="width: 943px" style="height: 218px "></textarea>

</div>

<div style="margin-top: 1em">

<input id="select" disabled="disabled" class=Button type="button" value="Select Text" onclick="eOut.select()">

</div> 

<h4><font style="color:white" >Develop By Doofenshmirtz Xấu Xa</font></h4>

</center> 

</form> 

</body>

</html>
[ HTML ] HTML Encoder Reviewed by Nguyen Nam Hong on 9:53 PM Rating: 5
Copyright © Kid1412 Blog's 💖 2016
Development by Hong Nguyen Nam
Powered by Blogger.