Dove c'è:
Codice:
// Aggiungi un link per ciascuna immagine, in formato assoluto o relativo.
// Se non desideri un link per una o più immagini inserisci il valore "#"
slidelink[0]="#"
slidelink[1]="#"
slidelink[2]="#"
slidelink[3]="#"
slidelink[4]="#"
slidelink[5]="#"
slidelink[6]="#"
slidelink[7]="#"
slidelink[8]="#"
slidelink[9]="#"
Metti le pagine che ogni immagine deve far aprire al posto di "#".
Dove c'è:
Codice:
if (i_loop<=slidewidth) {
if (ie) {
imgcontainer1.innerHTML="<a href='"+slidelink[i_image1]+"' target='"+slidetarget[i_image1]+"'><img width='"+i_loop+"' height='"+slideheight+"' src='"+slideurl[i_image1]+"' border='0'></a>"
document.all.imgcontainer2.style.posLeft=document.all.imgcontainer1.style.posLeft+i_loop
imgcontainer2.innerHTML="<a href='"+slidelink[i_image2]+"' target='"+slidetarget[i_image2]+"'><img width='"+(slidewidth-i_loop)+"' height='"+slideheight+"' src='"+slideurl[i_image2]+"' border='0'></a>"
}
if (ns6) {
document.getElementById('imgcontainer1').innerHTML="<a href='"+slidelink[i_image1]+"' target='"+slidetarget[i_image1]+"'><img width='"+i_loop+"' height='"+slideheight+"' src='"+slideurl[i_image1]+"' border='0'></a>"
document.getElementById('imgcontainer2').style.left=parseInt(document.getElementById('imgcontainer1').style.left)+i_loop
document.getElementById('imgcontainer2').innerHTML="<a href='"+slidelink[i_image2]+"' target='"+slidetarget[i_image2]+"'><img width='"+(slidewidth-i_loop)+"' height='"+slideheight+"' src='"+slideurl[i_image2]+"' border='0'></a>"
}
i_loop=i_loop+step
var timer=setTimeout("stretchimage()",speed)
}
Prova a sostituirlo con:
Codice:
if (i_loop<=slidewidth) {
if (ie) {
imgcontainer1.innerHTML="<a href=\"#\" onclick=\"window.open('"+slidelink[i_image1]+"', 'popup', 'width=300, height=300, toolbar=yes, location=no, status=yes, menubar=yes, scrollbars=no, resizable=no'); return false;\"><img width=\""+i_loop+"\" height=\""+slideheight+"\" src=\""+slideurl[i_image1]+"\" border=\"0\"></a>"
document.all.imgcontainer2.style.posLeft=document.all.imgcontainer1.style.posLeft+i_loop
imgcontainer2.innerHTML="<a href=\"#\" onclick=\"window.open('"+slidelink[i_image2]+"', 'popup', 'width=300, height=300, toolbar=yes, location=no, status=yes, menubar=yes, scrollbars=no, resizable=no'); return false;\"><img width=\""+(slidewidth-i_loop)+"\" height=\""+slideheight+"\" src=\""+slideurl[i_image2]+"\" border=\"0\"></a>"
}
if (ns6) {
document.getElementById('imgcontainer1').innerHTML=<a href=\"#\" onclick=\"window.open('"+slidelink[i_image1]+"', 'popup', 'width=300, height=300, toolbar=yes, location=no, status=yes, menubar=yes, scrollbars=no, resizable=no'); return false;\"><img width=\""+i_loop+"\" height=\""+slideheight+"\" src=\""+slideurl[i_image1]+"\" border=\"0\"></a>"
document.getElementById('imgcontainer2').style.left=parseInt(document.getElementById('imgcontainer1').style.left)+i_loop
document.getElementById('imgcontainer2').innerHTML="<a href=\"#\" onclick=\"window.open('"+slidelink[i_image2]+"', 'popup', 'width=300, height=300, toolbar=yes, location=no, status=yes, menubar=yes, scrollbars=no, resizable=no'); return false;\"><img width=\""+(slidewidth-i_loop)+"\" height=\""+slideheight+"\" src=\""+slideurl[i_image2]+"\" border=\"0\"></a>"
}
i_loop=i_loop+step
var timer=setTimeout("stretchimage()",speed)
}