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:
Use jQuery: http://jquery.com I made one too: http://jsfiddle.net/SuperBoi45/jruZF/
zar at Yahoo! Answers Visit the source
Other answers
Use jQuery: http://jquery.com I made one too: http://jsfiddle.net/SuperBoi45/jruZF/
David
Related Q & A:
- Can I create a second filestream container on an existing SQL Server 2008 database without going offline?Best solution by Database Administrators
- How can i create a mobile application server?Best solution by Stack Overflow
- How Can I Create an XML to Create a Menu?Best solution by Drupal Answers
- Im trying to hook up a perfect media center but need advice?Best solution by Yahoo! Answers
- I was trying to send a e-mail and it did not send how can i find it again.Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.