Closed Thread
Results 1 to 6 of 6

Thread: Simple Image Slideshow

  1. #1
    samo1215 is offline Newbie
    Join Date
    Jun 2009
    Posts
    3
    Rep Power
    0

    Simple Image Slideshow

    I am trying to create a simple image slide show in javascript with the aid of jquery. I have been reading tutorials and looking at code and while I understand the basics of javascript and how jquery works I have no idea how to actually put them to use to create this simple task.

    All I want to do is take an unordered list of 5 images and cycle through them, preferably by fading one image into the next. I don't need any fancy options or features and the images will already be properly sized. Any guidance on how to get started would be greatly appreciated.

    I should mention that I don't want to use a plugin or copy somebody's code, I want to understand how to do this myself.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: Simple Image Slideshow

    From what I can tell you want 1 image showing at once, then it to keep changing right?

    You can get a div and set the first one as a background, put all the images into an array, then using the div's id you can change the background and size of the div. If you get started with anything and have more specific questions it will be easier for us to help you out.

  4. #3
    Join Date
    Oct 2006
    Location
    Hendersonville, NC
    Posts
    1,700
    Blog Entries
    3
    Rep Power
    0

  5. #4
    NatalieM's Avatar
    NatalieM is offline Learning Programmer
    Join Date
    Jun 2009
    Location
    London, England
    Posts
    83
    Rep Power
    10

    Re: Simple Image Slideshow

    After doing as BlaineSch said, you can then add a timeout function (setTimeout) to change the image every 5000ms or whatever time you choose.

  6. #5
    Ronin is offline Programming Professional
    Join Date
    Apr 2006
    Posts
    309
    Rep Power
    24

    Re: Simple Image Slideshow

    The cycle plugin in mentioned above works well. I've used it once or twice.

  7. #6
    Join Date
    Oct 2006
    Location
    Hendersonville, NC
    Posts
    1,700
    Blog Entries
    3
    Rep Power
    0

    Re: Simple Image Slideshow

    Good, I may test it out sometime soon also.


Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Add image file name to simple gallery
    By daraclare in forum PHP Development
    Replies: 8
    Last Post: 03-21-2011, 10:26 AM
  2. Simple Qt Image Editor
    By sCode in forum C and C++
    Replies: 4
    Last Post: 01-24-2011, 09:35 AM
  3. Need to do some simple image analysis
    By dmehling in forum C and C++
    Replies: 4
    Last Post: 12-06-2009, 07:08 AM
  4. Simple image script
    By Max-Evans in forum PHP Development
    Replies: 8
    Last Post: 03-08-2008, 05:50 PM

Tags for this Thread

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