Revision: 35677
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 12, 2010 00:09 by touffies
Initial Code
/* ------------------------------------------------------------------ External Link ---------------------------------------------------- */ $.fn.externalLinks = function(arrDomains) { return this.each( function() { $("a", this) .filter(function(){ for ( var i=0; i < arrDomains.length; i++ ){ if(this.href.indexOf(arrDomains[i])>-1 ) { return false; }else{ return true; } } }) .attr({ target:"_blank", rel:"external" }); }); };
Initial URL
Initial Description
Initial Title
Function ExternalLinks with array of domains
Initial Tags
jquery
Initial Language
jQuery