Is there a url rotation script? - To show my sites in a box that rotate urls? Like I can show 4 or 5 at a time and it will keep on auto scroll So, if I add 50 sites, it will show (5 at a time) but the top one goes off and the new one is shown at the bottom Any help is appreciated. Javascript or PHP script Thanks
If you want a java script, then visit: http://webmasters-forums.com/The-script-that-Randomly-Select-the-Quotes-t-654.html
You can use it as your ease. The script is made is for quotes. You can put the url in the quote array and your title in author array. You have to made some change in the end: Replace this: With this:
Step 1: Open a text file. http://address1.com http://address2.com http://address3.com http://address4.com http://address5.com Code (markup): Something like this. $urls = @file('file.txt'); $num = count($urls); $url = $urls[rand(0,$num)]; echo $url; PHP: __________________ Rep : is for Good Answers.