Sicuramente sbaglio qualcosa nei tag di commento del javascript, potete darmi una mano?codice:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="it"> <head> <title> prova scroll </title> <style type="text/css"> .footer{ position:relative; overflow: hidden; height: 12px; padding:0px; border:1px solid black; } .messaggio{ position:relative; top:-50px; font-size:10px; font-weight:bold; color:#000000; margin:0px; padding:0px; padding-top:12px; font-family:verdana; width:500px; } </style> <script language="JavaScript1.2" type="text/javascript" > //<![CDATA[ var sp=0; var speed=70; function swtScroll() { scrtext=document.getElementById?document.getElementById("sctext"):document.all["sctext"]; maxp=scrtext.offsetHeight?scrtext.offsetHeight:scrtext.style.pixelHeight; if (sp<-maxp) sp=0; sp--; scrtext.style.top=sp+"px"; if(((-1*sp)%12)==0) { setTimeout('swtScroll()',1000); // larger number = slower scroll } else { setTimeout('swtScroll()',speed); // larger number = slower scroll } } function ferma() { } function riparti() { speed=70; } if (!document.layers) window.onload=swtScroll; //]]>-> </script> </head> <body> <div class="footer"> <div id="sctext" class="messaggio" > CIAO PROT Altra prova.... mi leggi? </div> </div> <?php echo "prova"; ?> </body> </html>
la parte tra i tag php appare come se fosse un commento, provare per credere...
ciao e grazie

Rispondi quotando

