Hello,
We are currently running banner ads on a few of our sites and we implemented a javascript so they refresh after every 20 seconds. The script works great in IE though in Firefox it doesn't work at all. We have included the script below and would appreciate any feedback possible.
The code that we are using in the body of the our pages is:
Again we appreciate any help in advance and wish we knew more about javascript to not have to bother anyone who is already doing an awesome job helping some many other people.
Have a great day.
Mediagulch
We are currently running banner ads on a few of our sites and we implemented a javascript so they refresh after every 20 seconds. The script works great in IE though in Firefox it doesn't work at all. We have included the script below and would appreciate any feedback possible.
Code:
<script type="text/javascript">
var milliSecondsToWait = 20000;
function reloadIFrame(){
document.frames['iFrameName'].location.href =
"http://newt1.adultadworld.com/jsc/z5/ff2 .html?n=607;c=2445;s=271;d=14;w=728;h=90;p=271"
myVar = setTimeout("reloadIFrame()",milliSecondsToWait);
}
var myVar = setTimeout("reloadIFrame()",milliSecondsToWait);
</script>
Code:
<td width="729" height="90" valign="top"> <script language="javascript">
document.write('<iframe id="iFrameName" src="http://newt1.adultadworld.com/jsc/z5/ff2 .html?n=607;c=2445;s=271;d=14;w=728;h=90;p=271" frameborder=0 marginheight=0 marginwidth=0 scrolling="no" allowTransparency="true" width=728 height=90></iframe>');
</script></td>
Have a great day.
Mediagulch
Comment