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
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 11-19-2008, 09:26 AM   #1
Spudman
Confirmed User
 
Spudman's Avatar
 
Join Date: Aug 2002
Location: UK
Posts: 3,198
iframe rotator script?

hey,

does anyone know of a script i can use to rotate varius iframes?

thanks
__________________
Take it Easy !!!
Spudman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 09:43 AM   #2
Warlock77
Confirmed User
 
Industry Role:
Join Date: Apr 2004
Posts: 246
Try this

Code:
<script language="JavaScript">
<!--
var r_text = new Array ();
r_text[0] = "IFRAMECODE1";
r_text[1] = "IFRAMECODE2";
r_text[2] = "IFRAMECODE3";
r_text[3] = "IFRAMECODE4";
r_text[4] = "IFRAMECODE5";
r_text[5] = "IFRAMECODE6";
r_text[6] = "IFRAMECODE7";
var i = Math.floor(7*Math.random())

document.write(r_text[i]);

//-->
</script>
Warlock77 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 11:06 AM   #3
Spudman
Confirmed User
 
Spudman's Avatar
 
Join Date: Aug 2002
Location: UK
Posts: 3,198
hey warlock,

that script doesn't work for me.

anyone got any others?

thanks
__________________
Take it Easy !!!
Spudman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 11:38 AM   #4
troncarver
Confirmed User
 
troncarver's Avatar
 
Join Date: Nov 2006
Posts: 1,584
Code:
<script language="javascript"><!--
ad=new Array(2);
ad[0]='<a target=_blank href=""><img src="" / border="0"></a>';
ad[1]='<a target=_blank href=""><img src="" / border="0"></a>';
var ran_num=Math.floor(Math.random()*ad.length);
document.write(ad[ran_num]);
//--></script>
__________________
BADOINK.COM
skype: troncarver
troncarver is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 12:02 PM   #5
Spudman
Confirmed User
 
Spudman's Avatar
 
Join Date: Aug 2002
Location: UK
Posts: 3,198
Quote:
Originally Posted by troncarver View Post
Code:
<script language="javascript"><!--
ad=new Array(2);
ad[0]='<a target=_blank href=""><img src="" / border="0"></a>';
ad[1]='<a target=_blank href=""><img src="" / border="0"></a>';
var ran_num=Math.floor(Math.random()*ad.length);
document.write(ad[ran_num]);
//--></script>
isn't that just a banner rotation script? i dont think that will work

I need to be able to rotate iframes so i can rotate dating and webcam iframes, any help appreciated.
__________________
Take it Easy !!!
Spudman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 12:03 PM   #6
dready
Confirmed User
 
dready's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Toronto, ON
Posts: 5,247
OpenX might be overkill, but it does a great job.
__________________
ICQ: 91139591
dready is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 12:11 PM   #7
aico
Moo Moo Cow
 
Join Date: Mar 2004
Location: Washington State
Posts: 14,748
any random text script and a .shtml page should world. Good luck with the Cache though.
aico is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 12:18 PM   #8
Rorschach
So Fucking Banned
 
Join Date: Aug 2002
Posts: 5,579
Put your iframe code in various text files, eg. 1.html -> 6.html. Include the entire iframe code from opening iframe tag to the closing tag.

Put this code where you want to place your rotating iframe:

<?php

$max = 6;

$i = mt_rand(1, $max);

include("$i.html");

?>

You can change the value of $max depending on how many iframe text files you have.
Rorschach is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 12:30 PM   #9
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
Quote:
Originally Posted by aico View Post
any random text script and a .shtml page should world. Good luck with the Cache though.
easy, nocache in the metatags
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 12:54 PM   #10
Spudman
Confirmed User
 
Spudman's Avatar
 
Join Date: Aug 2002
Location: UK
Posts: 3,198
Quote:
Originally Posted by Rorschach View Post
Put your iframe code in various text files, eg. 1.html -> 6.html. Include the entire iframe code from opening iframe tag to the closing tag.

Put this code where you want to place your rotating iframe:

<?php

$max = 6;

$i = mt_rand(1, $max);

include("$i.html");

?>

You can change the value of $max depending on how many iframe text files you have.
does this work in a .shtml page? can't get it to work.
__________________
Take it Easy !!!
Spudman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 01:00 PM   #11
Rorschach
So Fucking Banned
 
Join Date: Aug 2002
Posts: 5,579
It's php, you need to use it a .php page or enable php parsing in .html or .shtml pages via your .htaccess file.
Rorschach is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 01:22 PM   #12
Spudman
Confirmed User
 
Spudman's Avatar
 
Join Date: Aug 2002
Location: UK
Posts: 3,198
Quote:
Originally Posted by Rorschach View Post
It's php, you need to use it a .php page or enable php parsing in .html or .shtml pages via your .htaccess file.
thanks,

8char
__________________
Take it Easy !!!
Spudman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 02:17 PM   #13
Spudman
Confirmed User
 
Spudman's Avatar
 
Join Date: Aug 2002
Location: UK
Posts: 3,198
bump for any more ideas/scripts, haven;t got any of the above to work.
__________________
Take it Easy !!!
Spudman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 03:12 PM   #14
peeperpimp
Confirmed User
 
Join Date: Aug 2006
Location: Pimpin On The NET!!!
Posts: 5,105
I'd like to see one of these codes mentioned above running live on a site, any url's ?
__________________
ICQ: 377517467
peeperpimp (at) yahoo (dot) com
peeperpimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-20-2008, 02:40 AM   #15
Spudman
Confirmed User
 
Spudman's Avatar
 
Join Date: Aug 2002
Location: UK
Posts: 3,198
going to bump this for some help
__________________
Take it Easy !!!
Spudman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-20-2008, 03:34 AM   #16
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
Here's a page I just made that includes iframes from PussyCash and also has javascripts for different sponsor's peel ads.

Your htaccess should be set up to allow the file extension you use for the page to parse, for ex.

AddHandler server-parsed .htm
AddHandler server-parsed .html

The spudman page has this:

<!--#include virtual="/path to the rotate script/rotate-iframe.php" -->

The script has this:

<?php

$max = 7;

$i = mt_rand(0, $max);

include("iframe-$i.txt");

?>

each of the text files (0-7) has something like this:

<script src="http://fb.cashtraffic.com/pa.php/freelifetimeamateurs/1.jpg/13318/40.js"></script>
<iframe src="http://pcash.imlive.com/releaseSE/activepage198.asp?WID=123475591185&linkID=1036&got opage=hostlist.asp&trdlvlcbid=1&promocode=BCODE8AF A78EC_00000&textcolor=FFFFFF&bgcolor=000033" scrolling="No" marginwidth=0 marginheight=0 align="MIDDLE" width="500" height="210" frameborder="No"></iframe>


In this example, the script and text files are in the same directory to simplify things.




Edit:
Refresh the page to see the ads change.

Last edited by mikeyddddd; 11-20-2008 at 03:38 AM..
mikeyddddd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-20-2008, 04:00 AM   #17
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
The text files are named:

iframe-0.txt
iframe-1.txt
iframe-2.txt
iframe-3.txt
iframe-4.txt
iframe-5.txt
iframe-6.txt
iframe-7.txt
mikeyddddd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-20-2008, 09:29 AM   #18
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,289
if you are doing it on a wordpress blog, i have a solution that will work
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris 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



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.