I have two image buttons, One for " Bookmark Us" and one for " Make us your Homepage" What two scripts do i need to make these work. Thanx peeps
Here is the bookmark one that I use. I think the make us your homepage is a waste of space, because unless you're yahoo, msn or google, nobody is going to use it. Bookmark: <script> var urlAddress = "http://www.mysite.com"; var pageName = "My Amazing Site"; function addToFavorites(){ if (window.external){ window.external.AddFavorite(urlAddress,pageName) }else{ alert("Sorry, but your browser doesn't support this function.\n Press 'Ctrl D' to bookmark.")</script> Code (markup):
I use hotscripts.com or javafile.com for all my scripts; they're both pretty good. Hope this helps with future script needs.
Sorry about that. I forgot to post the html code. You can use any type of link. <a href="javascript:addToFavorites()">Bookmark This Page</a> <a href="javascript:addToFavorites()"><img src="myimage.jpg" /></a> Code (markup):