Click here to Skip to main content
15,917,731 members
Home / Discussions / Web Development
   

Web Development

 
Questionjavascript slideshow using asp Pin
rajiv_kadam20-Jan-10 23:39
rajiv_kadam20-Jan-10 23:39 
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..
Questiondetect visitor mac address Pin
kennedysee20-Jan-10 17:01
kennedysee20-Jan-10 17:01 
AnswerRe: detect visitor mac address Pin
Graham Breach20-Jan-10 22:51
Graham Breach20-Jan-10 22:51 
QuestionRe: detect visitor mac address Pin
kennedysee21-Jan-10 16:40
kennedysee21-Jan-10 16:40 
AnswerRe: detect visitor mac address Pin
JHizzle27-Jan-10 4:58
JHizzle27-Jan-10 4:58 
QuestionWildcard Pin
MarlinLinger20-Jan-10 10:31
MarlinLinger20-Jan-10 10:31 
QuestionHow to tell the iis to execute a particular isapi extension for a particular virtual directory? Pin
deostroll20-Jan-10 0:53
deostroll20-Jan-10 0:53 
QuestionConsuming Data service from a remote application Pin
jonatan_55619-Jan-10 6:00
jonatan_55619-Jan-10 6:00 
AnswerRe: Consuming Data service from a remote application Pin
SeMartens19-Jan-10 20:13
SeMartens19-Jan-10 20:13 
GeneralRe: Consuming Data service from a remote application Pin
jonatan_55627-Jan-10 6:45
jonatan_55627-Jan-10 6:45 
GeneralRe: Consuming Data service from a remote application Pin
SeMartens27-Jan-10 20:42
SeMartens27-Jan-10 20:42 
GeneralRe: Consuming Data service from a remote application Pin
jonatan_55631-Jan-10 22:54
jonatan_55631-Jan-10 22:54 
QuestionJavascript And Validation Pin
SRJ9219-Jan-10 4:08
SRJ9219-Jan-10 4:08 
QuestionI get this error (Could not load type 'mtspg._Default'.) Pin
ghamdan hamud18-Jan-10 22:17
ghamdan hamud18-Jan-10 22:17 
Questionwrite to xml file using vbscript in classic asp Pin
Anil Veeraghattapu 418-Jan-10 21:46
Anil Veeraghattapu 418-Jan-10 21:46 
QuestionWebstats for developers Pin
JHizzle18-Jan-10 4:44
JHizzle18-Jan-10 4:44 
AnswerRe: Webstats for developers Pin
DJ Matthews18-Jan-10 9:24
DJ Matthews18-Jan-10 9:24 
GeneralRe: Webstats for developers Pin
JHizzle18-Jan-10 10:41
JHizzle18-Jan-10 10:41 
Questionweb sphere directory structure Pin
RajeshGonugunta16-Jan-10 3:09
RajeshGonugunta16-Jan-10 3:09 
QuestionCode Project exand collapse code example Pin
MAHorn15-Jan-10 10:47
MAHorn15-Jan-10 10:47 
AnswerRe: Code Project exand collapse code example Pin
dan!sh 16-Jan-10 21:36
professional dan!sh 16-Jan-10 21:36 
QuestionAJAX problem with ie calling aspx pages (works in other browsers) Pin
spaced413013-Jan-10 9:58
spaced413013-Jan-10 9:58 
AnswerRe: AJAX problem with ie calling aspx pages (works in other browsers) Pin
daveyerwin13-Jan-10 11:16
daveyerwin13-Jan-10 11:16 
GeneralRe: AJAX problem with ie calling aspx pages (works in other browsers) Pin
spaced413013-Jan-10 11:31
spaced413013-Jan-10 11:31 
GeneralRe: AJAX problem with ie calling aspx pages (works in other browsers) Pin
daveyerwin14-Jan-10 1:03
daveyerwin14-Jan-10 1:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.