<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> seamless scrolling </title>
<Style type = "text/CSS">
IMG {
Border: 0;
Height: 100px; width: 150px;
}
Td img {
Margin: 0 10px;
}
</Style>
</Head>
<Body>
<! -- Scroll vertically and seamlessly -->
<Div id = "Demo" style = "overflow: hidden; Height: 350px; width: 150px">
<Div id = "demo1">
<A href = "#" target = "_ blank"> </a>
<A href = "#" target = "_ blank"> </a>
<A href = "#" target = "_ blank"> </a>
<A href = "#" target = "_ blank"> </a>
<A href = "#" target = "_ blank"> </a>
<A href = "#" target = "_ blank"> </a>
<A href = "#" target = "_ blank"> </a>
<A href = "#" target = "_ blank"> </a>
<A href = "#" target = "_ blank"> </a>
<A href = "#" target = "_ blank"> </a>
</Div>
<Div id = "demo2"> </div>
</Div>
<SCRIPT>
VaR speed = 40;
VaR demo2 = Document. getelementbyid ("demo2 ");
VaR demo1 = Document. getelementbyid ("demo1 ");
VaR demo = Document. getelementbyid ("Demo ");
Demo2.innerhtml = demo1.innerhtml
Function marquee (){
/* Scroll up */
/* If (demo2.offsettop-demo. scrolltop <= 0 ){
Demo. scrolltop-= demo1.offsetheight;
} Else {
Demo. scrolltop ++;
}*/
/* Scroll down */
If (Demo. scrolltop <= 0 ){
Demo. scrolltop + = demo1.offsetheight;
} Else {
Demo. scrolltop --;
}
}
VaR mymar = setinterval (marquee, speed );
Demo. onmouseover = function () {clearinterval (mymar )}
Demo. onmouseout = function () {mymar = setinterval (marquee, speed )}
</SCRIPT>
</Body>
</Html>