JavaScript code for Bookmarking for FF

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Marshal
    Biz Dev and SEO
    • Jun 2005
    • 15219

    #1

    JavaScript code for Bookmarking for FF

    Anyone got a working bookmarking code for both IE and FF? I expect Smokey the Bear to come up with the solution soon...
    ---
    Busy ranking websites on Google...
  • calmlikeabomb
    Confirmed User
    • May 2004
    • 1323

    #2
    Yes. Will I share it? No.
    subarus.

    Comment

    • teg0
      Confirmed User
      • Jan 2006
      • 4204

      #3
      I see this used sometimes. Seems to work:

      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('Domain Name', 'http://www.domainname.com')">Bookmark Link</a>

      Comment

      • Marshal
        Biz Dev and SEO
        • Jun 2005
        • 15219

        #4
        i'll give it a shot... thanks!
        ---
        Busy ranking websites on Google...

        Comment

        • Marshal
          Biz Dev and SEO
          • Jun 2005
          • 15219

          #5
          anyone have "Make Homepage" JScript for FF?
          ---
          Busy ranking websites on Google...

          Comment

          • SmokeyTheBear
            ►SouthOfHeaven
            • Jun 2004
            • 28609

            #6
            i have both but to be honest i prefer the "addthis" button from www.addthis.com

            they give you a small bookmark button and it lets users add to favourites in both firefox and ie , and lets users add your page to many social bookmark sites like "digg" and such
            hatisblack at yahoo.com

            Comment

            • SmokeyTheBear
              ►SouthOfHeaven
              • Jun 2004
              • 28609

              #7
              heres a basic add to favourites for ie and firefox and "set as homepage" in ie

              Code:
              <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
              <head>
              <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
              <title>hello world</title>
              
              <script language="JavaScript1.2" type="text/javascript"> 
              function CreateBookmarkLink() { 
              title = "gfy kicks ass"; 
              url = "http://www.gfy.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; } 
              }
              </script>
              
              </head>
              <body bgcolor="#ffffff">
              <a href="javascript:CreateBookmarkLink();">Add to Favorites</a>
              <br><br>
              <a href="#" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.google.com');">Set homepage </a>
              </body>
              </html>
              hatisblack at yahoo.com

              Comment

              • VicD
                ICQ: 304-611-162
                • Feb 2005
                • 13245

                #8
                yep,'i'am using add this too on almost all my sites

                Comment

                • V_RocKs
                  Damn Right I Kiss Ass!
                  • Nov 2003
                  • 32449

                  #9
                  Originally posted by SmokeyTheBear
                  i have both but to be honest i prefer the "addthis" button from www.addthis.com

                  they give you a small bookmark button and it lets users add to favourites in both firefox and ie , and lets users add your page to many social bookmark sites like "digg" and such
                  Anyone ever Digg your page?

                  I wonder how many FF users don't realize the Favorites is the Bookmarks for them... and how many end up not bookmarking because it all just seems to complicated and web 1.5

                  Comment

                  • Twisted Dave
                    Confirmed User
                    • Mar 2006
                    • 3635

                    #10
                    Code:
                    <script language="JavaScript1.2">
                    			function addbookmark()
                    			{
                    		 		url="http://www.sitenamehere.com";
                    				title="Site Name Here";
                    				if (window.sidebar)
                    				{
                    					window.sidebar.addPanel(title, url, "");
                    				}
                    				else if(window.external)
                    				{
                    					window.external.AddFavorite(url, title)	;
                    				}
                    				
                    			}
                    		</script>
                    Code:
                    <a href="javascript:addbookmark()">


                    Custom Cartoon Mascots - ICQ: 243355699, Email: [email protected] or Click Sig - 15% referrals. Send me clients, make money!

                    Comment

                    • LFCII
                      Confirmed User
                      • Feb 2004
                      • 124

                      #11
                      <script type="text/javascript">

                      /***********************************************
                      * Bookmark site script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
                      * This notice MUST stay intact for legal use
                      * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
                      ***********************************************/

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

                      </script>

                      <a href="javascript:bookmarksite('title', 'http://www.yourdomain.com')">Bookmark Us!</a>
                      Tchau

                      Comment

                      • SmokeyTheBear
                        ►SouthOfHeaven
                        • Jun 2004
                        • 28609

                        #12
                        Originally posted by V_RocKs
                        Anyone ever Digg your page?

                        I wonder how many FF users don't realize the Favorites is the Bookmarks for them... and how many end up not bookmarking because it all just seems to complicated and web 1.5
                        yup lots , they include a sweet tool to record how many people are clicking the "addthis" button and what bookmarking site they chose
                        hatisblack at yahoo.com

                        Comment

                        Working...