come posso fare un testo scorrevole....anche se mi date qualche sito dove posso prelevare il codice.Grazie
come posso fare un testo scorrevole....anche se mi date qualche sito dove posso prelevare il codice.Grazie
con IE ti basta
<marquee> Testo scorrevole</marquee>
con NS e NS-like devi farti uno script... se lo trovo te lo posto.
Cacca!
per NS dovrebbe andare questo:
<script language="javascript">
var marqueewidth=350
var marqueeheight=20
var speed=6
var marqueecontents='<font face="Arial">INTERNET NEWS la prima e più diffusa rivista del settore</font>'
if (document.all)
document.write('<marquee scrollAmount='+speed+' style="width:'+marqueewidth+'">'+marqueecontents+' </marquee>')
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('<nobr>'+marqueecontents+'</nobr>')
document.cmarquee01.document.cmarquee02.document.c lose()
thelength=document.cmarquee01.document.cmarquee02. document.width
scrollit()
}
function scrollit(){
if (document.cmarquee01.document.cmarquee02.left>=the length*(-1)){
document.cmarquee01.document.cmarquee02.left-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.left=marqu eewidth
scrollit()
}
}
window.onload=regenerate2
</script>
e poi nella pagina
<ilayer width=&{marqueewidth}; height=&{marqueeheight}; name="cmarquee01">
<layer name="cmarquee02"></layer>
</ilayer>
Cacca!
io intendevo testo che scorre verticarlmente..capito?come posso fare?grazie