eleven0 Posted October 24, 2008 Share Posted October 24, 2008 I'm not too sure if it's the right place to ask. I'm looking for a script that can change text every time you click refresh. Like news bar at the top of this forum, every time you refresh forums, it will change. Quote Link to comment https://forums.phpfreaks.com/topic/129903-rotating-text/ Share on other sites More sharing options...
Alt_F4 Posted October 24, 2008 Share Posted October 24, 2008 where are you pulling the text from? if its a db then you could fetch the data in to an array, select a random index of the array each time the page loads and display the text for that element of the array. Quote Link to comment https://forums.phpfreaks.com/topic/129903-rotating-text/#findComment-673465 Share on other sites More sharing options...
sKunKbad Posted October 24, 2008 Share Posted October 24, 2008 Just keep in mind that true randomization may include the same text being displayed more than once in succession. Check this out: http://www.phpfreaks.com/forums/index.php/topic,219050.msg1003587.html#msg1003587 Quote Link to comment https://forums.phpfreaks.com/topic/129903-rotating-text/#findComment-673469 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.