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. 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. 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 Link to comment https://forums.phpfreaks.com/topic/129903-rotating-text/#findComment-673469 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.