This may sound noobish lol . . . but here we go. How do I place a link on my site, that will enable someone to click on it and it will automatically add the site to their bookmarks or favourites. I have seen thhis on many sites. Thanks
Insert this code where you want the bookmark link to appear. Won't work in firefox, but you will get this to instruct the user 'Bookmark this Page (Ctrl+D)' <script> var txt = "Bookmark this Page" var url = "http://www.yoursite.com"; var who = "Your bookmark title" var ver = navigator.appName var num = parseInt(navigator.appVersion) if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) { document.write('<A HREF="javascript:window.external.AddFavorite(window.location,who);" '); document.write('onMouseOver=" window.status=') document.write("txt; return true ") document.write('"onMouseOut=" window.status=') document.write("' '; return true ") document.write('">'+ txt + '</a>') }else{ txt += " (Ctrl+D)" document.write(txt) } </script>
Even though you should never actually do that as it usually just pisses off the users passing through your site. If they want to bookmark your site, they'll bookmark it, don't shove the bookmark down their throat. To quote "Why the **** did this get added to my favorites? Well, I'm never visiting this piece of **** site again." BAD, BAD behavior.
Ummm. it's not automatic bookmarking. It is done by the user clicking on a link saying <bookmark this page>
You can also get an "all purpose" (mostly) Social Bookmarking Widget from a few places- addme.com is one. This enables people to choose which service(s) they want to bookmark your site to, They give you customizable script that seems to work with most of the BM services.