/ Published in: JavaScript
URL: http://23rdworld.com/2009/04/08/email-protection-using-css/
This is a simple (comparatively) way to protect email addresses from spam bots, starting with JavaScript mail link, but unlike most scripts there is still an email address available to the user (optional) using a CSS hack to protect it - so it is selectable but not an actual mailto:link.
Expand |
Embed | Plain Text
<style type="text/css"> .backwards { unicode-bidi:bidi-override; direction: rtl;font-weight:bold; } </style> <script type="text/javascript"> <!-- linkAddy=('alias' + '@' + 'yourdomain.com') document.write('<a href="mailto:' + linkAddy + '">' + linkAddy + '</a>') //--> </script> <noscript> <p>Please email me at <strong><span class="backwards">moc.niamodruoy@saila</span> </strong>.<br /></p> </noscript>
You need to login to post a comment.
