Originariamente inviato da Simoxxx
Basta inserire il contenuto in un div... e richiamarlo nella funzione js...puoi modificarne la velocità

<html>
<head>
<title>scrollign</title>
<script language="JavaScript1.2">
<!--
var sp=0;
function swtScroll() {
scrtext=document.getElementById?document.getElemen tById("sctext"):document.all["sctext"];
maxp=scrtext.offsetHeight?scrtext.offsetHeight:scr text.style.pixelHeight;
if (sp<-maxp) sp=0;
sp--;
scrtext.style.top=sp;
s1=setTimeout('swtScroll()',20); // larger number = slower scroll
}
if (!document.layers) window.onload=swtScroll;

function stop(){clearTimeout(s1);}

//-->
</script>

</head>

<body scroll=no>
<? $array_news=Array("stringa1","stringa2","stringa3" ,"stringa4","stringa5") ?>

<center>
<div style="overflow:hidden;background-image:url('immagine. jpg');width:400px;height:206px;padding:1
0px;" onmouseover="stop();" onmouseout="swtScroll();">
<div id="sctext" style="position:relative;font-size:14;color:blue;padding-top:200px;">

<?
for ($i=0; $i<4; $i++)
echo "elemento:".$array_news[$i]."
";

?>
scusa, riguarda un po' il codice che hai postato, che oltre ad essere un po' sporco ha dei tag php che a cosa centrano??? probabilmente è il forum ad averteli formattati in automatico! poi c'è un <center> senza chiusura.
Inoltre vorrei capire dove vanno definite le stringhe dell'array!