textchanging with imagechanging
-
i want to display headline whose id matches with the image id of slide show.i tried my best but its not done. so please help me .how to display headline along with slides show of images one by one.below is my code and if u didnt understand my question then go to www.bigbonenews.net in this site the image changes along with the headline like that i want .my image change code is working but how to change headline along with image i dont know please help here is my code below Image Array <% OpenDataBase conn sql="select top 1 * from news order by news_id desc" set obj=server.createobject("adodb.recordset") obj.open sql,conn,1,1 x=obj("news_id")-10 sql2="select * from newsimage where newsid>=" & x & " order by newsid desc" set obj2=server.CreateObject("adodb.recordset") obj2.open sql2,conn,1,1 while obj2.eof<>true sql3="select * from news where news_id =" & obj2("newsid") set rs=server.createobject("adodb.recordset") rs.open sql3,conn,1,1 imagestorotate=imagestorotate & """/images/" & obj2("imagename") &"""," headline=headline & """" & rs("news_titile") & """," obj2.movenext wend imagestorotate=left(imagestorotate,len(imagestorotate)-1) headline=left(headline,len(headline)-1) %> var variableslide=new Array(<%=imagestorotate%>,<%=headline%>) var slidewidth='130px' //set to width of LARGEST image in your slideshow var slideheight='120px' //set to height of LARGEST iamge in your slideshow, plus any text description var slidebgcolor='#F3F3F3' //configure the below variable to determine the delay between image rotations (in miliseconds) var slidedelay=3000 ////Do not edit pass this line//////////////// var ie=document.all var dom=document.getElementById for (i=0;i<variableslide.length;i++){ var cacheimage=new Image() cacheimage.src=variableslide[i][0] } var currentslide=0 function rotateimages(){ contentcontainer='<center>' if (variableslide[currentslide][1]!="") contentcontainer+='<a href="'+variableslide[currentslide][1]+'"> contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="3">' if (variableslide[currentslide][1]!="") contentcontainer+='</a>' contentcontainer+='</center>' if (variableslide[currentslide][2]!="") contentcontainer+=variableslide[currentslide][2] if (document.layers){ crossrotateobj.document.write(contentcontainer) crossrotateobj.document.close() }</x-turndown>