My Business Directory  - Free 'bookmark site' code
Statistics
  • Active Links: 4719
  • Pending Links: 11
  • Todays Links: 24
  • Total Articles: 447
  • Total Categories: 16
  • Sub Categories: 725
Sponsors
Recommended

"Add to Favourites" script code

This script allows your visitors to easily bookmark your site by clicking on a link on the page. Works best with IE4+, Firefox 1.x+ and others.

 

Step 1. Copy the below code and paste it to your webpage between <head>  and  </head>

 

<script type="text/javascript">

/***********************************************
* Bookmark site script
* Provided by Website Toolbox Pro http://www.websitetoolboxpro.com
* and http://www.my-business-directory.com
* © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

function bookmarksite(title,url){
if (window.sidebar) // firefox
window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
var elem = document.createElement('a');
elem.setAttribute('href',url);
elem.setAttribute('title',title);
elem.setAttribute('rel','sidebar');
elem.click();
}
else if(document.all)// ie
window.external.AddFavorite(url, title);
}
</script>

 

Step 2. Create either an image or text link that will be used as the Bookmark Site link. Place this on your webpage where needed.

eg.

copy and paste this code....

<a href="javascript:bookmarksite(document.title, window.location.href)">Bookmark this site!</a>

Which will look like this, on your site...  Bookmark this site!

Articles
Comedy Videos - Have A Great Pastime
The article is dedicated to the ways of spending time with fun. Much attention is paid to watching comedy clips from movies and real life at entertainment websites.
Random Quote
Confusious says
man who sneezes without hanky takes matters into his own hands..
Your Link Here

Alexa
We Recommend
Advertisements

 

Global Directory Pages