I found some code on google but my email submit wont open in the iframe any ideas why the affiliate page won't open in a iframe?
There's a few things in the code I would like to change and was wondering if I could get some help. With this code you have to click start to execute it how do you get it run when the page loads. Also the code loops through the urls I would like it to stop at the last url and break out of the iframe.
Here's the code:
<script>
var arrURL=new Array("http://www.yahoo.com", "http://www.google.com", "http://www.ynet.co.il");
var curIndex=0;
var timer=0;
var refreshRate=10; //seconds
function ChangeFrame()
{
clearTimeout(timer);
var url=arrURL[curIndex];
window.open(url, "Frame1");
curIndex = ((curIndex+1)%arrURL.length);
timer = setTimeout("ChangeFrame()", refreshRate*1000);
}
</script>
<iframe name="Frame1" id="Frame1" src="about:blank" width="500" height="300"></iframe>
<input type="button" onclick="ChangeFrame();" value="Start" />