hi, am looking for script or the code which display banner each time you refresh the page, or every 10 sec it changed ... i will be using it on wordpress blog , so if u know a working one please do share.
I am not sure if I can post links yet, but you may want to check out this: blog.taragana.com/index.php/archive/wordpress-plugin-adrotator-rotate-your-ads-including-adsense-dynamically/
if you want it to change every 10 seconds, you have to use JavaScript. you can reload the page every 10 seconds with a different ad, but that would mess up the user experience and I'm sure you wouldn't want that =x
banner_ads.txt: <a href="http://www.ipower.vn" target="_top" > <img src="http://www.ipower.vn/images/ipower_468x60.gif" width="468" height="60" alt="iPower Community - Cộng đồng Sức Mạnh Công Nghệ" border="0"></a> ~ <a href="http://www.ipower.vn" target="_top" > <img src="http://www.ipower.vn/images/ipower_468x60.gif" width="468" height="60" alt="iPower Community - Cộng đồng Sức Mạnh Công Nghệ" border="0"></a> ~ <a href="http://www.ipower.vn" target="_top" > <img src="http://www.ipower.vn/images/ipower_468x60.gif" width="468" height="60" alt="iPower Community - Cộng đồng Sức Mạnh Công Nghệ" border="0"></a> ~ <a href="http://www.ipower.vn" target="_top" > <img src="http://www.ipower.vn/images/ipower_468x60.gif" width="468" height="60" alt="iPower Community - Cộng đồng Sức Mạnh Công Nghệ" border="0"></a> Code (markup): ad_rotator.php: <center> <?php $fcontents = join ('', file ('banner_ads.txt')); $s_con = split("~",$fcontents); $banner_no = rand(0,(count($s_con)-1)); echo $s_con[$banner_no]; ?> </center> PHP: