I have image tag on my page . I need that tag shows different images on every 1s. My pictures are stored in folder “pict”. How to achieve this using JQuery ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A simple image rotator that I use is below. You will need to render out all the images into a
divfrom your folder, using some server side language.See it working here: http://jsbin.com/iledo3
If you have a lot of images, I recommend pre-loading them first.
HTML:
CSS:
jQuery: