Email Address Encryption Code:
<code><meta http-equiv= "Content-type" content= "text/html; Charset=utf-8″/></code>
<style type= "Text/css" ><!–
body {font-size:12px;}
–></style><script type= "Text/javascript" language= "JavaScript" >//<! [cdata[
var email = "davidz94@yahoo.com";
function Getemail (email)
{
var r = "";
for (i=0;i<email.length;i++)
{
R + + "&#" + email.charcodeat (i);
}
return R;
}
function SetClipboard (ID)
{
var TB = document.getElementById (ID);
var copytext = Tb.value;
if (copytext!= "")
{
if (Window.clipboarddata)
{
Window.clipboardData.setData ("Text", CopyText);
Alert ("has been copied to the Clipboard.) ");
}
else if (window.netscape)
{
Setclipboardnetscape (CopyText);
Alert ("has been copied to the Clipboard.) ");
}
}
return false;
}
function Setclipboardnetscape (text) {
var url = [
' Data:text/html;charset=utf-8;base64,pgjvzhk+pc9ib2 ',
' R5pjxzy3jpchqgdhlwzt0idgv4dc9qyxzhc2nyaxb0ij4kkgz1 ',
' Bmn0aw9ukgvuy29kzwqpe3zhcibzd2zfzgf0ysa9ifskicdkyx ',
' Rhomfwcgxpy2f0aw9ul3gtc2hvy2t3yxzllwzsyxnoo2jhc2u2 ',
' NCXRMWRUQJJ3JYWKICDBQUFCNG5EUGDZBGPBD01QSTRNEJALMK ',
' YLMKY5JTJGZTJAZKJNYUDHV3DNRE1UNUTHJYWKICDRTU10TJRH ',
' ZGDAZ1NJTXDAWEZKYW01UUFFJTJCQM9IATFCTG5UTXLDCFB6RW ',
' 9ou0djjywkicdqrnalmkzbehnerejra3bgwkrguuzgq2d1evm4 ',
' Qxlqstrbrvvcaxkwvndbjtnejtnejwpdlmpvaw4oiiipowpkb2 ',
' N1BWVUDC5IB2R5LMLUBMVYSFRNTCA9IFSKICC8ZW1IZWQGC3JJ ',
' Psinlhn3zl9kyxrhlcciiccscianrmxhc2hwyxjzpsjjb2rlps ',
' Cszw5jb2rlzcwnij4nlaogjzwvzw1izwq+jwpdlmpvaw4oiiip ',
' Owp9ksgi ',
Base64Encode (encodeURIComponent (text) + ' ") </' + ' script> ')
].join ("");
var tmp = document.createelement ("div");
tmp.innerhtml = [
' <iframe src= ', url, ' "', ' width= ' 0" height= "0" > '
, ' </iframe> '
].join ("");
with (Tmp.style) {
position = "absolute";
left = " -10px";
top = " -10px";
visibility = "hidden";
};
Document.body.appendChild (TMP);
settimeout (function () {document.body.removeChild (TMP)},1000);
function Base64Encode (str) {
var Chars = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789+/". Split ("");
var C1, C2, C3;
var buf = [];
var len = str.length;
var i = 0;
while (I < len) {c1 = Str.charcodeat (i) & #038 0xFF; C2 = Str.charcodeat (i+1); C3 = Str.charcodeat (i+2); Buf.push (chars[(C1 >> 2)]);
if (i+1 = = len) {
Buf.push (chars[(C1 & #038; 0x3) << 4], "= =");
break;
}
Buf.push (chars[(C1 & #038; 0x3) << 4) | ((C2 & #038; 0xF0) >> 4)]);
if (i+2 = = len) {
Buf.push (chars[(C2 & #038; 0xF) << 2], "=");
break;
}
Buf.push (
chars[(C2 & #038 0xF) << 2) | ((C3 & #038; 0xc0) >> 6)],
chars[(C3 & #038; 0x3F)]
);
i+=3;
}
return Buf.join ("")
}
}
//]]></script>
<strong>email Address Encryption </strong>
Email:
<input id= "Email" type= "hidden" name= "email" size= "50″value=" www54@66mo.biz "/>"
<input onclick= "document.getElementById (' export '). Value=getemail (document.getElementById (' email '). Value)" Type= "button" Name= "Submit" value= "Encryption"/>
<input onclick= "document.getElementById (' Preview '). Innerhtml=getemail (' email '). Value "Type=" button "Name=" submit2″value= "Click to view Email"/> <span id= "preview" style= "color: #ff0000;" > </span>
Results
<input id= "Export" type= "text" name= "Export" size= "76″/>"