Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. javascript slideshow using asp

javascript slideshow using asp

Scheduled Pinned Locked Moved Web Development
databasec++javascripthtmlsysadmin
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rajiv_kadam
    wrote on last edited by
    #1

    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..

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups