JAddTo 0.2

Background:

Recently, I had the need to promote a web page. I decided to put up a series of "Add To Digg"-type links. After collecting a bunch of them, I figured that this would make a good JQuery plugin. So I wrote it.

How To:

To use JAddTo, first add the stylesheet and script references to the head section. Make sure to include a reference to JQuery. Your references should look like this:
<link rel="stylesheet" href="Stylesheets/jquery.jaddto.css" type="text/css" media="print, projection, screen"> <script src="JavaScript/jquery-1.2.1.pack.js"></script> <script type="text/javascript" src="JavaScript/jquery.JAddTo.js"></script>
Next, initialize JAddTo like so:
<script> $(document).ready(function(){ $("#Example1").JAddTo(); }); </script>
The result looks like this:
You can also set various options.
Here's an example of the options in use. The following example would add only Yahoo!, Digg, and Technorati links (in that order) along with a custom "Shooting for A Cause" link (using the Spurl image). The example also utilizes a changed PageURL, PageTitle, and ButtonTitle:
<script> $(document).ready(function(){ $("#Example2").JAddTo({ IncludeSites: [ "Yahoo!", "Digg", "Technorati", { LinkURL: "http://www.shootingforacause.com/2008/", LinkImage: "images/addlinks/spurl.png", LinkTitle: "SFC!" }], PageURL: "http://www.ShootingForACause.com/2008/", PageTitle: "Shooting For A Cause", ButtonTitle: "Bookmark SFC:" }); }); </script>
The result looks like this:
Here's another options example. The following example would add only Yahoo!, Digg, and Technorati links (as before), but this time would also use some custom CSS Classes, hide the ButtonTitle section, and would put the icon's text to the right of the icons.
<script> $(document).ready(function(){ $("#Example3").JAddTo({ IncludeSites: [ "Yahoo!", "Digg", "Technorati"], PageURL: "http://www.ShootingForACause.com/2008/", PageTitle: "Shooting For A Cause", HideTitle: true, AddToLinks: "LinksExample3", SiteListClass: "LinksExample3List", ShowText: "right" }); }); </script>
The result looks like this:

Revisions:

Planned Improvements: