Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev Author Line No. Line
93 jpm 1
/*Courriel() est basé sur les sources suivantes :
2
	http://www.html-advisor.com/javascript/hide-email-with-javascript-jquery/
3
	http://plugins.jquery.com/files/jquery.mailme.js.txt
4
*/
5
jQuery.fn.courriel = function() {
6
    var at = / \[arrobase\] /;
7
    var dot = / \[point\] /g;
8
    this.each( function() {
9
        var addr = jQuery(this).text().replace(at,"@").replace(dot,".");
10
        var title = jQuery(this).attr('title')
11
        $(this)
12
            .after('<a href="mailto:'+addr+'" title="'+title+'">'+ addr +'<\/a>')
13
            .remove();
14
    });
15
};