Daniel Camargo


jQuery Mailto Anti-Spam

04/03/2010

Some months ago I buit a jQuery plugin in order to hide my email address of spammers robots.

Options

The config is very very simples. It’s something like that:

/* You can change the highlighted informations: */
{
	domain: 'gmail',
	extension: 'com',
	country : '' /* like br, au, uk... */,
}

Calling the script

All you need to do is call the script.

$('span.mail').mailto({'domain':'gmail', 'extension':'com'});

Considering that you have this code your page

	<span class="mail">
		pererinha
	</span>

Demo, demo, demo…

jQuery maito plugin – demo.

You can download the code from jquery-mailto on github.com.

Bookmark and Share

Comments

Leave a Reply