Ragazzi ho tradotto un vecchio codice che avevo fatto in asp in php per estrarre le news con <MARQUEE>
Codice PHP:
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"\">
<tr>
<td width=\"450\" id=\"tDisplay\">";
while ($row = mysql_fetch_array($res[0])) {
$sTxt = $sHtml1 . sprintf(TEXT_DATE, av_date_short($row['data'])) . $sHtml2 . $row[LANG."titolo"] . $sHtml3 . $row[LANG."descrizione"] . $sHtml4 . $sHtml5;
$iSpeed = 90; // Speed of Marquee (+ alto = + lento)
$iTop = 0; // Y Location Within Object
$iLeft = 0; // X Location""""
$iWidth = 450; // Width
$iHeight = 50; // Height
$sMarquee = "<MARQUEE onmouseover=this.stop(); onmouseout=this.start(); direction=up scrollamount=1 scrolldelay=\"".$iSpeed."\" top=\"".$iTop."\" left=\"".$iLeft."\" width=\"".$iWidth."\" height=\"".$iHeight."\">" . $sTxt . "</MARQUEE>";
echo $sMarquee ."
";
} // chiudo while
echo "
</td>
</tr>
</table>";
Ma non capisco perchè, qui, mi estare le due news ma me le mette in due tabelle distinte una sotto l'altra; quindi ottengo che scorrono in contemporanea e non una dopo l'altra :master: