javascript slideshow using asp
-
hi this is my code.i want to display images whose path and image name is from database but still i m not getting the slide show working it does not show me the message.any body help me? <!--#include file="common.asp"--> <% OpenDataBase conn sql="select * from newsimage" set obj=server.createobject("adodb.recordset") obj.open sql,conn,1,1 while obj.eof<>true imagestorotate=imagestorotate & """/pdf/" & obj("imagename") & """," obj.movenext wend imagestorotate=left(imagestorotate,len(imagestorotate)-1) 'response.write("image pathe is " & imagestorotate & "") %> <html> <head> <title></title> <script type="text/javascript"> var image1=new Image(); image1.src=<%=imagestorotate%>; </script> </head> <body> <img src="<%=imagestorotate%>" name="slide" width=100 height=56 atl="no image for path"> <script type="text/javascript"> <!-- //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" + step + ".src"); if (step < 3) step++ ; else step=1; //call function "slideit()" every 2.5 seconds setTimeout("slideit()",2500) } slideit() //--> </script> </body> </html> image is not changing one by one plz help me for image change coz my image is coming from database table which has 30 images..