![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
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 !!! ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
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 !!! ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Aug 2002
Location: UK
Posts: 3,198
|
Quote:
![]() I need to be able to rotate iframes so i can rotate dating and webcam iframes, any help appreciated.
__________________
Take it Easy !!! ![]() ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Oct 2002
Location: Toronto, ON
Posts: 5,247
|
OpenX might be overkill, but it does a great job.
__________________
ICQ: 91139591 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
easy, nocache in the metatags
__________________
Don't let greediness blur your vision | You gotta let some shit slide icq - 441-456-888 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Aug 2002
Location: UK
Posts: 3,198
|
Quote:
__________________
Take it Easy !!! ![]() ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Join Date: Aug 2002
Location: UK
Posts: 3,198
|
Quote:
8char
__________________
Take it Easy !!! ![]() ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
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 !!! ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
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 ?
__________________
![]() ![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Join Date: Aug 2002
Location: UK
Posts: 3,198
|
going to bump this for some help
![]()
__________________
Take it Easy !!! ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Viva la vulva!
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.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Viva la vulva!
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |