This script when pasted into your Blogger template's s sidebar will create a link that automatically opens explorers "Favorites" dialog box and enters your URL and site name for your visitor to bookmark. In Firefox, Netscape and Opera browers it will display "Bookmark Us! (Ctrl+D). Although its easy enough for a visitor to click on the favorites tab and do this himself. The link will serve as a reminder for them to bookmark your page which will increase your sites repeat traffic.
You will have to change the blogatech address and name which are the text shown in red to that of your site.(be sure to leave the quotation marks as they are.)
<script>
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header
// message to show in non-IE browsers
var txt = "Bookmark Us!"
// url you wish to have bookmarked
var url = "http://blogatech.blogspot.com";
// caption to appear with bookmark
var who = "Blogatech"
// do not edit below this line
// ===========================
var ver = navigator.appName
var 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>
1 comment:
Firefox and Opera 7+ will popup a window to bookmark a page if the link (<a>) has a rel="sidebar" attribute set.
For an unobtrusive script that works in even more browsers, check out The Ultimate Add Bookmark Script
Post a Comment