Home / guides   Print version

Bookmark your page

Publish date 05/04/2008

Let users bookmark your page. It used to be simple, you added the page to your favorites in your browser and done.
But web 2 this has changed. Not only can user add the page to their profile on whatever social site they are on. They can share it with their friends.
Which open a totally new market for you as webmaster.

Handy code

Handy Javascript code, you can:
<script type="text/javascript">
  url = encodeURIComponent(location.href);
  title = document.title;
</script>

 

Favorites

The good old way, you add a page to your browser.
You can let users do it manually or you can use a small JavaScript:


<script language="JavaScript">
<!--
var bookmarkurl="http://www.example.com";
var bookmarktitle="Title of the site, like it will be in the bookmarks!";

function bookmark()
{
  window.external.AddFavorite(bookmarkurl,bookmarktitle);
}
//-->
</script>

<!-- the link -->
<a href="javascript:bookmark();" target="_self">Bookmark</a>

Digg.com

Digg is a site for people to discover and content from anyware on the web.
People can submit pages, document, photos and videos, this can then be voted on by other. And so grow in popularity.

Of course users need to be registered before they can submit pages.
Digg provides a simple JavaScript-code that does most of it:

<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
If you want to have more controle, the basic code for submition is:
http:://digg.com/submit?url=EXAMPLE.COM&title=TITLE&bodytext=DESCRIPTION&media=MEDIA&topic=TOPIC
url=EXAMPLE.COM
The url should be unique and not containing any session or user-specific data.
Maximum length is 255 characters and should be URL-encoded.
title=TITLE
Maximum length is 75 characters.
Also needs to be URL-encoded
bodytext=DESCRIPTION
Maximum length is 350.
Also URL-encoded.
media=MEDIA
Optional: Specifies the type of media; news,video or image (default is news)
topic=TOPIC
Optional: you can only add it to 1 topic
thumbnails=0
Optional: Disables the option to choose a thumbnail during submission. Works no matter which media type is specified.

MySpace.com

The most popular social network. the basic code for submition is:

http://www.myspace.com/index.cfm?fuseaction=postto&t=TITLE&c=DESCRIPTION&l=EXAMPLE.COM
Don't forget to URL-encode everything.

FaceBook

One of the biggest social website out there. To submit a page:

http://www.facebook.com/share.php?u=EXAMPLE.COM
Don't forget to URL-encode the link.

Reddit.com

A news sharing site that filters based on votes by their users.
To submit a page:

http://reddit.com/submit?url=EXAMPLE.COM&title=TITLE
Don't forget to URL-encode the link.

StumbleUpOn.com

A news sharing site.
To submit a page:

http://www.stumbleupon.com/submit?url=EXAMPLE.COM&title=TITLE
Don't forget to URL-encode the link.

Mixx

Another news sharing site.
To submit a page:

http://www.mixx.com/submit?page_url=EXAMPLE.COM
Don't forget to URL-encode the link.

del.icio.us

del.icio.us is a collection of favorites, a social bookmarkingwebsite.
You can keep track of your favorite blogs,articles,... and share them with your friends.
To submit a page:

http://del.icio.us/post?v=4&url=EXAMPLE.COM
Don't forget to URL-encode the link.

Yahoo!buzz

Yahoo!buzz features the most popular stories right now, submited by people around the web. The score is based upon votes, searches, emails, ...
Stories with the highest buzz score may be displayed on the Yahoo! homepage!

It is still in Beta and you as publisher need to be registered.

The are many more to list

 

TOP