How do I create a web image ticker

Posted on 2009-02-16
Last Modified: 2013-12-25
I have a number (30+) images.  I would like to create a web page with an image ticker - i.e. have, say, three images on screen and then rotate through the 30+ images (like a news ticker only with image files).
Question by:LiamMcKay
    LVL 31

    Accepted Solution

    You can do this with javascript if you do not have any form of server side scripting language to use such as PHP or ASP. The basic idea is to save the various possible image files in an array in Javascript, then randomly select one of them and set the image SRC attribute to it.

    Then you'll probably want some nice looking transitions between the images, set it up on a timer, maybe have some extra information swap with the images (e.g. a caption), make a clickable link change too... etc

    It quickly gets complicated as you hang bells and whistles on it, so I suggest you find a nice example that somebody else already made, like these:

    LVL 6

    Assisted Solution

    @Frosty555 you are right, this is probably best acheived in Javascript. If you get under the hood of it there is plenty you can do.

    Also, you may want to investigate some JQuery code that is in public domain. and its sample page at

    ... this is a really nice gallery. Read  up on JQuery.


    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    In a previous article here at Experts Exchange (…
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    The goal of the tutorial is to teach the user how to import photos into Adobe Lightroom efficiently and to keep everything organized.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now