سلام
من یک marqueeواسه اخبار سایت ایجاد کردم که این کدهارو نوشتم واسش اما اولا عرضش با زیاد شدن اطلاعات زیاد میشه وهم انگار برای هر خبریه محدوده تعیین میکنه و هر خبر فقط تو اون محدوده حرکت میکنه.اگه ممکنه راهنمایی کنید ممنون میشم.
[PHPS]require_once('../config/config.php');
$query="SELECT * FROM news";
$result=mysql_query($query) or die ('error');
$i=1;
while($row=mysql_fetch_array($result))
{
echo ' <marquee behavior="scrollbar" direction="up" scrollamount="1" onmouseover="this.stop();"
onmouseout="this.start();" style="height: 100px"> <div>
<table class="text" cellspacing="0" border="0" id="ctl00_GridView2" style="width:100%;border-collapse:collapse;">
<tr><td style="width:50px;">
<img id="ctl00_GridView2_ctl02_Image1" src="../Image/felesh.jpg" style="border-width:0px;" />
</td>
<td align="right"><a style="text-decoration: none" href=../news_asatid.php?id='.$row['id'].'>'.$row['title'].'</a></td>
</tr>
</table>
</div>
</marquee>';
$i++;}?>
[/PHPS]
من یک marqueeواسه اخبار سایت ایجاد کردم که این کدهارو نوشتم واسش اما اولا عرضش با زیاد شدن اطلاعات زیاد میشه وهم انگار برای هر خبریه محدوده تعیین میکنه و هر خبر فقط تو اون محدوده حرکت میکنه.اگه ممکنه راهنمایی کنید ممنون میشم.
[PHPS]require_once('../config/config.php');
$query="SELECT * FROM news";
$result=mysql_query($query) or die ('error');
$i=1;
while($row=mysql_fetch_array($result))
{
echo ' <marquee behavior="scrollbar" direction="up" scrollamount="1" onmouseover="this.stop();"
onmouseout="this.start();" style="height: 100px"> <div>
<table class="text" cellspacing="0" border="0" id="ctl00_GridView2" style="width:100%;border-collapse:collapse;">
<tr><td style="width:50px;">
<img id="ctl00_GridView2_ctl02_Image1" src="../Image/felesh.jpg" style="border-width:0px;" />
</td>
<td align="right"><a style="text-decoration: none" href=../news_asatid.php?id='.$row['id'].'>'.$row['title'].'</a></td>
</tr>
</table>
</div>
</marquee>';
$i++;}?>
[/PHPS]