Hi there!
Indeed, strange code for such an issue...
Anyways, change your changeslides function to this:
function changeslides(which){
var imghtml=""
currentindex=(which=="init
var mode=(which=="initial")? "initial" : ""
var which=(mode=="initial")? numberslide[0] : numberslide[which]
if (which[1]!="")
imghtml='<a href="'+which[1]+'" target="'+mylinktarget+'">
imghtml+='<img src="'+which[0]+'" border="'+imgborderwidth+'
if (which[1]!="")
imghtml+='</a>'
if (mode=="initial")
document.write('<div>'+img
else{
document.getElementById("i
changecolors()
}
}
Have fun!
Main Topics
Browse All Topics





by: GwynforWebPosted on 2005-01-17 at 22:25:28ID: 13069840
I recommend stongly that in the future you do not get scripts from http://www.javascriptkit.c om/ again. I've never seen such amazingly bad code in a long time. There are lots of slide show scripts around I'd search again.