GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   banner rotation script needed (https://gfy.com/showthread.php?t=587353)

bobby666 03-16-2006 08:12 AM

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 03-16-2006 08:16 AM

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>


jscott 03-16-2006 08:18 AM

let me know if you need me to explain how it works exactly, good luck

u-Bob 03-16-2006 08:22 AM

phpadsnew.

bobby666 03-16-2006 08:30 AM

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.


All times are GMT -7. The time now is 12:44 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123