Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-06-2006, 09:30 AM   #1
tranza
ICQ: 197-556-237
 
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
Script to rotate images? Any good one?

Do you guys know any script to rotate pictures AND the links of those pictures (each picture should have it own unique link)?

Anybody can help me out?
__________________
I'm just a newbie.
tranza is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-06-2006, 09:31 AM   #2
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-06-2006, 09:43 AM   #3
tranza
ICQ: 197-556-237
 
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
Stop posting your picture on every thread Franck
__________________
I'm just a newbie.
tranza is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-06-2006, 09:51 AM   #4
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
Here's a basic PHP one I pulled out of my ass:

pictures.txt
Code:
image1.jpg|http://somelink.com/
imaagagads3.jpg|http://notherlinkg.com/
akadsfd.jpg|http://asdfasdf/
random_image.php
Code:
$file = file("pictures.txt");
list($img,$link) = each(explode("|",$filerand (0, (count($file)-1)));
echo "<a href=\"".$link."\"><img src=\"".$img."\"></a>";
* note, code not checked or validated to work
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-06-2006, 09:55 AM   #5
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
http://www.tgpwiz.com/

see the free script and download it from there, it has thumbs/links option too (for building thumb TGP), the thing is it's been a long time since I used it so I can't really help you with install etc, good luck, hope it's what you're looking for
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-06-2006, 09:59 AM   #6
mikeyddddd
Viva la vulva!
 
mikeyddddd's Avatar
 
Join Date: Mar 2003
Location: you can't please everyone, so you got to please yourself
Posts: 16,557
This PHP requires a separate text file to be created for 0-60 seconds:

Code:
$num = date("s");
$ads = "/path/to/text/file/$num.txt";

if (file_exists($ads)) {

$ads_in = file ("$ads");

for($i = 0; $i < sizeof($ads_in); $i++) 
{ print("$ads_in[$i]\n"); }

} else {
print("Try Again - $num.txt - $ads");
}
date("s") can be changed to whatever time interval you want and will require a text file for each possible value.

Just set the text file up like you would normally code your HTML.

Last edited by mikeyddddd; 05-06-2006 at 10:01 AM..
mikeyddddd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-06-2006, 10:21 AM   #7
Lazonby
Confirmed User
 
Join Date: Feb 2006
Posts: 2,262
Quote:
Originally Posted by Franck
Borat says "I hev..... liquid explosion....... in my pants. IS NICE!"

He also says to have a look on google. You'll find loads of examples and you can swap and change them to find one which works best.
Lazonby is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-06-2006, 10:26 AM   #8
OG LennyT
Wall Street Pimp
 
OG LennyT's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Phoenix, AZ
Posts: 14,345
Code:
<script language="Javascript">
<!--


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.yourlink1",
"http://www.yourlink2",
"http://www.yourlink3",
"http://www.yourlink4"
);

image = new initArray(
"http://imagelink.gif",
"http://imagelink.gif",
"http://imagelink.gif",
"http://imagelink.gif"
);

text = new initArray(
"textforlink!",
"text!",
"texxt!",
"rollovertext!"
);

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>
I use this for banner rotation, works well.
OG LennyT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.