Ciao a tutti, premesso che ho pochissima conoscenza di JavaScript, ho la necessità di creare uno script che mi permetta di visualizzare delle immagini scorrevoli (in verticale) a cui collegare un link che apra una finestra popup.
Ho trovato in rete questo script, del tipo "News", che andrebbe bene per il mio caso, se non fosse per il fatto che apre una pagina a se e non una finestra popup.
Ho provato quindi a modificare il codice inserendo "open.window" ma non viene visualizzato nulla.
Vi posto il codice utilizzato

<DIV><SCRIPT language=JavaScript1.2>
var marqueewidth=369
var marqueeheight=159
var speed=1
var marqueecontents='[img]Home_File/Home_IT_13.jpg[/img]'
if (document.all)
document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheig ht+'">'+marqueecontents+'</marquee>')
function regenerate(){
window.location.reload()
}
function regenerate2()
{
if (document.layers)
{
setTimeout("window.onresize=regenerate",369)
intializemarquee()
}
}
function intializemarquee()
{
document.cmarquee01.document.cmarquee02.document.w rite(marqueecontents)
document.cmarquee01.document.cmarquee02.document.c lose()
thelength=document.cmarquee01.document.cmarquee02. document.height
scrollit()
}
function scrollit()
{
if (document.cmarquee01.document.cmarquee02.top>=thel ength*(-1))
{
document.cmarquee01.document.cmarquee02.top-=speed
setTimeout("scrollit()",100)
}
else
{
document.cmarquee01.document.cmarquee02.top=marque eheight
scrollit()
}
}
window.onload=regenerate2</SCRIPT></DIV>

N.B. = Il codice originale dell'HREF funzionante è così : <A HREF="Used_IT.html">

Grazie anticipatamente tutti

Fabio