web 2.0

Code for adding the project to bookmarks

Monday, March 13th, 2006

Add the project to del.icio.us
http://del.icio.us/post?title=code.techinterviews.com&url=http://code.techinterviews.com
Post a project on digg.com
http://digg.com/submit?phase=2&url=http://code.techinterviews.com
Add the site to bookmarks:

function add2Bookmarks(title,url) {
  if (window.sidebar) {
   window.sidebar.addPanel(title, url,”");
 } else if( document.all ) {
    window.external.AddFavorite( url, title);
 } else if( window.opera && window.print ) {
    return true;
 }
}

<a href=”#” onmousedown=”add2Bookmarks(’code.techinterviews.com’,'http://code.techinterviews.com’)”>
<img src=”project.gif” alt=”bookmark” border=”0″> Put this site to Your bookmarks
</a>

Keep on coding