Use
Using the Social Bookmarking Script is really easy. And it let YOU decide which social bookmark service you would like on your site.
Because every site has a different audience it is important to select some of the offered services, which suites your site and visitors best.
The script requires a simple HTML-call in the head of the pages it will be used on, and a call for every service.
Sample code
You have to put the following line in the head (between the <head>...</head>) of every page which should use the script:
Change /path/to/sbookmarks.js to the real path on your website.
You can use an external call to the script on our site and stay up to date. Read more...
The function-call
There is a function for every service.
All functions has the same syntax:
function(url,title);
Make sure to replace "function" with the call for the service you want. (Full list of functions)
The variables "url" and "title" are optional. If you just call function(); the url and title of the page will be used.
But as of version 2.0.0 it is possible to give a different URL and title. Usefull for giving the possibility to bookmark an article directly from an overview-page. (Like on many blogs)
Example for the simple form
This will give you a bookmark-link for the service Digg. If a user click on this link the title and url of the page itself will be used.
Example for the complex form
This will give you a bookmark-link for the service Digg. If a user click on this link he will bookmark the given URL with the given title.
You can replace # in both examples with the URL to the service, add an rel="nofollow" or other attributes to the a-tag as you like. When the user has javascript enabled a click on the link will be using the function-call of the script, and not the given url. So replacing # with the url of the service will help user who don't have JavaScript enabled (very few...)
You don't have to use this more complex form. But you can.

