| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 572 人关注过本帖
标题:asp走马灯问题
只看楼主 加入收藏
jishang1983
Rank: 1
等 级:新手上路
帖 子:15
专家分:0
注 册:2012-10-14
结帖率:0
收藏
 问题点数:0 回复次数:0 
asp走马灯问题
<table width="100%" CELLPADDING=0 CELLSPACING=0>
<tr>
    <td height="101">
    <div id="demo" style="OVERFLOW: hidden; WIDTH: 534;">
      
      <table cellspacing=0 cellpadding=0 align=left border=0 cellspace="0">
        <tbody>
          <tr>
            <td id="demo1" valign=top>
                <table width="534" height="80"  border="0" cellpadding="1" cellspacing="0">
                    <tr align="center">
                      <td width="89" align="center"><img width="99" height="75" border="0" src="images/hfzx.jpg"/><br>
                       <a href="jmjs.html">XXXX</a></td>
                      <td width="89" align="center"><img width="99" height="75" border="0" src="images/1377z.jpg"/><br>
                       <a href="jmjs.html">XXXX</a></td>
                      <td width="89" align="center"><img width="99" height="75" border="0" src="images/dyflsj.jpg"/><br>
                       <a href="jmjs.html">XXXX</a></td>
                      <td width="89" align="center"><img width="99" height="75" border="0" src="images/xwjxs.jpg"/><br>
                       <a href="jmjs.html">XXXX</a></td>
                      <td width="89" align="center"><img width="99" height="75" border="0" src="images/xwwgf.jpg"/><br>
                       <a href="jmjs.html">XXXX</a></td>

                           
                    </tr>
                </table>
            </td>
            <td id="demo2" valign=top></td>
          </tr>
        </tbody>
      </table>
      </div>
    <SCRIPT>
        var speed3=30//速度数值越大速度越慢
        demo2.innerHTML=demo1.innerHTML
        function Marquee()
        {
            if(demo2.offsetWidth-demo.scrollLeft<=0)
            demo.scrollLeft-=demo1.offsetWidth
            else
            {
                demo.scrollLeft++
            }
        }
        var MyMar=setInterval(Marquee,speed3)
        demo.onmouseover=function() {clearInterval(MyMar)}
        demo.onmouseout=function()
        {
            MyMar=setInterval(Marquee,speed3)
        }
        </SCRIPT>                          
    </td>
</tr>
</table>
同样的一段代码,单独放到一个空白页面中,就能正确显示走马灯效果,但是放到网页首页中以后就不会正常显示,请问高手是哪里有问题,谢谢
搜索更多相关主题的帖子: hidden center border asp 
2012-10-29 14:08
快速回复:asp走马灯问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.024795 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved