SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    I LOVE THIS SITE ! ! ! DougD's Avatar
    Join Date
    May 2000
    Location
    San Diego, CA
    Posts
    463
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I went way back through the threads and could not find this. I know it has been answered before, so I am sorry for asking again, but...

    I need a FREE PHP Rotating Banner Script... Can anybody point me the right way?

    Thanks,

    Doug

  2. #2
    [Call me Bram] iBram007's Avatar
    Join Date
    Feb 2001
    Location
    Belgium
    Posts
    339
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I strongly recommend you this script: http://www.ledscripts.com/free-php/led-ads.html
    php/mysql, very easy to install, with stats (views + clicks)

    or this: (no stats)

    PHP Code:
    <?
    mt_srand
    ((double)microtime()*100000);
    $number mt_rand(12); // if you want more than 2 banners, change the 2 and add more if statement off course
    if($number == 1){
        echo
    "<a href=\"http://www.url.com\" target=\"_blank\"><img src=\"http://url.to/banner\" width=\"468\" height=\"60\" border=\"0\"></a>\n";
    }
    if(
    $number == 2){
        echo
    "<a href=\"http://www.url2.com\" target=\"_blank\"><img src=\"http://url.to/banner2\" width=\"468\" height=\"60\" border=\"0\"></a>\n";
    }
    else{
    echo
    "<!-- no specified ad -->";
    }
    ?>

  3. #3
    SitePoint Enthusiast dzeja's Avatar
    Join Date
    Mar 2000
    Location
    Your Imagination
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ALL YOUR BASE ARE BELONG TO US!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •