jQuery.fn.addPrintLink = function() {
	var oLink = document.createElement('a');
	oLink.id = 'print-link'; // Give the link an id to allow styling
	oLink.href = '#'; // Make the link focusable for keyboard users
	oLink.className = 'print-icon';
	oLink.onclick = function() {window.print(); return false;} // Return false prevents the browser from following the link and jumping to the top of the page after printing
	
	var oImg = document.createElement('img');
	oImg.src = 'img/icono-imprimir.png';
	
	oLink.appendChild(oImg);
	this.append(oLink);
};

var laurl = document.location.href;;

jQuery.fn.addFacebookLink = function() {
	var eltitle = $('h4 a').text();
	var ellink = '<a class="fbLink" target="_blank" href="http://www.facebook.com/share.php?u='+laurl+'&t='+eltitle+'" title="compartir esta noticia en Facebook"><img src="img/facebook.gif" alt="logo de Facebook" /></a>';
	
	
	$('h3.facebook').append(ellink);
	

};





<a href="" title="Compartir en Facebook">Compartir en Facebook</a>