Es importante darle la opción a nuestros visitantes de guardar en sus favoritos ó marcadores nuestro blog. Este pequeño script hace uso de jQuery para agregar esta funcionalidad a nuestro sitio web. Esta probado en Firefox 3.0.10, IE 7 y 8, Google Chrome y Opera.

Código JavaScript:

<script language="javascript" type="text/javascript">
$(document).ready(function(){
$("a.jQueryBookmark").click(function(e){
e.preventDefault(); // this will prevent the anchor tag from going the user off to the link
var bookmarkUrl = this.href;
var bookmarkTitle = this.title;

if (window.sidebar) { // For Mozilla Firefox Bookmark
window.sidebar.addPanel(bookmarkTitle, bookmarkUrl,"");
} else if( window.external || document.all) { // For IE Favorite
window.external.AddFavorite( bookmarkUrl, bookmarkTitle);
} else if(window.opera) { // For Opera Browsers
$("a.jQueryBookmark").attr("href",bookmarkUrl);
$("a.jQueryBookmark").attr("title",bookmarkTitle);
$("a.jQueryBookmark").attr("rel","sidebar");
} else { // for other browsers which does not support
alert('Your browser does not support this bookmark action');
return false;
}
});
});
</script>

Aplicandolo en nuestro HTML, ejemplos:

<h2>Click on the respective links below to bookmark the same</h2>
<a href="http://www.developersnippets.com" title="developersnippets.com"
class="jQueryBookmark">DeveloperSnippets</a>,
<a href="http://www.techvideobytes.com" title="Tech Video Bytes"
class="jQueryBookmark">Tech Video Bytes</a>,
<a href="http://www.wittysparks.com" title="Witty Sparks"
class="jQueryBookmark">Witty Sparks</a>,
<a href="http://www.snehah.com/" title="Snehah.com"
class="jQueryBookmark">Snehah.com</a>

Vía DeveloperSnippets