把原来的image看成一个对象,
现在则把image+注解看成一个对象就可以了.
整体用现在table去替换原来的image

解决方案 »

  1.   

    这样的话图片就可以和它的注解同步滚动了,我百思不得其解,我是新手,请高手指教
    <marquee  onMouseOver='this.stop()' onMouseOut='this.start()' direction=left scrollamount=2 scrolldelay=100 style="HEIGHT: 180px; WIDTH: 416px; overflow: visible" align="center"> 
            <table width = "187" border = "0" height = "231" cellpadding="0" cellspacing="0">
              <tr> 
                <?php       
             $str1 = "select * from scroll where type='0' order by datetime ASC";
         $query1 = mysql_query($str1);
     $p=0;
     while(($data1=mysql_fetch_array($query1)) and ($p < 9)){
       $p++;
       $id = $data1[id];
       $pic=adpic.$id."-pic.jpg";
        ?>
                <td height = "151" valign="top"> 
                  <?php
       for($j =1; $j <2; $j++){
     ?>
                  <table width="185" border="0" height="230" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td height="45">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td height="140" valign="top"> 
                        <div align="right"> 
                          <?php
                if(file_exists($pic)){
                      ?>
                          <div align="center"> <a href="/"><img src="/adpic/<?php echo $id.'-pic.jpg'?>" border="0" width="170" height="135"></a></div>
                          <?php } ?>
                        </div>
                      </td>
                    </tr>
                    <tr> 
                      <td height="45"> 
                        <div align="center"> 
                          <?php echo $data1[name]; ?>
                        </div>
                      </td>
                    </tr>
                  </table>
                  <? }?>
                </td>
                <?php } ?>
              <tr> 
            </table>
            </marquee>
      

  2.   

    测试地址是:http://test.china-eyecare.com/22.php
      

  3.   

    刚才分给错了,可以加分,全当帮小弟一次
      to :stefli(现在好想找个女朋友~) 
      我给你发短消息了