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.