What's the code for adding to favorites and home page?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chaze
    Confirmed User
    • Aug 2002
    • 9775

    #1

    What's the code for adding to favorites and home page?

    Sorry it's been a while since had to add one.

    It's for this new mainstream site I am working on right now:

    http://www.marketingspot.com

    TY
    Like the desert needs the rain
    We do fully manged WordPress, VPS, and Servers. Adult Host Pro https://adulthostpro.com/ Since 2001
  • broke
    Confirmed User
    • Aug 2003
    • 4501

    #2
    Javascript:

    PHP Code:
    
    function addfav()
       {
       if (document.all)
          {
          window.external.AddFavorite ("{url here}","{title here}")
          }
       } 
    
    Perfect Gonzo

    Comment

    • chaze
      Confirmed User
      • Aug 2002
      • 9775

      #3
      Thanks, You wouldn't happen to have a example html sniplet with a link in it would ya?
      Like the desert needs the rain
      We do fully manged WordPress, VPS, and Servers. Adult Host Pro https://adulthostpro.com/ Since 2001

      Comment

      • imafuckingaussie
        Confirmed User
        • Jul 2003
        • 1497

        #4
        Originally posted by chaze
        Thanks, You wouldn't happen to have a example html sniplet with a link in it would ya?
        Hi Chaze, just check out some tgps, they nearly all have the add to favourites on them, and u can save the page and take the code/see how it works. Only the code though, nothing else lol

        You can get it ploughing a paddock, you can get it makin some porn sites, matter of fact I've got it now.

        For a hard earned thrist, you need a big cold beer.

        Comment

        • khs
          Confirmed User
          • Feb 2005
          • 1730

          #5
          Code:
                  <SCRIPT LANGUAGE="JavaScript">
          
          <!-- Begin
          if ((navigator.appName hahahaha "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
          
          var url="http://www.YourURL.com";
          var title="Your Description";
          
          document.write('<A HREF="javascript:window.ext');
          document.write('ernal.AddFavorite(url,title);" ');
          document.write('onMouseOver=" window.status=');
          document.write("'Bookmark YourURL.com!'; return true ");
          document.write('"onMouseOut=" window.status=');
          document.write("' '; return true ");
          document.write('">BOOKMARK</a>');
          }
          else {
          var msg = "BOOKMARK";
          if(navigator.appName hahahaha "Netscape") msg += "  (CTRL-D)";
          document.write(msg);
          }
          
          // End -->
          </script>
          Covers IE and Mozilla browsers

          Make MORE $$$ now! PussyCash

          Comment

          • broke
            Confirmed User
            • Aug 2003
            • 4501

            #6
            Based on the last post... I imagine the href link would be:

            [HTML]

            <a href="javascript:addfav()">{link}</a>

            [/HTML]
            Last edited by broke; 02-28-2005, 07:25 PM.
            Perfect Gonzo

            Comment

            • chaze
              Confirmed User
              • Aug 2002
              • 9775

              #7
              hahahaha

              Frickin GFY

              I assumne this is sapposed to say windows?

              Funny I just 5 tgp's and none had this.

              Go figure.
              Like the desert needs the rain
              We do fully manged WordPress, VPS, and Servers. Adult Host Pro https://adulthostpro.com/ Since 2001

              Comment

              • SmokeyTheBear
                ►SouthOfHeaven
                • Jun 2004
                • 28609

                #8
                Theres a more complete script at http://earthunplugged.org/gfy look at the bottom of the page.
                hatisblack at yahoo.com

                Comment

                • chaze
                  Confirmed User
                  • Aug 2002
                  • 9775

                  #9
                  Got it, thanks all
                  Like the desert needs the rain
                  We do fully manged WordPress, VPS, and Servers. Adult Host Pro https://adulthostpro.com/ Since 2001

                  Comment

                  • MyNameIsEmily
                    Confirmed User
                    • Jan 2005
                    • 887

                    #10
                    Originally posted by chaze
                    Got it, thanks all

                    Doesn't look like it.
                    Unless your up to some sneakey 1337 h4z0rz stuff...

                    Comment

                    • Alex
                      So Fucking Banned (YEA!!)
                      • Jun 2004
                      • 10963

                      #11
                      windows ??

                      hahha?
                      Care about me?
                      Who?
                      Me!
                      Who?

                      Comment

                      Working...