How to create an SlideShow in javascript?

Hey Peepz im trying to create a javascript slideshow and its going horrible can someone check it for me :(?

  • <html> <head> <script type="text/javascript"> <!-- var image1=new Image() image1.src="M:\Test_Script\x1 (1).jpg" var image2=new Image() image2.src="M:\Test_Script\x1 (2).jpg" var image3=new Image() image3.src="M:\Test_Script\x1 (3).jpg" //--> </script> </head> <body> <img src="M:\Test_Script\x1 (1).jpg" name="slide" width="500" height="200" /> <script> <!-- //variable that will increment through the images var step=1 function slideit(){ //if browser does not support the image object, exit. if (!document.images) return document.images.slide.src=eval("image"... if (step<3) step++ else step=1 //call function "slideit()" every 1 seconds setTimeout("slideit()",1000) } slideit() //--> </script> </body> </html>

  • Answer:

zar at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

David

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.