15 June 2007

Social Bookmarking JavaScript

Everyone seems to be added a plethora of bookmarking widgets to there site … some people really go over board. Here is a little JavaScript file to aide in the madness that is Social bookmarks…

write out right here


//just write code here
SocialBookmarking.writeBookmarks
    (false,false,["digg","delicious"]);

replace a div whose id=“social_bookmarking”

[replace_me]

//onload or domready 
//replace DIV with id="social_bookmarking"
SocialBookmarking.replaceDIV
  ('social_bookmarking',false,false,["technorati","reddit"]);

grab a single HREF reference


var stumble = SocialBookmarking.getBookmarkItem
(
   SocialBookmarking.bookmarks["stumbleupon"]
);
document.write(stumble);

add new bookmark (not in default set) + custom css


SocialBookmarking.addCSS('c/screen.css');
SocialBookmarking.addBookmark
    (
     'newsvine',
     'http://www.newsvine.com/_tools/seed&save?
     u=%%URL%%&h=%%TITLE%%',
     'Newsvine'
    );
SocialBookmarking.writeBookmarks
    (false,false,["slashdot","facebook","newsvine"]);


da source…

SocialBookmarking.zip

 

best of the best it is,

2008-07-27
name

Site has been moved

nuff-respec.com is no longer being updated. Please head over to dbulli.com for new content