jQuery: Share it!

A JQuery plugin to display social bookmarking icons


Overview

jQuery Share It! Hides and toggles a group of social bookmark icons with a nice slide animation.

This plugin was developed using jQuery, obstrusive Javascript, and CSS by Joan Piedra. Thanks to Daniel Esteban for the idea.


Code

CSS and JS calls

<link rel="stylesheet" type="text/css" href="shareit.css" media="screen" />

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.shareit.js"></script> <script type="text/javascript">
$(document).ready(function() {
$("a.bmarks-btn").shareitBtn(); // the button function
$(".bmarks a").shareitHover(); // the hover effect (optional)
});
</script>

HTML / XHTML

<p><a href="#bmarks-10" class="bmarks-btn">Social Bookmarking</a></p>
<div id="bmarks-10" class="bmarks">
<div class="inner">
<p>
<a href="#delicious" title="del.icio.us"><img src="images/delicious.gif" alt="del.icio.us" /></a>
<a href="#digg" title="Digg"><img src="images/digg.gif" alt="Digg" /></a>
<a href="#technorati" title="Technorati"><img src="images/technorati.gif" alt="Technorati" /></a>
</p>
<p class="tip">Bookmark me!</p>
</div>
</div>

Demo

Social Bookmarking (click me)

del.icio.us Digg Furl Netscape Yahoo! My Web Technorati Google Bookmarks Newsvine BlinkList del.icio.us Digg Furl Netscape Yahoo! My Web Technorati Google Bookmarks Newsvine BlinkList del.icio.us Digg Furl Netscape Yahoo! My Web Technorati Google Bookmarks Newsvine BlinkList

Bookmark me!


Support

This script has been tested with the following browsers.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.