Code:
function nextSlide(def) {
try {
val2 = document.list.list.options[document.list.list.selectedIndex+1].value
path = def+"\\"+val2
//document.write (path)
document.getElementById("picture").innerHTML = "<img src='"+path+"'/>"
document.list.list.selectedIndex = document.list.list.selectedIndex+1
}
catch (exeption) {
clearInterval(timer)
alert('Done!')
}
}
function slideShow(pth) {
timeMSec = parseInt(document.nav.ssto.value) * 1000
// document.write(pth)
timer = setInterval([b]'nextSlide(pth)'[/b], timeMSec, "javascript")
}
function nextSlide(def) {
try {
val2 = document.list.list.options[document.list.list.selectedIndex+1].value
path = def+"\\"+val2
//document.write (path)
document.getElementById("picture").innerHTML = "<img src='"+path+"'/>"
document.list.list.selectedIndex = document.list.list.selectedIndex+1
}
catch (exeption) {
clearInterval(timer)
alert('Done!')
}
}
function slideShow(pth) {
timeMSec = parseInt(document.nav.ssto.value) * 1000
// document.write(pth)
timer = setInterval([b]'nextSlide(pth)'[/b], timeMSec, "javascript")
}
Ovo je kod i deo koji me muci. Ako je sa navodnicima onda javlja gresku pth not defined a ako je bez navodnika onda javlja invalid argument. Inace pth je putanja do slike.