Results 1 to 12 of 12
  1. #1
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    Nunya, Business
    Posts
    23,684
    Bookmark This Site, Make Homepage html/javascript for Firefox?
    Hello, was just checking an old site in Firefox and noticed the Make This Site Your Homepage and Bookmark This Site links don't work with Firefox only IE. I was wondering if anybody had something or where to go to get it. Thanks.

  2. #2
    Roll Tide mobilebadboy's Avatar
    Join Date
    January 18th, 2005
    Location
    Mobile, Alabama
    Posts
    1,220
    Trust, here's a bookmark script I pieced together a while back. It works in IE, Firefox and Netscape. Just change the first 2 variables. It's slightly buggy in Netscape, it works but sometimes you have to click the link twice.

    Code:
    function bookmark(){
    var title = 'Title of Bookmark';
    var url = 'http://yourdomain.com';
       if (document.all)
         window.external.AddFavorite(url, title);
       else if (window.sidebar)
         window.sidebar.addPanel(title, url, "")
       else if (window.sidebar&&window.sidebar.addPanel)
         window.sidebar.addPanel(title,url,"");
    }
    document.all covers IE, window.sidebar covers FireFox and the 3rd one covers Netscape.

    Code:
    <a href="javascript:bookmark()">Bookmark this site</a>

    Shawn Kerr (.com) | Disney World | SEC Football

  3. #3
    What's the word? Rhia7's Avatar
    Join Date
    January 13th, 2006
    Posts
    9,578
    Lightbulb Dynamic Drive DHTML Script to set homepage
    This is from:
    Set site as homepage Script

    Simply add the below code to the <body> section of your page:
    Code:
    <a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://dynamicdrive.com');">Click here to make Dynamic Drive your default homepage</a>
    Compatibility
    * IE5+: IE 5 and above # FF1+: Firefox 1.0+. NS6+ and FF beta are assumed as well.
    # Opr7+: Opera 7 and above.
    Dynamic Drive DHTML looks like an interesting & helpful site.

    I hope this helps
    ~Rhia7 -- Remember the 7
    Twitter me

  4. #4
    Newbie
    Join Date
    January 6th, 2008
    Posts
    2
    Talking Make Homepage Script Correction
    Quote Originally Posted by Rhia7
    This is from:
    Set site as homepage Script



    Code:
    <a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://dynamicdrive.com');">Click here to make Dynamic Drive your default homepage</a>
    Compatibility


    Dynamic Drive DHTML looks like an interesting & helpful site.

    I hope this helps

    In regards to this script working in Firefox, Opera, etc. - it doesn't. It only works in IE. In fact, if you follow the link to the page where the script resides at Dynamic Drive, the author even states it is for IE5.

    I'm still looking for a reliable "Make Site Homepage" script that works in Firefox, Opera, and IE. When I find one, I'll post the info here.

    Matt

  5. #5
    ABW Ambassador Daniel M. Clark's Avatar
    Join Date
    January 7th, 2006
    Location
    Houston, TX
    Posts
    2,082
    I didn't know people still used those... they seem so... 1999 to me. I think I'm looking at them wrong!

  6. #6
    Newbie
    Join Date
    January 6th, 2008
    Posts
    2
    Talking
    Hectic:

    The "bookmark this page" and "make this site your homepage" scripts are alive and well and still an excellent technique to drive more traffic to a website.

    Many of the top websites (in fact, millions) on the Web today use these two techniques to obtain new visitors, as well as keep existing ones coming back.

    Your comment,

    "I didn't know people still used those... they seem so... 1999 to me"

    indicates a lack of knowledge in terms of good site design and traffic building strategies on your part.

  7. #7
    ABW Ambassador Daniel M. Clark's Avatar
    Join Date
    January 7th, 2006
    Location
    Houston, TX
    Posts
    2,082
    Yeah, either that or maybe I just have a different perspective than you do. All I said was that it seems old school to me, and then I SAID that I was probably looking at them wrong.

    Way to start off on the right foot here, insulting another member.

  8. #8
    Beachy Bill's Avatar
    Join Date
    November 20th, 2005
    Posts
    8,266
    Quote Originally Posted by mmiller751
    ...Your comment,

    "I didn't know people still used those... they seem so... 1999 to me"

    indicates a lack of knowledge in terms of good site design and traffic building strategies on your part.
    That was certainly uncalled for.
    Bill / Marketing Blog @ 12PM - Current project: Resurrecting my "baby" at South Baltimore..
    Cute Personal Checks and Business Checks
    If you are too busy to laugh you are too busy.

  9. #9
    Moderator MichaelColey's Avatar
    Join Date
    January 18th, 2005
    Location
    Mansfield, TX
    Posts
    16,232
    Matt: There's no place on ABW for personal insults. Your post has been deleted. Let's keep it civil please, or you'll get banned.

    As for bookmarks, it is "old school" but the concept is making quite a comeback with Web 2.0. For instance, consider social bookmarking widgets like AddThis. I think that's probably the best way to go (and that's what I switched to on my sites).
    Michael Coley
    Amazing-Bargains.com
     Affiliate Tips | Merchant Best Practices | Affiliate Friendly? | Couponing | CPA Networks? | ABW Tips | Activating Affiliates
    "Education is the most powerful weapon which you can use to change the world." Nelson Mandela

  10. #10
    ABW Ambassador Daniel M. Clark's Avatar
    Join Date
    January 7th, 2006
    Location
    Houston, TX
    Posts
    2,082
    Thank you, Michael.

    I wasn't thinking of the AddThis type of tools (which I use myself), I was thinking back to the pleas to "Press CTRL-D to bookmark us!" like we used to see all the time years ago but are rarely used now. Thanks for making that connection

  11. #11
    Newbie manish2410's Avatar
    Join Date
    January 24th, 2008
    Posts
    1
    Javascript Code For "BOOKMARK THIS PAGE" Works in IE, FF and OPERA
    COPY CODE GIVEN BELOW WHERE YOU WANT LINK TO DISPLAY:


    <script language="javascript" type="text/javascript">

    function CreateBookmarkLink() {

    title = "YAHOO";

    url = "http://www.yahoo.com";

    if (window.sidebar) { // Mozilla Firefox Bookmark
    window.sidebar.addPanel(title, url,"");
    } else if( window.external ) { // IE Favorite
    window.external.AddFavorite( url, title); }
    else if(window.opera && window.print) { // Opera Hotlist
    return true; }
    }
    document.write('<a href ="javascript:CreateBookmarkLink()");">MAKE YAHOO YOUR HOMEPAGE</a>');
    } else if (window.sidebar) {
    document.write('<a href ="javascript:CreateBookmarkLink()");">MAKE YAHOO YOUR HOMEPAGE</a>');
    } else if (window.opera && window.print) {
    document.write('<a href ="javascript:CreateBookmarkLink()");">MAKE YAHOO YOUR HOMEPAGE</a>');
    }
    </script>
    Last edited by manish2410; January 24th, 2008 at 05:33 AM. Reason: because the original site name given in this code was one, i am working...

  12. #12
    Newbie
    Join Date
    February 21st, 2008
    Posts
    4
    Bookmarking, not old school!
    Personally, I wouldn't use the javascript code. I used to use AddThis, and then ShareThis, and finally settled on Siphs. They're fairly new but i like that they give me an RSS feed of the shared content. Put that through feedburner and adsense and wala - another revenue generator for the old blog.

    That aside, adding to the browser bookmarks is definitely not old school! I don't know if any of you follow the Techcrunch blog, but according to the sharing stats from their site, Browser Favorites are among the most used places despite the prevalence of social bookmarking sites. Again, use one the free services - you won't have to worry about the javascript code - let the guys who give this stuff away for free worry about it.

  13. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Make Html Site Mobile Friendly?
    By Justdoit in forum Midnight Cafe'
    Replies: 22
    Last Post: May 1st, 2014, 03:00 PM
  2. CJ: Javascript v. HTML Links
    By Siamese Cats in forum Blogging, Mobile and Social Media
    Replies: 1
    Last Post: January 11th, 2011, 06:19 PM
  3. Do you prefer javascript or html links?
    By loxly in forum Voting Booth
    Replies: 16
    Last Post: June 4th, 2006, 04:49 PM
  4. Redirect Preference: javascript or html?
    By tomslickaff in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: July 19th, 2004, 06:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •