javascripts 滚动图片

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Copyright" content="村人漫画网 http://www.cunrentj.com/" />
<meta name="description" content="村人漫画,漫画新闻,漫画评论" />
<meta content="村人漫画" name="keywords" />

<title>haha</title>
<style type="text/css">
td {font-size: 12px;}
</style>
</head>

<BODY leftmargin="0" topmargin="0">

<CENTER>

<!---------------------这个表格是为了固定位置的~-------------------------------->
  <DIV id=demo style="OVERFLOW: hidden; WIDTH: 100%; COLOR: #ffffff">
<TABLE width=2483 align=center style="BORDER: #ccc 1px solid;" bgcolor="#FFFFCC" height="161" cellSpacing=0 cellPadding=0 border=0 >
<TBODY>
<TR>
<TD  id="marquePic1" width="2481" height="161">
 

  <TABLE cellSpacing=0 cellPadding=0 align=left border=0 cellspace="0" bgcolor="#9CBCC2" height="161">
  <TBODY>
        <TR>
  <TD id=demo1 vAlign=top>
      <table width="2471" height="161"  border="0" cellpadding="0" cellspacing="0">
     <tr>
     <td colspan="33" height="11" background="http://www.cunrentj.com/images/bg.gif"></td>
     </tr>
     <tr align="center">
     <td height="11" >  逍遥奇侠</td>
     <td height="11" >胡桃夹子</td>
     <td height="11" >逍遥奇侠</td>
     <td height="11" >济公传奇</td>
     <td height="11" >胡桃夹子</td>
     <td height="11" >济公传奇</td>
     <td height="11" >三国演义</td>
     <td height="11" >村人插画</td>
     <td height="11" >红楼美图</td>
     <td height="11" >红楼美图</td>
     <td height="11" >村人插画</td>
     <td height="11" >红楼美图</td>
     <td height="11" >红楼美图</td>
     <td height="11" >红楼美图</td>
     <td height="11" >水浒美图</td>
     <td height="11" >红楼美图</td>
     <td height="11" >三国演义</td>
     <td height="11" >红楼美图</td>
     <td height="11" >西游记-火魔红孩儿</td>
     <td width="1" height="11" ></td>
     </tr>
     <tr align="center" height="127">
     <td width="130" height="134"><a href="comic_pic_001.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_01.jpg"  width="122" height="137"  border="0"/></a></td>
     <td width="130" ><a href="comic_pic_002.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_02.jpg"  width="122" height="137"  border="0"/></a></td>
     <td width="130" ><a href="comic_pic_004.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_04.jpg"  width="122" height="137"  border="0"/></a></td>
     <td width="130" ><a href="comic_pic_005.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_05.jpg"  width="122" height="137"  border="0"/></a></td>
     <td width="130" ><a href="comic_pic_006.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_06.jpg"  width="122" height="137"  border="0"/></a></td>
     <td width="130" ><a href="comic_pic_007.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_07.jpg"  width="122" height="137"  border="0"/></a></td>
     <td width="130" ><a href="comic_pic_008.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_08.jpg"  width="122" height="137"  border="0"/></a></td>
     <td width="130" ><a href="comic_pic_009.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_09.jpg"  width="122" height="137"  border="0"/></a></td>


     <td width="130" ><a href="comic_pic_010.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_10.jpg"  width="122" height="137"  border="0"/></a></td>
     <td width="130" ><a href="comic_pic_011.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_11.jpg"  width="122" height="137"  border="0"/></a></td>
     <td width="130" ><a href="comic_pic_012.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_12.jpg"  width="122" height="137"  border="0"/></a></td>
     <td width="130" ><a href="comic_pic_013.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_13.jpg"  width="122" height="137"  border="0"/></a></td>

     <td width="130" ><a href="comic_pic_015.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_15.jpg"  width="122" height="137"  border="0"/></a></td>
     <td width="130" ><a href="comic_pic_016.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_16.jpg"  width="122" height="137"  border="0"/></a></td>
     <td width="130" ><a href="comic_pic_017.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_17.jpg"  width="122" height="137"  border="0"/></a></td>
     <td width="130" ><a href="comic_pic_018.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_18.jpg"  width="122" height="137"  border="0"/></a></td>
     <td width="130" ><a href="comic_pic_019.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_19.jpg"  width="122" height="137"  border="0"/></a></td>

     <td width="130" ><a href="comic_pic_020.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_20.jpg"  width="122" height="137"  border="0"/></a></td>
     <td width="130" ><a href="comic_pic_021.htm" target="_blank"><img src="http://www.cunrentj.com/images/pic/pic_21.jpg"  width="122" height="137"  border="0"/></a></td>
              </tr>
      <tr>
                 <td colspan="33"  height="11" background="http://www.cunrentj.com/images/bg.gif"></td>
      </tr>
             </table>
  </TD>   
  </TR>
  </TBODY>
  </TABLE>
<TD id="marquePic2" vAlign=top>
</TD>
</TD>
</TR>
</TBODY>
</TABLE>
<script language=JavaScript src="scrollpic.js"></script>
</DIV>
</CENTER>
</BODY>
</HTML>

 

scrollpic.js

 

var speed=1
marquePic2.innerHTML=marquePic1.innerHTML
function Marquee(){
if(demo.scrollLeft>=marquePic1.scrollWidth){
demo.scrollLeft=0
}else{
demo.scrollLeft++
}}
var MyMar=setInterval(Marquee,speed)
demo.οnmοuseοver=function() {clearInterval(MyMar)}
demo.οnmοuseοut=function() {MyMar=setInterval(Marquee,speed)}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值