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

Thread: SlideShow Help

  1. #1
    New to the CF scene
    Join Date
    Feb 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question SlideShow Help

    <!—Script—>
    <script type="text/javascript">
    var image1 = new Image()
    image1.src = "images/1.jpeg"
    var image2 = new Image()
    image2.src = "images/2.jpeg"
    var image3 = new Image()
    image3.src = "images/3.jpeg"

    </script>
    <!—End Of Script Container—>


    <!—Html—>
    <img src="images/1.jpeg" width="500" height="300" name="slide" />





    <script type="text/javascript">
    var step=1;
    function slideit()
    {
    document.images.slide.src = eval("image"+step+".src");
    if(step<2)
    step++;
    else
    step=1;
    setTimeout("slideit()",2500);
    }
    slideit();
    </script>

    The 3rd image does not transition in I need help with that

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,079
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    [QUOTE=surajraj9;1390142
    The 3rd image does not transition in I need help with that[/QUOTE]

    if(step<2)
    step++;

    So what do you expect?

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


  •  

    Posting Permissions

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