Bookmarking Script

Give your sites the visitors the option of bookmarking your site. It's sure to keep traffic to your site steady. This script lets your visitors add your page to their favorites with one click. Its really simple to use too.

Add the following code anywhere in the Body section of your page:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if ((navigator.appName == "Microsoft Internet Explorer")
&& (parseInt(navigator.appVersion) >= 4)) {

var url="HTTP://YOURSITE.COM";
var title="YOUR SITE TITLE";

document.write('<A HREF="javascript:window.ext');
document.write('ernal.AddFavorite(url,title);" ');
document.write('onMouseOver=" window.status=');
document.write("'ADD OUR SITE TO YOUR FAVORITES!';
return true ");document.write('"onMouseOut="
window.status=');document.write("' '; return true ");
document.write('">Add our site to your favorites!</a>');
}
else {
var msg = "Don't forget to bookmark us!";
if(navigator.appName == "Netscape") msg += " (CTRL-D)";
document.write(msg);
}
// End -->
</script>


Change the variables ofcourse (in capital letters :: URL, site title and 'ADD OUR SITE TO YOUR FAVORITES' message) and you are done!

Note: Any questions regarding this tutorial should be asked here.


« Back