469,317 Members | 1,989 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,317 developers. It's quick & easy.

Rotate images with setInterval

I have 3 images to display automatically(without clicking)in 5seconds per image
I tried using the function but it displays stationary images.
This is the function I used:
Expand|Select|Wrap|Line Numbers
  1. <Body>
  2. <Script type="text/javascript">
  3. /* <![CDATA[ */
  4. Var curImage = movieImages
  5.  Function setInterval();
  6. {
  7. SetInterval("MovieImages()",5000);
  8. }
  9. /* ]]> */ 
  10. </script>
  11. <P><img src="movie1.gif";></p>
  12. <P><img src="movie2.gif";></p></body>
Sep 13 '11 #1
1 1869
12,516 Expert Mod 8TB
You have no function defined for moveImages. Also, are you trying to overload the setInterval function? I'm not even sure if you can do that. But you shouldn't even if you could.
Sep 13 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Sandy Bremmer | last post: by
17 posts views Thread by santel_helvis | last post: by
3 posts views Thread by Diego F. | last post: by
25 posts views Thread by garfunkel214 | last post: by
2 posts views Thread by shawnwperkins | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.