For my site, Outdoor High Adventure, I want to have a bookamrk script on each page along with printing, email, etc.
[CODE]<script type=”text/javascript”>
/***********************************************
* 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>
<a href=”javascript:bookmarksite(‘Outdoor High Adventure’, ‘http://www.outdoorhighadventure.com’)”><IMG style=”PADDING-LEFT: 5px” src=”http://www.outdoorhighadventure.com/Star.png” align=right border=0></a>
For that script I need to change it so that it bookmarks the current page and title, not the one i preset. Also, this script doesn’t work in Safari, so unless someone has a script, I need it so that in Safari, when someone clicks it, a small text message appears saying it doesn’t work in safari. Thanks!