This is a JQuery plugin I have been working on to try to eliminate; if not help, fight spam through bots and such going through websites and scraping email addresses.
Basically it works like this: You add the emails in a certain way in your code, be it yourname^yourcompany#com or however you want to add it. Then let the plugin work its magic. The code will be shown as above, but will behave as if you had typed in yourname@yourcompany.com. Simple huh? Well here we go:
Javascript
1 2 3 4 5 6 7 8 9 10 | <script> $(document).ready(function(){ // example 1 $('a[rel*=spemail]').spemail('|,:','linkbase'); // example 2 $('#email').spemail('|,:','mailbase'); // example 3 $('#plainemail').spemail('|,:','plainbase'); }); </script> |
HTML
1 2 3 | <p><strong>Example 1:</strong> <a href="yourname|yourcompany:com" rel="spemail"></a></p> <p><strong>Example 2:</strong> <span id="email">yourname|yourcompany:net</span></p> <p><strong>Example 3:</strong> <span id="plainemail">yourname|yourcompany:net</span></p> |
As you can see in the examples above, the code in the DOM, will handle specific email pieces based on their ID or rel. Try it out and see. It works well.
Check out a live example of Fighting spam from inline email addresses using JQuery
or
Download the Fighting spam from inline email addresses using JQuery Plugin – Version 1.0 source files
Tags: DOM, email, Javascript, jQuery




Comment By: Web design bookmarks of the week.
March 28th, 2009 at 5:54 am
[...] Fighting spam from inline email addresses using JQuery Plugin [...]
Comment By: » Faire apparaître son adresse email sans se faire spammer avec JQuery // JQuery, PHP, html, design… // arnaud-k : un blog de geek
August 10th, 2009 at 6:36 am
[...] plugin JQuery « fighting spam from inline email addresses » permet de pouvoir afficher (et même faire un lien) son adresse email sur son site [...]