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.
Expand|Select|Wrap|Line Numbers
- <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>
Expand|Select|Wrap|Line Numbers
- <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