I found this javascript wich claims to hide an email address from spambots.
Is it good in your opinion? I'm not a programmer and I'd like to know your opinions.
Code JavaScript:<script language="JavaScript" type="text/javascript"> // Example of usage with email address: [email]my-email-address@my-domain-name.com[/email] /////////////////////////////////////////////////////////////// // Encoded variables - do not modify var asciiend=(';'); // ascii code for ; - don't change it var a1=('ma')+('05'); // ascii code for mai - don't change it var a2=('lto&#')+('58'); // ascii code for lto: - don't change it var a4=('&#')+('46'); // ascii code for . (dot) - don't change it var a5=('&#')+('64'); // ascii code for @ (at) - don't change it var a6=('?')+('sub'); // ascii code for ?sub - don't change it var a7=('ject')+('='); // ascii code for ject= - don't change it /////////////////////////////////////////////////////////////// // Link text or image - link title - email subject - modify to your liking var text=('Click here'); // link text - change it to your liking or use an image: <img src="image_path.gif"> var titl=('Send email to:'); // link title - change it to your liking var subj=('Enter an email subject here'); // email subject - change it to what you prefer /////////////////////////////////////////////////////////////// // Beginning of email variables - modify to match your email address var part1=('my-email-address'); // first part of address (before @) - change it to match your address var part2=('my-domain-name'); // second part of address (after @) - change it to match your address var part3=('com'); // last part of address (.com .net .org - etc.) - change it to match your address // End of email variables /////////////////////////////////////////////////////////////// // encode and put parts of address together var em=(encodeURIComponent(('<')+('a ')+('hr')+('ef')+('=')+('"'))+(''+ a1 +'')+ (''+ asciiend +'')); var ai=(encodeURIComponent((''+ a2 +'')+(''+ asciiend +'')+(''+ part1 +'')+ (''+ a5 +''))); var l=(''+ part2 +''); var ad=(''+ a4 +''); var dr=(''+ part3 +''); var es=(encodeURIComponent(''+ a6 +'')+(''+ asciiend +'')); var s=(encodeURIComponent((''+ a7 +'')+(''+ asciiend +'')+(''+ subj +'')+('"')+ (' ')+('ti')+('tle')+('=')+('"')+(''+ titl +'')+(' ')+('' + part1 +'')+ (''+ a5 +'')+(''+ asciiend +'')+(''+ part2 +'')+(''+ a4 +'')+(''+ asciiend +'')+ (''+ part3 + '')+('">')+(''+ text +'')+('</')+('a>'))); var address=(escape((decodeURIComponent(''+ em +''))+(decodeURIComponent (''+ ai +''))+(''+ l +'')+(''+ ad +'')+(''+ dr +'')+(decodeURIComponent (''+ es +''))+(decodeURIComponent(''+ s +'')))); // decode and write address document.write(unescape(''+ address +'')); </script>






Bookmarks