HI. I was wondering if someone can tell me where i can find a script or code to add to my page so that people can add my site as their home page or bookmark it if they wanted to. i tried dynamic drive but wasn't that helpful. thanks.
So far I've been using this one and it works perfect for me: paste this between your <head> tags: <script type="text/javascript"> function bookmark_us(url, title){ 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 (markup): This is your bookmarks link:
I've got one I made to use on my site that I know works in the latest versions of IE, FF and Opera (so IE7, FF2 and 3, Opera 9): I put this in a file called bookmark.js function bookmarksite(title,url){ if (window.sidebar) window.sidebar.addPanel(title, url, ""); else if(window.opera && window.print){ var elem = document.createElement('a'); elem.setAttribute('href',url); elem.setAttribute('title',title); elem.setAttribute('rel','sidebar'); elem.click(); } else if(document.all) window.external.AddFavorite(url, title); } Code (markup): Then add this to the head section of my site: <script type="text/JavaScript" src="http://www.freedivs.com/javascript/bookmark.js"></script> Code (markup): Then add this as the bookmark link: <a href="javascript:bookmarksite('Site Name', 'URL')" title="bookmark" id="bookmark-link">Bookmark Us</a> Code (markup):
Here is a list of what they said they can do, where does it say about making the site your homepage or to bookmark it (in the browser - not social bookmarks) » Easy Bookmarking & Sharing » Spreads Your Content » Removes Clutter » Fast and Reliable » Easily Customizable » For Websites and Blogs » Completely Free