View Single Post
Old 11-20-2008, 03:34 AM  
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