suess0r Posted December 12, 2006 Share Posted December 12, 2006 hey,i'm trying to run a php script to rotate an ad-banner kinda like thisimg_1 for 20secimg_2 for 10secimg_3 for 20seci'm not really sure how to use time functions and deal with those, anyone have any thoughts? Link to comment https://forums.phpfreaks.com/topic/30385-rotating-ad-banner-help/ Share on other sites More sharing options...
c4onastick Posted December 12, 2006 Share Posted December 12, 2006 That's all client-side. If you want to do anything like that, you'll need some javascript. Link to comment https://forums.phpfreaks.com/topic/30385-rotating-ad-banner-help/#findComment-139826 Share on other sites More sharing options...
timmah1 Posted December 12, 2006 Share Posted December 12, 2006 this might put you on the right track[code]<select name="refresh"><option value="0">None</option><option value="10" <?php if($_GET['refresh']==10) echo "SELECTED"; ?>>10 Seconds</option><option value="60" <?php if($_GET['refresh']==60) echo "SELECTED"; ?>>1 Minute</option><option value="300" <?php if($_GET['refresh']==300) echo "SELECTED"; ?>>5 Minutes</option></select>[/code]then have this:[code]if($_GET['refresh']){ ?><META HTTP-EQUIV="refresh" content="<?php echo $_GET['refresh'] ?>;URL=banner.php?refresh=<?php echo $_GET['refresh'] ?>[/code] Link to comment https://forums.phpfreaks.com/topic/30385-rotating-ad-banner-help/#findComment-139834 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.