Ciao a tutti,
mi rendo conto che la mia domanda probabilmente è idiota, ma non ho trovato soluzione. Ho inserito in una pagina asp il seguente codice (pescato in internet) per creare del testo scorrevole verticalmente, ho però il problema che nel testo ho la necessità di utilizzare un apostrofo che mi blocca la corretta funzionalità. Per comodità e per esempio ho messo "var testo" = un'unica parola :
<script language="JavaScript1.2">
//Specify the marquee's width (in pixels)
var marqueewidth=350
//Specify the marquee's height
var marqueeheight=120
//Specify the marquee's scroll speed (larger is faster)
var speed=2
var testo='L'AMMINISTRAZIONE'
if (document.all){
document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheig ht+'">'+testo+'</marquee>')}
else if(document.layers){
document.write('<ilayer id="cmarquee01" width="'+marqueewidth+'" height="'+marqueeheight+'"><layer id="cmarquee02" width="'+marqueewidth+'" height="'+marqueeheight+'"></layer></ilayer>')}
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}
function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.w rite(testo)
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>
Qualcuno può darmi un'indicazione?
grazie a tutti
ciao
Silvia