滚动图片

 1None.gif<!--滚动图片资料 begin-->
 2ExpandedBlockStart.gifContractedBlock.gif<style type="text/css">dot.gif
 3ExpandedSubBlockStart.gifContractedSubBlock.gif.RollPic{dot.gif}{
 4InBlock.gif    border:1px solid #999999;
 5InBlock.gif    padding:9px 9px 9px 9px;
 6InBlock.gif    background-color:#fff;
 7InBlock.gif    overflow:hidden;
 8ExpandedSubBlockEnd.gif}

 9InBlock.gif
10ExpandedSubBlockStart.gifContractedSubBlock.gif.RollTitle{dot.gif}{color:#fff;line-height:19px;}
11None.gif
</style>
12None.gif<table width=750 cellspacing=0 bgcolor=#ffffff>
13None.gif<tr>
14None.gif<td width=1 height=2></td>
15None.gif<td></td>
16None.gif<td width=1></td>
17None.gif</tr>
18None.gif<tr>
19None.gif<td></td>
20None.gif<td>
21None.gif    
22None.gif    <table width=100% cellspacing=0 style='border:1px solid #9F9F9F;'>
23None.gif    <tr align=center>
24None.gif    <td width=27 height=140 bgcolor=#7C7C7C class='RollTitle'><b><br/><br/><br/></b></td>
25None.gif    <td bgcolor=#CCCCCC>
26None.gif    <div id=demo style="overflow:hidden;height:140px;width:700px;margin-top:12px;">
27None.gif
28None.gif        <table width= cellspacing=0>
29None.gif        <tr>
30None.gif        <td id=demo1>
31None.gif            <table cellspacing=0>
32None.gif            <tr>
33None.gif            <!--滚动图片 begin-->
34None.gif            <td class=RollPic><href=/z/chinaoverseas/photo/22566/index.shtml target="_blank"><img src=http://image2.sina.com.cn/ty/g/p/2005-12-02/U1489P6T12D1912318F44DT20051202002622_small_h.JPG border=1 alt='邵佳一慕尼黑1860随队训练'></a></td>
35None.gif              <td width=4><img width=4></td>
36None.gif<td class=RollPic><href=/z/chinaoverseas/photo/22493/index.shtml target="_blank"><img src=http://image2.sina.com.cn/ty/j/2005-11-30/U1489P6T12D1908322F44DT20051130010010_small_h.jpg border=1 alt='孙祥结束试训回国'></a></td>
37None.gif              <td width=4><img width=4></td>
38None.gif<td class=RollPic><href=/z/chinaoverseas/photo/22432/index.shtml target="_blank"><img src=http://image2.sina.com.cn/ty/g/p/2005-11-29/U329P6T12D1907332F44DT20051129101956_small_h.jpg border=1 alt='邵佳一连续三场进球'></a></td>
39None.gif              <td width=4><img width=4></td>
40None.gif<td class=RollPic><href=/z/chinaoverseas/photo/22414/index.shtml target="_blank"><img src=http://image2.sina.com.cn/ty/g/p/2005-11-28/U1022P6T12D1904876F44DT20051128072121_small_h.jpg border=1 alt='1860客场险胜邵佳一再进球'></a></td>
41None.gif              <td width=4><img width=4></td>
42None.gif<td class=RollPic><href=/z/chinaoverseas/photo/22401/index.shtml target="_blank"><img src=http://image2.sina.com.cn/ty/g/p/2005-11-27/U1166P6T12D1903924F44DT20051127180803_small_h.jpg border=1 alt='曲圣卿助本队赢得榜首大战'></a></td>
43None.gif              <td width=4><img width=4></td>
44None.gif<td class=RollPic><href=/z/chinaoverseas/photo/22299/index.shtml target="_blank"><img src=http://image2.sina.com.cn/ty/g/p/2005-11-25/U1022P6T12D1900128F44DT20051125110547_small_h.jpg border=1 alt='孙祥试训维冈表现不俗'></a></td>
45None.gif              <td width=4><img width=4></td>
46None.gif
47None.gif            <!--滚动图片 end-->
48None.gif            </tr>
49None.gif            </table>
50None.gif
51None.gif        </td>
52None.gif        <td id=demo2></td>
53None.gif        </tr>
54None.gif        </table>
55None.gif        
56None.gif    </div>
57None.gif    </td>
58None.gif    </tr>
59None.gif    </table>
60None.gif</td>
61None.gif<td></td>
62None.gif</tr>
63None.gif<tr>
64None.gif<td height=8></td>
65None.gif<td></td>
66None.gif<td></td>
67None.gif</tr>
68None.gif</table>
69None.gif
70ExpandedBlockStart.gifContractedBlock.gif      <script>dot.gif
71InBlock.gif      var speed=10//速度数值越大速度越慢
72InBlock.gif      demo2.innerHTML=demo1.innerHTML
73ExpandedSubBlockStart.gifContractedSubBlock.gif      function Marquee()dot.gif{
74InBlock.gif          if(demo2.offsetWidth-demo.scrollLeft<=0)
75InBlock.gif          demo.scrollLeft-=demo1.offsetWidth
76ExpandedSubBlockStart.gifContractedSubBlock.gif          elsedot.gif{
77InBlock.gif            demo.scrollLeft++
78ExpandedSubBlockEnd.gif          }

79ExpandedSubBlockEnd.gif      }

80InBlock.gif      var MyMar=setInterval(Marquee,speed)
81ExpandedSubBlockStart.gifContractedSubBlock.gif      demo.onmouseover=function() dot.gif{clearInterval(MyMar)}
82ExpandedSubBlockStart.gifContractedSubBlock.gif      demo.onmouseout=function() dot.gif{MyMar=setInterval(Marquee,speed)}
83ExpandedBlockEnd.gif      
</script>
以前用过,可是忘记了,这次记在自己的BLOG上面,再也不会忘记了,呵呵。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值