/ Published in: HTML
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
window.addEvent('domready', function() { $each($$('.email'), function(el) { var anchor = new Element('a', { href: 'mailto:' + el.get('rel').replace('|','@'), 'class': el.get('class'), }).replaces(el); }); });