jcguy 0 Report post Posted November 13, 2004 I just discovered a pretty cool script for alowing your visitors to bokmark your site. Here is the javascript code: <script language="JavaScript"><!--// ==============================================// Copyright 2003 by jsCode.com// Source: jsCode.com// Author: etLux// Free for all; but please leave in the header.// ==============================================// message to show in non-IE browsersvar txt = "Bookmark Us!"// do not edit below this line// ===========================var url = this.location;var who = document.title;var ver = navigator.appNamevar num = parseInt(navigator.appVersion)if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) { document.write('<A HREF="javascript:window.external.AddFavorite(url,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> Script reproduced from http://www.jscode.com/js_auto_bookmark.shtml.I think this works only for IE. Anyone knows of one that works for Mozilla and Netscape too? Share this post Link to post Share on other sites
sirgalphan 0 Report post Posted November 16, 2004 I believe it only works for IE, notice how it has an 'if' asking for MIE? Share this post Link to post Share on other sites
pbolduc 0 Report post Posted December 16, 2004 Here is alot lighter script to do the job. It is a cross browser script as well. <script language="JavaScript1.2"> var bookmarkurl="URL Here"; var bookmarktitle="Title Here"; function addbookmark(){ if (document.all) window.external.AddFavorite(bookmarkurl,bookmarktitle); } </script> <a href="java script: addbookmark()">Bookmark Us</a> Share this post Link to post Share on other sites