分享

美化过的匀速图片滚动

 我依然125 2010-11-11
<HTML>
<HEAD>
<TITLE>美化过的匀速图片滚动</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<style>
P {
 MARGIN: 20px
}
.table-left-right {
 BORDER-LEFT: #E7E7E7 1px solid;
 BORDER-RIGHT: #E7E7E7 1px solid;
}
TD {
 font-size: 12px;
}
.hangju {
 line-height: 20px;
 word-spacing: 3pt;
}
.title
{
 color: #000000;
 font-weight: bold;
}
.title2
{
 color: #ffffff;
 font-weight: bold;
}
.title3
{
 color: #000000;
 font-weight: bold;
}
</style>
</HEAD>
<BODY leftMargin=0 topMargin=2 marginheight="0" marginwidth="0">
<CENTER>
  <TABLE
style="BORDER: #eeeeee 1px solid"
cellSpacing=0 cellPadding=0 width=750 align=center border=0>
  <TBODY>
  <TR>
    <TD>
      <DIV id=demo style="OVERFLOW: hidden; WIDTH: 100%; COLOR: #ffffff">
      <TABLE cellSpacing=0 cellPadding=0 align=left border=0 cellspace="0">
        <TBODY>
        <TR>
          <TD id=demo1 vAlign=top><table width="1710" height="116"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="171" background="/jscss/demoimg/200907/pic_bg.jpg"><div align="center">第1张</div></td>
              <td width="171" background="/jscss/demoimg/200907/pic_bg.jpg"><div align="center">第2张</div></td>
              <td width="171" background="/jscss/demoimg/200907/pic_bg.jpg"><div align="center">第3张</div></td>
              <td width="171" background="/jscss/demoimg/200907/pic_bg.jpg"><div align="center">第4张</div></td>
              <td width="171" background="/jscss/demoimg/200907/pic_bg.jpg"><div align="center">第5张</div></td>
              <td width="171" background="/jscss/demoimg/200907/pic_bg.jpg"><div align="center">第6张</div></td>
              <td width="171" background="/jscss/demoimg/200907/pic_bg.jpg"><div align="center">第7张</div></td>
              <td width="171" background="/jscss/demoimg/200907/pic_bg.jpg"><div align="center">第8张</div></td>
              <td width="171" background="/jscss/demoimg/200907/pic_bg.jpg"><div align="center">第9张</div></td>
              <td width="171" background="/jscss/demoimg/200907/pic_bg.jpg"><div align="center">第10张</div></td>
            </tr>
          </table></TD>
          <TD id=demo2 vAlign=top> </TD></TR></TBODY></TABLE></DIV>
      <SCRIPT>
var speed3=25//速度,数值越大越慢
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></TBODY></TABLE></TD></TR></TABLE>
</CENTER>
</BODY>
</HTML>

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多