I am trying to add a javascript "Bookmark Us" script so users can simply add us to thier favorites but having problems finding where to put the code. Does anyone know how to do this?
Dynamic Drive DHTML Scripts- Bookmark Site script
Code:
<script type="text/javascript">
Step 1: Add the below code to the <head> section of your page:
/***********************************************
* Bookmark site script- © 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
***********************************************/
/* Modified to support Opera */
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> Code:
Step 2: Create either an image or text link that will be used as the Bookmark Site link. For the href attribute, use the following code:
javascript:bookmarksite('title_of_site', 'url_of_site')Here's an example:
<a href="javascript:bookmarksite('Dynamic Drive', 'http://www.dynamicdrive.com')">Bookmark this site!</a>
Remember, if your site's title contains apostrophes, they need to be backslashed when entered:
<a href="javascript:bookmarksite('Mike\'s Place', 'http://www.google.com')">Bookmark this site!</a> 




Linear Mode




