Script for a radom(rotating) banners?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spamofon
    Confirmed User
    • Jun 2003
    • 2999

    #1

    Script for a radom(rotating) banners?

    Anyone?
  • Reak
    So Fucking Banned
    • Mar 2003
    • 17920

    #2
    www.hotscripts.com ?

    Comment

    • Rivux
      Confirmed User
      • May 2001
      • 1026

      #3
      If you want something super basic, you can use the code below. All you need is a plain text file with the link and image tag in the file, one per line. Call the file ads.txt if you want.

      PHP Code:
      <a href="somesite.com"><img src="ads/banner.jpg"></a> 
      
      then whereever you want the banner to be, paste this code in.

      PHP Code:
      <?
      $items = file("ads.txt"); 
      $item = rand(0, sizeof($items)-1); 
      echo $items[$item];
      ?>
      Like I said, its basic but its functional.
      TrafficHolder.com - Buy/Sell Adult Traffic

      Comment

      • spamofon
        Confirmed User
        • Jun 2003
        • 2999

        #4
        Originally posted by Rivux
        If you want something super basic, you can use the code below. All you need is a plain text file with the link and image tag in the file, one per line. Call the file ads.txt if you want.

        PHP Code:
        <a href="somesite.com"><img src="ads/banner.jpg"></a> 
        
        then whereever you want the banner to be, paste this code in.

        PHP Code:
        <?
        $items = file("ads.txt"); 
        $item = rand(0, sizeof($items)-1); 
        echo $items[$item];
        ?>
        Like I said, its basic but its functional.
        nice and simple

        php is the best

        Comment

        • OzMan84
          Confirmed User
          • Nov 2003
          • 4740

          #5
          or you can give me $20 and ill make you one
          XferClick - 300,000 UV daily and growing quickly. Majority US, EU, CA and AU traffic. Contact me for more information
          ICQ: 304568058

          Comment

          • Reak
            So Fucking Banned
            • Mar 2003
            • 17920

            #6
            Originally posted by OzMan84
            or you can give me $20 and ill make you one
            no

            Comment

            • malakajoe
              Confirmed User
              • Feb 2003
              • 1751

              #7
              Originally posted by spamofon
              Anyone?
              If you need alot of extras, check out PHPAdsNew .

              It will track amount of clicks, and then show my popular banners more. Also, if you sell banner advertising, you can give your customers a login to manage there banners. Plus alot more.
              Selfpleasure.com for sale on auction. Closes on Tuesday March 11th at 9pm PST!!!!

              Dirty enough to be good, but clean enough for everyone!
              ------------------------------------------------------------------

              Moral Police - First graduating class coming soon! - Forcing our values across the internet

              Comment

              • spamofon
                Confirmed User
                • Jun 2003
                • 2999

                #8
                Originally posted by malakajoe


                If you need alot of extras, check out PHPAdsNew .

                It will track amount of clicks, and then show my popular banners more. Also, if you sell banner advertising, you can give your customers a login to manage there banners. Plus alot more.
                thanks

                Comment

                • MandyD
                  Confirmed User
                  • Dec 2002
                  • 477

                  #9
                  Originally posted by malakajoe


                  If you need alot of extras, check out PHPAdsNew .

                  It will track amount of clicks, and then show my popular banners more. Also, if you sell banner advertising, you can give your customers a login to manage there banners. Plus alot more.

                  Babes Links

                  Comment

                  • kmanrox
                    aka K-Man
                    • Oct 2001
                    • 29295

                    #10
                    http://www.cgi-resources.com
                    Crypto HODLr
                    Crypto mining
                    Angel investor

                    Comment

                    • OzMan84
                      Confirmed User
                      • Nov 2003
                      • 4740

                      #11
                      awwww come on, it was worth a try to make $20 for doing something so easy
                      XferClick - 300,000 UV daily and growing quickly. Majority US, EU, CA and AU traffic. Contact me for more information
                      ICQ: 304568058

                      Comment

                      • johnbosh
                        Confirmed User
                        • Aug 2002
                        • 8965

                        #12
                        Just use the easy free one:D

                        Comment

                        • integrated
                          Confirmed User
                          • Apr 2003
                          • 3826

                          #13
                          Originally posted by OzMan84
                          awwww come on, it was worth a try to make $20 for doing something so easy
                          sale you sig maybe you can make 25 cents per post

                          Pioneer of .TV domains
                          Grandfather of .TV development
                          Respected among industry LEADERS

                          Comment

                          Working...