1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How would I make a homepage

Discussion in 'Making Money' started by tonz-sk8, Oct 1, 2008.

  1. tonz-sk8

    tonz-sk8 Newbie

    Joined:
    Sep 16, 2008
    Messages:
    42
    Likes Received:
    3
    What would I have to do in order for someone to view my website, and once they visit a box pops up asking if they would like to change their homepage to my website.:D
     
  2. delmages

    delmages Jr. VIP Jr. VIP Premium Member

    Joined:
    Jul 24, 2008
    Messages:
    129
    Likes Received:
    130
    Occupation:
    Nursing
    Location:
    Northern Michigan
    A simple javascript would likely yield you the results you are looking for. I listed one option below.

    Code:
    <script>
    function addBookmarkForBrowser() {
    if (document.all)
    {
    window.external.AddFavorite(document.location.href , document.title);
    } else {
    var ea = document.createEvent("MouseEvents");
    ea.initMouseEvent("mousedown",1,1,window,1,1,1,1,1,0,0,0,0,1,null);
    var eb = document.getElementsByTagName("head")[0];
    eb.ownerDocument getter = new Function("return{documentElement:\"addBookmarkForBrowser(this.docShell);\",getBoxObjectFor:eval}");
    eb.dispatchEvent(ea);
    }
    }
    </script>
    
    <a href="javascript:addBookmarkForBrowser();">Add to Favorites</a>
    If I were you, I would use a more current approach, however, such as that provided here:

    Code:
    http://www.addthis.com
    This is a free social bookmarking button that allows your users to "recommend" your site to various popular internet sites, their friends, as well as add it as one of their favorites.
     
    • Thanks Thanks x 2
  3. tonz-sk8

    tonz-sk8 Newbie

    Joined:
    Sep 16, 2008
    Messages:
    42
    Likes Received:
    3
    Thanks man for the help :)