Bookmark Button... surprised

Discussion in 'HTML & Website Design' started by oo7ml, Jan 27, 2008.

  1. #1
    Hi, i want to add a bookmark button to my site. I am very surprised that i haven't been able to find much info on this. I have searched google and this forum and i can't believe i still haven't found a script that works. Does anyone have any working script or tutorial on this, thanks in advance
     
    oo7ml, Jan 27, 2008 IP
  2. tritoch

    tritoch Member

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    <p><script LANGUAGE="Javascript">
    
    if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
    
    var url="http://forums.digitalpoint.com";
    var title="Digital Point Forums";
    
    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);
    }
    </script></p>
    Code (markup):
    That should do it :)
     
    tritoch, Jan 27, 2008 IP