Add to favorites script, Bookmark script

If you want to add a little star on your page that when click upon the user will save your site to his favorites, add this to your page, below the <head>:

 

<script
language="JavaScript">
function addbookmark()
{
bookmarkurl="http://www.yoursite.com/"
bookmarktitle="your site"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
</script>

 

Then put this part where you want to see the actual button (you can also use text link if you want):

<a
href="javascript:addbookmark()"><img
src="http://www.webmasterspy.com/images/favorites1.gif" alt="Add to
Favorites" name="Image40" border="0" height="28"
width="33"></a>

Now you can see a little bookmark star on your page. When you click on it you'll be asked to save the page to your favorites.

{jumi [javascript/links.html]}