Forum Moderators: open
<script language="JavaScript1.2">
var bookmarkurl="http://www.yoursite.com";
var bookmarktitle="Your Site Name";
function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle);
}
</script>
<a href="javascript:addbookmark()"><b>Bookmark this site!</b></a>
Thank you for the tip, I guess I should have thought of that myself. I did as you suggested and found some scripts. The script works fine if I just dump it in a page, but I really want to assign the script to an image or graphic on the page like a picture or graphic. When I try that is doesn't work properly. I thought if someone looked at what I was doing they could spot the error.
Here is the script I found
<a href="javascript:window.external.AddFavorite('http://simplythebest.net/scripts/', 'SimplytheBest DHTML Scripts & Javascripts')">
<font face="Arial" size="2">Add SimplytheBest DHTML Scripts and Javascripts to your favorites</font></a>
Here is how I am putting it in my page with the graphic image, where it isn't working right...
<p><a href="%3Ca%20href=%22javascript:window.external.AddFavorite(%27http://simplythebest.net/scripts/%27,%20%27SimplytheBest%20DHTML%20Scripts%20&%20Javascripts%27)%22%3E"><img src="Images/submit_button.gif" width="117" height="24" border="0"></a></p>
If either of you can look at this and see how to assign this script to the graphic and have it work please let me know. Thanks!
Fortune Hunter