Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

how to program a slide show of pictures like the home page of yahoo answers slide show using html?javascript?

2 Answers

Relevance
  • 9 years ago
    Favorite Answer

    You display an image in an HTML document by defining an IMG tag. You can change the image with Javascript by acquiring a reference to the img element and reassigning

    its src property. You can make things happen periodically using the setInterval function

    The following document continuously rotates through 3 pictures (assuming it's in

    the same directory with files named pic1.jpg, pic2.jpg and pic3.jpg) changing the image every 5 seconds:

    <html>

    <body>

    <img src="pic1.jpg" id="pic" />

    <script>

    var ndx = 0;

    var imglist = new Array("pic1.jpg", "pic2.jpg", "pic3.jpg");

    var img = document.getElementById("pic");

    function slideshow()

    {

    img.src = imglist[(++ndx) % (imglist.length - 1)];

    }

    window.setInterval(slideshow, 5000);

    </script>

    </body>

    </html>

  • Anonymous
    5 years ago

    specific powerpoint is accessible yet numerous options to be made and each and each percentdesires a sparkling slide to be inserted, sorry i've got not got the link yet once you're taking a seem for screensaver slide coach you will come throughout the time of one that enables you to insert your %. and then it additionally will make it an .exe application to place in on any gadget. possibly somebody at right this is widely used with the link or call, in spite of the indisputable fact that it does exist I used it to make promotional slideshow at IT center, it replaced into very effective, and you will additionally upload a powerpoint slide coach to it in case you go with for.

Still have questions? Get your answers by asking now.