jQuery plug-in for creating e-mail link from element which contain hidden data about e-mail. This is good for hidding e-mail link from crawling by robot.
Download (.js file)
$(document).ready(function() {
$('.mail').emailAntispam({
'emailAT' : '[at]',
'emailDOT' : '[dot]',
'eparser' : ',',
'enam' : 'info',
'edom' : 'domain',
'etld' : 'cz'
});
});
General set up info: to set default part just leave blank given part in html code.
html code:
<a class=”mail”>name,domain,tld</a>
Render:
<a href=”mailto:name@domain.tld”>name[at]domain[dot]tld</a>
live:name,domain,tld
html code:
<a class="mail" href=""></a>
Render:
<a href=”mailto:name@domain.tld”>name[at]domain[dot]tld</a>
html code:
<a class="mail" href="">name</a>
Render:
<a href=”mailto:name@domain.tld”>name[at]domain[dot]tld</a>
live:name
html code:
<a class="mail" href="">,domain</a>
Render:
<a href=”mailto:name@domain.tld”>name[at]domain[dot]tld</a>
live:,domain
html code:
<a class="mail" href="">,,tld</a>
Render:
<a href=”mailto:name@domain.tld”>name[at]domain[dot]tld</a>
live:,,tld
html code:
<a class="mail" href="">,domain,tld</a>
Render:
<a href=”mailto:name@domain.tld”>name[at]domain[dot]tld</a>
live:,domain,tld
html code:
<a class="mail" href="">name,domain,tld,content</a>
Render:
<a href=”mailto:name@domain.tld”>content</a>
MIT licence or Apache licence 2
- basically free for use
- leave note of copyright would be appreciated, thanks
-