A Boomark Us Button That Works In Firefox?

Discussion in 'HTML & Website Design' started by skaterkee, Nov 30, 2008.

  1. #1
    I can't for the life of me find some code or java script that allows a Bookmark Us, Add To Favorites type button that works in Firefox. Anyone got any idea?
     
    skaterkee, Nov 30, 2008 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    drhowarddrfine, Nov 30, 2008 IP
  3. skaterkee

    skaterkee Well-Known Member

    Messages:
    651
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    138
    #3
    What on earth was that?
     
    skaterkee, Nov 30, 2008 IP
  4. skaterkee

    skaterkee Well-Known Member

    Messages:
    651
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    138
    #4
    Anyone else got some real feedback? I'm sure this must be very easy for some?
     
    skaterkee, Dec 1, 2008 IP
  5. innovati

    innovati Peon

    Messages:
    948
    Likes Received:
    63
    Best Answers:
    1
    Trophy Points:
    0
    #5
    innovati, Dec 1, 2008 IP
  6. skaterkee

    skaterkee Well-Known Member

    Messages:
    651
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    138
    #6
    Ohhhh I get what that google thing is now. Never seen it before, sorry for being ignorant to the guy above.

    Does that go in the head tags? And what do I place on my actual page for them to click? Sorry for being a complete noob.
     
    skaterkee, Dec 2, 2008 IP
  7. i.run.shit

    i.run.shit Peon

    Messages:
    61
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Don't bet money on it, because I am no guru of javascript. It looks like that code would actually go right before the link for your bookmarks, in your <body> tag. Then this section of the code will dictate which javascript function to use depending upon your browser. You can change the text "Add to Favorites", "Bookmark Page", and "Add Bookmark" to whatever you want.

    if (window.external) {
      document.write('<a href = 
         "javascript:CreateBookmarkLink()");">Add to Favorites</a>'); 
      } else  if (window.sidebar) {
      document.write('<a href = 
        "javascript:CreateBookmarkLink()");">Bookmark Page</a>'); 
     } else if (window.opera && window.print) {	
       document.write('<a href =
         "javascript:CreateBookmarkLink()");">Add Bookmark</a>');
     } 
    Code (markup):
    P.S. : I looked at someone's source code who was using the script. They announced that it "works fine" for them. So I went to their site and checked their source code out. They have the script where they wanted the link to show.
     
    i.run.shit, Dec 2, 2008 IP
  8. skaterkee

    skaterkee Well-Known Member

    Messages:
    651
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    138
    #8
    Thanks a lot mate.
     
    skaterkee, Dec 2, 2008 IP