How do you make your banners change?

I've seen some on some message boards and they change. Like one second there one banner and then you can see it changing to another. Can somebody please help me? My banner making program is ULEAD PhotoImpact 6. Thanks in advance. :)

2 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    i usually use javascript and PHP to change banners.

    in PHP you can do that using following code.

    <?php

    // create a random number from 1 to 10

    $i=rand(1,10);

    echo "<img src=\"myimage$i.jpg\" alt=\"\" >";

    ?>

    Insert above code in place of banner display.

    Note that you must have myimage1.jpg to myimage10.jpg images in server.

    and this code displays a new image after a page loads.

    ?>

  • Anonymous
    1 decade ago

    you have a talk with them until they think you're right and then they might change. Or take them to a psychiatrist

Still have questions? Get your answers by asking now.