i need a good banner rotation script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MrIzzz
    If u touch it, I will cum
    • Sep 2003
    • 22923

    #1

    i need a good banner rotation script

    non- j a v a s c r i p t

    anyone have any good reccomendations?


    WHO WANTS TO PLAY GRAB-ASS?
  • marzzo
    Confirmed User
    • May 2002
    • 2134

    #2
    simple one:

    PHP Code:
    <?
    mt_srand((float)microtime()*1000000); 
    $f=file("your_gallery_list_here.txt"); 
    $u=trim($f[mt_rand(0,sizeof($f)-1)]); 
    header("Location: $u"); 
    ?>
    4 5 zero - 2 2 - nine nine nine

    Comment

    • Mike Panic
      Confirmed User
      • Aug 2004
      • 425

      #3
      PHP Code:
      <?php
      
      $banners = array();
      $urls = array();
      
      // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      // 
      // To add or subtract banners you must make a new/delete an entry in this file.  Each record 
      // has two parts, the banner and url.  put in the full path to the image in the banner line, 
      // and the full url of the link in the url line.  The numbers in the records MUST stary at 0 
      // and have to be in order, you cannot skip a number or a "blank" banner will show up.
      //
      // To show this script on a page include to following code:
      // <SCRIPT LANGUAGE="JAVASCRIPT" SRC="http://www.yoursite.com/ads/banner.php?show"></SCRIPT>
      //
      // but replace the url with the path to where you uploaded the banner.php file, "?show" must
      // remain apended to the name for it to load inside your current page.
      // 
      // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      
         
      $banners[0] = "http://www.gettipsy.com/banner.gif";
         $urls[0] = "http://www.gettipsy.com";   
            
                     
      // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      // Do NOT change anything below this line
      // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      $run = getenv(QUERY_STRING);
      
      srand((double)microtime()*1000000);
      $randval = rand(0,count($banners)-1);
      
      if($run hahahaha 'show') { echo "document.write(\"<a href=".$urls[$randval]." target=_new><img src=".$banners[$randval]." border=0></a>\");"; }
      else { echo "<a href=".$urls[$randval]." target=_new><img src=".$banners[$randval]." border=0></a>"; }
      
      ?>
      to add more banners, simply copy the first one and replce [0] w/ [1] and so on down the line...
      hire me

      Comment

      • Napolean
        Misanthropic Egalitarian
        • Nov 2002
        • 4331

        #4
        edited: ill hold off for a bit
        HAH! FOUND IT FRIS

        Comment

        • lb_vee
          Confirmed User
          • May 2004
          • 886

          #5
          I dont know if its overkill, but phpAdsNew is pretty kick ass. You can manage banners, campaigns, zones and all. Decent stats too.

          Comment

          • Adultnet
            Confirmed User
            • Sep 2003
            • 8713

            #6
            hit me up on icq i will get you a custom power full script with anything you want.
            icq 210-623-566


            TrafficCashGold Paying Webmasters Since 1996!

            Awesome Conversions! Fast Weekly Payments! Over 125 Tours!

            Comment

            • MrIzzz
              If u touch it, I will cum
              • Sep 2003
              • 22923

              #7
              very cool, thanks everybody. i'm gonna try out that bit of code, and if i need anything further i'll get in touch with some of you


              WHO WANTS TO PLAY GRAB-ASS?

              Comment

              • MrIzzz
                If u touch it, I will cum
                • Sep 2003
                • 22923

                #8
                yooooooooooo mike panic, what do the hahahahas stand for? gFY censored them, lol

                if($run hahahaha 'show') { echo "document.write(\"<a href=".$urls[$randval]." target=_new><img src=".$banners[$randval]." border=0></a>\");"; }
                else { echo "<a href=".$urls[$randval]." target=_new><img src=".$banners[$randval]." border=0></a>"; }


                WHO WANTS TO PLAY GRAB-ASS?

                Comment

                • dready
                  Confirmed User
                  • Oct 2002
                  • 5247

                  #9
                  phpAdsNew

                  http://phpadsnew.com/two/
                  ICQ: 91139591

                  Comment

                  • juicylinks
                    So Fucking Banned
                    • Apr 2001
                    • 122992

                    #10
                    Originally posted by MrIzzz
                    yooooooooooo mike panic, what do the hahahahas stand for? gFY censored them, lol

                    if($run hahahaha 'show') { echo "document.write(\"<a href=".$urls[$randval]." target=_new><img src=".$banners[$randval]." border=0></a>\");"; }
                    else { echo "<a href=".$urls[$randval]." target=_new><img src=".$banners[$randval]." border=0></a>"; }
                    ahahhhahhaahahhaahhomoooooooooo

                    Comment

                    • MrIzzz
                      If u touch it, I will cum
                      • Sep 2003
                      • 22923

                      #11
                      Originally posted by juicylinks
                      ahahhhahhaahahhaahhomoooooooooo
                      translation = "hi, my name is juicy, and i love the cock"


                      WHO WANTS TO PLAY GRAB-ASS?

                      Comment

                      • Mike Panic
                        Confirmed User
                        • Aug 2004
                        • 425

                        #12
                        here:

                        http://www.mikepanic.com/banner_code.txt

                        download it and copy/edit it into your fav html browser
                        hire me

                        Comment

                        Working...