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

 

comment

what they saidwho said it

best of the best it is,

2008-07-27
name


note: you can only submit after you hit preview


nuff-respec is a weblog written by daniel bulli a senior web programmer in boston, ma.
more >

contact | resume | profile | twitter

recently :::

diversions :::

45+ Amazing Insect Shots in Photography
Insects are one of the most fascinating creatures on earth. There are more than 800, 000 species of insects in the world.
Grayscale color | Stroep Blog
This is how I create a grayscale color in actionscript 3.
Google Flash API
This is great ... google has made this easy ... stay tuned to see what i am working on ...
25 Free Mac Apps That Will Boost Your Productivity
There are many applications that can help you work faster and efficiently. Though, not many applications come cheap.
you still want more »