Click here to Skip to main content
15,908,675 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: innerjoin problem in sql query Pin
thatraja18-Feb-10 5:52
professionalthatraja18-Feb-10 5:52 
QuestionDisplay error message via dynamic jQuery popup? Pin
Goalie3517-Feb-10 11:00
Goalie3517-Feb-10 11:00 
AnswerRe: Display error message via dynamic jQuery popup? Pin
Pranay Rana17-Feb-10 20:42
professionalPranay Rana17-Feb-10 20:42 
QuestionTree Of Links Pin
Kevin Marois17-Feb-10 8:36
professionalKevin Marois17-Feb-10 8:36 
AnswerRe: Tree Of Links Pin
Jörgen Andersson17-Feb-10 9:05
professionalJörgen Andersson17-Feb-10 9:05 
AnswerRe: Tree Of Links Pin
DmiNi23-Feb-10 7:44
DmiNi23-Feb-10 7:44 
Questionslideshow problem Pin
rajiv_kadam16-Feb-10 22:19
rajiv_kadam16-Feb-10 22:19 
Questiontextchanging with imagechanging Pin
rajiv_kadam15-Feb-10 23:51
rajiv_kadam15-Feb-10 23:51 
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
















<title>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()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==variableslide.length-1) currentslide=0
else currentslide++
setTimeout("rotateimages()",slidedelay)
}

if (ie||dom)
document.write('&lt;div id="slidedom" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'"></div>')

function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}

if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider



<ilayer id="slidensmain" width="&{slidewidth};" height="&{slideheight};" bgcolor="&{slidebgcolor};" visibility="hide"><layer id="slidenssub" width="&{slidewidth};" left="0" top="0><</layer">


Questionjavascript slide show not workin Pin
rajiv_kadam14-Feb-10 19:37
rajiv_kadam14-Feb-10 19:37 
AnswerRe: javascript slide show not workin Pin
thatraja14-Feb-10 19:48
professionalthatraja14-Feb-10 19:48 
Questionslideshowproblem in asp Pin
rajiv_kadam14-Feb-10 19:03
rajiv_kadam14-Feb-10 19:03 
Question24 hr running exe Pin
Gjm13-Feb-10 4:59
Gjm13-Feb-10 4:59 
AnswerRe: 24 hr running exe Pin
Dr.Walt Fair, PE13-Feb-10 5:33
professionalDr.Walt Fair, PE13-Feb-10 5:33 
GeneralRe: 24 hr running exe Pin
Gjm11-Jun-10 15:21
Gjm11-Jun-10 15:21 
AnswerDon't repost Pin
Not Active13-Feb-10 7:35
mentorNot Active13-Feb-10 7:35 
GeneralI found the best value for Ebay ProStores, Yahoo Stores, Volusion Pin
kosalaindrasiri12-Feb-10 20:41
kosalaindrasiri12-Feb-10 20:41 
QuestionHave annoying problem with formatting of hand-made tab control Pin
alexandis12-Feb-10 11:58
alexandis12-Feb-10 11:58 
AnswerRe: Have annoying problem with formatting of hand-made tab control Pin
Dr.Walt Fair, PE12-Feb-10 13:16
professionalDr.Walt Fair, PE12-Feb-10 13:16 
GeneralRe: Have annoying problem with formatting of hand-made tab control Pin
alexandis12-Feb-10 22:18
alexandis12-Feb-10 22:18 
AnswerRe: Have annoying problem with formatting of hand-made tab control Pin
Richard MacCutchan12-Feb-10 22:37
mveRichard MacCutchan12-Feb-10 22:37 
GeneralRe: Have annoying problem with formatting of hand-made tab control Pin
alexandis13-Feb-10 18:13
alexandis13-Feb-10 18:13 
GeneralRe: Have annoying problem with formatting of hand-made tab control Pin
Richard MacCutchan13-Feb-10 21:41
mveRichard MacCutchan13-Feb-10 21:41 
GeneralRe: Have annoying problem with formatting of hand-made tab control Pin
alexandis14-Feb-10 1:27
alexandis14-Feb-10 1:27 
QuestionCertain Flash banner development tips Pin
Honoy10-Feb-10 23:00
Honoy10-Feb-10 23:00 
QuestionNetwork Identification Card( NIC) restricted web-pages Pin
mir_ashraf_ali10-Feb-10 20:30
mir_ashraf_ali10-Feb-10 20:30 

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.