banner rotation script needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bobby666
    boots are my religion
    • Nov 2005
    • 21765

    #1

    banner rotation script needed

    anybody an idea where to find a script?

    i 'd like to rotate all my banner ads on my picturegallery pages and am tired off copy and paste different parts of code in each page
  • jscott
    jscizzle
    • Feb 2001
    • 25412

    #2
    i use this code, i put it as an include..........

    Code:
    <script language="Javascript">
    <!--
    // original content taken from Nic's JavaScript Page with permission
    // lack of these three lines will result in copyright infringment
    // made by: Nic's JavaScript Page - http://www.javascript-page.com
    
    var currentdate = 0;
    var core = 0;
    
    function initArray() {
    
    this.length = initArray.arguments.length;
      for (var i = 0; i < this.length; i++) {
      this[i] = initArray.arguments[i];
      }
    }
    
    link = new initArray(
    "http://www.rookiebabe.com/index.php?id=859513&rbsid=1&rbasid=797&rbsa=MySite",
    "http://admin.teenrevenue.com/cgi/click?account=879478&site=9&program=1",
    "http://join.teenkelly.com/track/MTA2ODozOjE/",
    "http://admin.teenrevenue.com/cgi/click?account=879478&site=10&program=1",
    "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=926455-0000&PA=1166997&HTML=http://www.privategwen.com",
    "http://join.teenlisa.com/track/MTA2ODo2Ojk/",
    "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=921717-0000&PA=407918&HTML=http://www.dreamofdani.com/index.php",
    "http://www.debbieteen.com/index.html?id=jscott",
    "http://admin.teenrevenue.com/cgi/click?account=879478&site=10&program=1",
    "http://secure.brookeskye.com/track/ODQ6Mzoy/",
    "http://tour.realpeachez.com/track/NTMxOjQ6Ng/",
    "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=924402&PA=504999&HTML=http://www.katesplayground.com",
    "http://admin.teenrevenue.com/cgi/click?account=879478&site=10&program=1",
    "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=921717-0000&PA=407918&HTML=http://www.dreamofdani.com/index.php",
    "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=920217&PA=509714&HTML=http://www.onlycarla.com/t1/",
    "http://www.rookiebabe.com/index.php?id=859513&rbsid=1&rbasid=797&rbsa=MySite_athena",
    "http://admin.teenrevenue.com/cgi/click?account=879478&site=10&program=1",
    "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=924402&PA=504999&HTML=http://www.karenloveskate.com"
    );
    
    image = new initArray(
    "http://www.teenqueens.net/galleries/th/rookiebabe.gif",
    "http://www.teenqueens.net/galleries/th/miltontwins2.jpg",
    "http://www.teenqueens.net/galleries/th/teenkellytiffany.jpg",
    "http://www.teenqueens.net/galleries/th/simpsontwins.jpg",
    "http://www.teenqueens.net/galleries/th/privategwen.gif",
    "http://www.teenqueens.net/galleries/th/teenlisa.jpg",
    "http://www.teenqueens.net/galleries/th/dreamofdani2.gif",
    "http://www.teenqueens.net/galleries/th/debbieteen.gif",
    "http://www.teenqueens.net/galleries/th/simpsontwins.jpg",
    "http://www.teenqueens.net/galleries/th/brookeskye.gif",
    "http://www.teenqueens.net/galleries/th/realpeachez.gif",
    "http://promo.spunkycash.com/banners/42.jpg",
    "http://www.teenqueens.net/galleries/th/simpsontwins.jpg",
    "http://www.teenqueens.net/galleries/th/dreamofdani2.gif",
    "http://www.teenqueens.net/galleries/th/onlycarla2.jpg",
    "http://www.teenqueens.net/galleries/th/athenarookiebabe.gif",
    "http://www.teenqueens.net/galleries/th/simpsontwins.jpg",
    "http://promo.spunkycash.com/banners/36.jpg"
    );
    
    text = new initArray(
    "rookie babe",
    "milton twins",
    "teen kelly and tiffany teen",
    "simpson twins",
    "private gwen",
    "teen lisa",
    "dreamofdani",
    "debbieteen.com",
    "simpsontwins",
    "brooke skye",
    "real peachez",
    "kates playground",
    "simpson twins",
    "dream of dani",
    "only carla",
    "athena rookie babe",
    "simpson twins",
    "karen loves kate"
    );
    
    var currentdate = new Date();
    var core = currentdate.getSeconds() % image.length;
    var ranlink  = link[core];
    var ranimage = image[core];
    var rantext  = text[core];
    
    document.write('<a href=\"' +ranlink+ '\" target=\"_blank\"><img src=\"'+ranimage+'\" border="0" alt=\"'+rantext+'\"></a>');
    
    //-->
    </SCRIPT>
    “If you think tough men are dangerous, wait until you see what weak men are capable of.”
    —Jordan B. Peterson

    Listen to Pomp tell why is Bitcoin important

    Comment

    • jscott
      jscizzle
      • Feb 2001
      • 25412

      #3
      let me know if you need me to explain how it works exactly, good luck
      “If you think tough men are dangerous, wait until you see what weak men are capable of.”
      —Jordan B. Peterson

      Listen to Pomp tell why is Bitcoin important

      Comment

      • u-Bob
        there's no $$$ in porn
        • Jul 2005
        • 33063

        #4
        phpadsnew.

        Comment

        • bobby666
          boots are my religion
          • Nov 2005
          • 21765

          #5
          wow great, thank you jscott!
          i am just playing around with a blank html doc and the scipt, think i can handle it, although scipting is new for me.

          Comment

          Working...