Rotate images with setInterval

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vusi debs
    New Member
    • Sep 2011
    • 1

    Rotate images with setInterval

    I have 3 images to display automatically(w ithout clicking)in 5seconds per image
    I tried using the function but it displays stationary images.
    This is the function I used:
    Code:
    <Body>
    <Script type="text/javascript">
    /* <![CDATA[ */
    Var curImage = movieImages
     Function setInterval();
    {
    SetInterval("MovieImages()",5000);
    }
    /* ]]> */ 
    </script>
    <P><img src="movie1.gif";></p>
    <P><img src="movie2.gif";></p></body>
    Last edited by Niheel; Sep 13 '11, 11:45 PM.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    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.

    Comment

    Working...