Subversion Repositories eFlore/Applications.coel-consultation

Rev

Rev 93 | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*Courriel() est basé sur les sources suivantes :
        http://www.html-advisor.com/javascript/hide-email-with-javascript-jquery/
        http://plugins.jquery.com/files/jquery.mailme.js.txt
*/
jQuery.fn.courriel = function() {
    var at = / \[arrobase\] /;
    var dot = / \[point\] /g;
    this.each( function() {
        var addr = jQuery(this).text().replace(at,"@").replace(dot,".");
        var title = jQuery(this).attr('title')
        jq(this)
            .after('<a href="mailto:'+addr+'" title="'+title+'">'+ addr +'<\/a>')
            .remove();
    });
};