I am trying to get banner ads to refresh every few minutes, but the problem that I'm running into, is that whenever the ads refresh it takes focus away from the main website. This is extremely important as the site has flash games on it and the main page can lose focus otherwise the flash game controls stop working when the ads refresh to show a new ad. I've already tried iframes and that steals the focus. Does anybody know how I can get ads to refresh to load a new ad, but not take focus away from the flash games? I would appreciate any help on this that I can get. Thank you.
Hi Johnny, Maybe you could serve the ads in flash as well (in a separate movie). This was the ads rotate and won't take the focus away. Thanks, Dino
Thanks =) Yep it should work great. You just need add every banner to the movie and have each banner run for x amount of frames depending on how long each will show for. Also need to add the actionscript so that banners are clickable and lead to the advertisers site when they are shown.
Aha good question didn't think of that. I'm thinking there must be a way to serve these ads in your flash movie just not sure how yet. I'd be interested in hearing ideas on this if anyone else knows.
How about you display the ad in a frame and then reload the frame with Javascript after x seconds or you could forward to another page if you have more static ads.
Javascript is fine. Of course it depends on how skilled you are with this, but an easy way would be to use the script below and create HTML pages like page1.html, page2.html, page3.html etc and paste the script in the page (increment the pagenumber). <script language="Javascript"> <!-- var URL = "page2.html" var speed = 500 function reload() { location = URL } setTimeout("reload()", speed); //--> </script>
Yeah, I have zero javascript coding knowledge. Is this the forum to see if somebody can code this for me? Is it going to be something fancy that I'm going to have to pay for or only a few lines of code I could get somebody to simply write up for me quickly?
I tried using the JavaScript code given above. But somehow I am unable to get the results! Could you please help me?