Return to Snippet

Revision: 26866
at May 13, 2010 11:02 by cs2css3


Initial Code
$(function(){
$("#contents a[href^='mailto']").after("<span class='iconmail'>&nbsp;</span>");
$("#contents a[href$='pdf']").after("<span class='iconpdf'>&nbsp;</span>").click(function(){window.open(this.href, '_blank');return false;});
$("#contents a[href$='xls']").after("<span class='iconxls'>&nbsp;</span>").click(function(){window.open(this.href, '_blank');return false;});
$("#contents a[href$='doc']").after("<span class='icondoc'>&nbsp;</span>").click(function(){window.open(this.href, '_blank');return false;});
$("#contents a[href^=http://]").not("#contents a[href^=thisPage], #contents a[href$='pdf'], #contents a[href$='xls'], #contents a[href$='doc']").after("<span class='extlink'>&nbsp;</span>").click(function(){
	window.open(this.href, '_blank');return false;
	});
});

Initial URL

                                

Initial Description

                                

Initial Title
cs2css3's extention

Initial Tags
javascript, jquery

Initial Language
jQuery