/* * jQuery aMail plug-in 1.0 * (c) 2009 Max Ya ( http://iHackWeb.com ) * Inspired by epemail plugin/ * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * /*email without title - <a class="email">mail(at)domain(dot)com</a> */
$.fn.amail = function(sAt,sDot,sRepl){if (!sAt)	sAt = '(at)';if (!sDot)sDot = '(dot)';this.each(function() {el = $(this);var mail = el.text().replace(sAt,'@').replace(sDot,'.');
el.each(function(){el.attr('href','mailto:' + mail);el.html(mail);});});};/* configuration */$(document).ready(function(){$('.email').amail('(at)','(dot)');});
