bookmark code for ie and firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • geedub
    Confirmed User
    • Jun 2005
    • 3489

    #1

    bookmark code for ie and firefox

    whos got me a bookmark code that works in ie and firefox? thanks
    Reliable web host that actually cares, tell em geedub sent ya. Vacares
  • Angry Jew Cat - Banned for Life
    (felis madjewicus)
    • Jul 2006
    • 20368

    #2
    Code:
    <script type="text/javascript">
    function bookmarksite(title,url){
    if (window.sidebar) // firefox
    	window.sidebar.addPanel(title, url, "");
    else if(window.opera && window.print){ // opera
    	var elem = document.createElement('a');
    	elem.setAttribute('href',url);
    	elem.setAttribute('title',title);
    	elem.setAttribute('rel','sidebar');
    	elem.click();
    } 
    else if(document.all)// ie
    	window.external.AddFavorite(url, title);
    }
    </script>
    Code:
    <a href="javascript:bookmarksite('Page Name', 'http://www.yoururl.com')">

    Comment

    • geedub
      Confirmed User
      • Jun 2005
      • 3489

      #3
      thanks yo
      Reliable web host that actually cares, tell em geedub sent ya. Vacares

      Comment

      • Angry Jew Cat - Banned for Life
        (felis madjewicus)
        • Jul 2006
        • 20368

        #4
        no problem dawg

        Comment

        • Mistah Charlie
          Confirmed User
          • Nov 2007
          • 478

          #5
          Boobmark fucking rocks. Sending me tons of FREE traffic! Thanks, guys!
          "Gonna scare you up and shoot you
          Cause Mister Charlie told me so"

          Comment

          • Angry Jew Cat - Banned for Life
            (felis madjewicus)
            • Jul 2006
            • 20368

            #6
            Originally posted by Mistah Charlie
            Boobmark fucking rocks. Sending me tons of FREE traffic! Thanks, guys!
            what????

            Comment

            • PR_Sebas
              Confirmed User
              • Dec 2006
              • 2825

              #7
              Originally posted by ismokeblunts
              what????
              lol, i was just about to type the same thing

              Comment

              • bashbug
                Confirmed User
                • Oct 2005
                • 929

                #8
                does that put it in the sidebar in firefox?

                Comment

                • Diligent
                  Confirmed User
                  • Aug 2003
                  • 1594

                  #9
                  bashbug:

                  Yes it does, which is actually the only way in Firefox (done that way to protect users)... UNLESS You code up a script to do an "artificial click", I've seen it done but can't guide on that.

                  Anyways, it should be sufficient since it'll still appear in FF's normal bookmarks as well - I think... lol
                  ~¤~ MORE MONEY ~¤~ VOD? XoD! ~¤~
                  ~¤~ ICQ# 9828 2461 ~¤~

                  Comment

                  • Mistah Charlie
                    Confirmed User
                    • Nov 2007
                    • 478

                    #10
                    I'm a stoned idiot

                    Originally posted by ismokeblunts
                    what????
                    Nevermind me.
                    "Gonna scare you up and shoot you
                    Cause Mister Charlie told me so"

                    Comment

                    • Iron Fist
                      Too lazy to set a custom title
                      • Dec 2006
                      • 23400

                      #11
                      Nice... nothing that no script can't handle.
                      i like waffles

                      Comment

                      • draude
                        Confirmed User
                        • Nov 2006
                        • 1214

                        #12
                        function bookmarksite(title, url){
                        if (document.all)
                        window.external.AddFavorite(url, title);
                        else if (window.sidebar)
                        window.sidebar.addPanel(title, url, "")
                        }

                        <a href="javascript:bookmarksite('TITLE', URL')">XXX</a>
                        that works fine
                        Web Developer

                        Comment

                        • bashbug
                          Confirmed User
                          • Oct 2005
                          • 929

                          #13
                          Ya always wondered if that was the only way

                          Comment

                          Working...