I have downloaded a script in order to show a mini slideshow of images, but the thing keeps throwing up debugging errors and I have not got a clue, can anyone tell me what is wrong with it?
/*
Photo Slider II- By Kevin Adams (kadamsatkyk.net)
For this script and more
Visit http://www.javascriptkit.com
*/
var photos=new Array()
var text=new Array()
var which=0
var what=0
//Change the below variables to reference your own images. You may have as many images in the slider as you wish
photos[0]="bigimages/goldfishbelow.jpg"
photos[1]="plane2.gif"
photos[2]="plane3.gif"
photos[3]="plane4.gif"
photos[4]="plane5.gif"
//change coresponding description
text[0]="B2 Stealth Bomber"
text[1]="F15 Tom Cat!"
text[2]="Russian Su27 Fighter Jet"
text[3]="Some training jet."
text[4]="Commerical Airliner"
function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which];
what--
document.rotater.description.value=text[what];
}
}
function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
what++
document.rotater.description.value=text[what];
}
else window.status='End of gallery'
}
}
function type()
alert("This textbox will only display default comments")a
}
}
It does not seem to like the code in between these lines.
Code:
function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
what++
document.rotater.description.value=text[what];
}
else window.status='End of gallery'
}
}
function type()
alert("This textbox will only display default comments")a
}
}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum