Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Aug 2010
    Posts
    133
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Making a rotating ad

    I want to make an advertisement that is just a 300x250 picture that shows 1 jpg, then another jpg, then another, and just cycles through them.

    Is this something that is easy to do with code?
    Or should I just try to put all the images into a animated gif?

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,641
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Quote Originally Posted by njfail View Post
    I want to make an advertisement that is just a 300x250 picture that shows 1 jpg, then another jpg, then another, and just cycles through them.

    Is this something that is easy to do with code?
    Or should I just try to put all the images into a animated gif?
    There are two ways to do that -

    1. use an animated GIF
    2. Use JavaScript to swap the images.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

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