1
2 <title> continuous image scrolling code (up)-flywe blog </title>
3 <Base
4
5 href = "http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/">
6
7
8
9 <! -- Image scrolling code -->
10 <Div id = demo style = "Background: # ffffff; overflow: hidden; width: 310px; color: # ffffff; Height: 110px">
11 <Table cellpadding = 0 align = center border = 0 cellspace = "0">
12 <tr>
13 <TD id = demo1 valign = top>
14
15
16
17
18
19
20
21
22
23
24
25 </TD>
26 <TD id = demo2 valign = top>
27 </TD>
28 </tr>
29 </table>
30 <SCRIPT>
31 var speed = 30;
32 demo2.innerhtml = demo1.innerhtml;
33 function marquee (){
34 if (demo2.offsetwidth-demo. scrollleft <= 0)
35 demo. scrollleft-= demo1.offsetwidth;
36 else {
37 demo. scrollleft ++;
38}
39}
40 var mymar = setinterval (marquee, speed );
41 demo. onmouseover = function () {clearinterval (mymar );}
42 demo. onmouseout = function () {mymar = setinterval (marquee, speed );}
43 </SCRIPT>
44 </div>
45 <! -- Image scrolling code ended -->
46