Fri
Feb
13

Ever wondered how to create a bookmark feature for your website? This is how to do it. This code only works in IE. It will display a message to other browsers showing them how to bookmark.

Source Code

<script LANGUAGE=”Javascript”>
<!– Begin
if ((navigator.appName == “Microsoft Internet Explorer”) && (parseInt(navigator.appVersion) >= 4)) {
var url=”http://www.snidge.com”;
var title=”Web Design & Development”;

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>

Leave a Reply












Enter Code (required)


  Copyright © 2009 Snidge.com. All rights reserved.