Rianna Posted September 9, 2006 Share Posted September 9, 2006 Hello, I prefer using php but someone said you can't rotate ads on a timer using php, you have to use javascript, is that true?Thank you very much! Quote Link to comment https://forums.phpfreaks.com/topic/20255-php-timer-question-please/ Share on other sites More sharing options...
onlyican Posted September 10, 2006 Share Posted September 10, 2006 PHP is server side, so Nothing will happen to ur site without a reloadYou will need to use Client Side Scripting (Javascript for example) Quote Link to comment https://forums.phpfreaks.com/topic/20255-php-timer-question-please/#findComment-89138 Share on other sites More sharing options...
Rianna Posted September 10, 2006 Author Share Posted September 10, 2006 Is javascript the only option, will any other scripts that you know of do it as well? Trying to avoid javascript for a few reasons. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/20255-php-timer-question-please/#findComment-89272 Share on other sites More sharing options...
HuggieBear Posted September 10, 2006 Share Posted September 10, 2006 Surely rotating ads on a timer is a bad idea.If I go to a page with a banner at the top and I scroll down to read that page, it's going to make no sense if that banner changes to something else after five minutes, as I won't be able to see it.I think you'd be better coding the server-side to deal with which banner's are shown when, and just have the front-end display them. It means not having to use JavaScript and probably better control over what's seen where and when.There's some examples of such [url=http://www.phpclub.net/?m=app&s=62]here[/url] that maybe able to give you a few ideas.RegardsRich Quote Link to comment https://forums.phpfreaks.com/topic/20255-php-timer-question-please/#findComment-89278 Share on other sites More sharing options...
onlyican Posted September 10, 2006 Share Posted September 10, 2006 What I would do on the advertisments, is have each add, with a id Numberthen using the rand() function, randomly select a number every page loadthen every time the page loads, a random add is shown to the user Quote Link to comment https://forums.phpfreaks.com/topic/20255-php-timer-question-please/#findComment-89293 Share on other sites More sharing options...
Rianna Posted September 10, 2006 Author Share Posted September 10, 2006 OK, I get what you mean, I should have also said text. If I want the text to change, I have some odd things going on, on my pages so I will need it. What about it? Javascript the only good second, minute, and even hour timers? Thanks much for the thinking outside the box, anyway as you both do. ;) Its appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/20255-php-timer-question-please/#findComment-89309 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.