Is there a url rotation script? - To show my sites in a box that rotate urls?

Discussion in 'Programming' started by stock_post, Jul 25, 2007.

  1. #1
    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
     
    stock_post, Jul 25, 2007 IP
  2. ivenms

    ivenms Peon

    Messages:
    334
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
  3. DnHype

    DnHype Active Member

    Messages:
    1,011
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    80
    #3
    what do you mean budy ?

    like you add 5 url they refresh allway ?
     
    DnHype, Jul 25, 2007 IP
  4. stock_post

    stock_post Prominent Member

    Messages:
    5,213
    Likes Received:
    249
    Best Answers:
    0
    Trophy Points:
    310
    #4
    stock_post, Jul 25, 2007 IP
  5. ivenms

    ivenms Peon

    Messages:
    334
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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:
     
    ivenms, Jul 25, 2007 IP
  6. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #6
    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 :[​IMG] is for Good Answers.
     
    exodus, Jul 27, 2007 IP
    topsurveysites likes this.