:
<! 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>
<Title> </title>
<SCRIPT type = "text/JavaScript" src = "jquery-1.5.min.js" Language = "JavaScript"> </SCRIPT>
<Title> click to scroll </title>
<Style type = "text/CSS">
* {Margin: 0; padding: 0}
Li {list-style-type: none ;}
IMG {border: 0 ;}
# Container {Height: 180px; Background-color: # d0d7da; width: 810px; position: relative; Background: url(h300.png) Repeat-x Left top; overflow: hidden ;}
. UI-slider-Prev ,. UI-slider-Next {text-indent:-9999px; width: 30px; Height: 30px; cursor: pointer; position: absolute; Z-index: 1000; top: 50%; margin-top:-15px ;}
. UI-slider-Prev {Background: url(hori_large.png) Repeat-x Left top ;}
. UI-slider-Next {Background: url(hori_large.png) Repeat-x left-30px; Right: 0 ;}
. UI-slider-pic {width: 750px; Height: 180px; position: absolute; left: 30px; overflow: hidden ;}
. UI-slider-pic ul {width: 2550px; Height: 180px ;}
. UI-slider-pic ul Li {float: Left; width: 150px; text-align: center ;}
. UI-slider-pic ul Li IMG {width: 120px; Height: 150px; Background-color: # ffffff; padding: 2px ;}
</Style>
<SCRIPT type = "text/JavaScript">
$ (Function (){
VaR Ti = 0;
VaR ul = $ (". UI-slider-pic ul ");
VaR li = ul. Find ("Li ");
VaR width = Li. eq (0). Width ();
VaR num = 5;
$ ("# Container. UI-slider-Prev"). Click (function (){
Ti --;
Go (Ti );
});
$ ("# Container. UI-slider-next"). Click (function (){
Ti ++;
Go (Ti );
});
Function go (I ){
VaR move = width * num * I;
If (move <0) {Ti = 0; return}
If (move> width * Li. Length) {Ti = I-1; return ;}
$ (". UI-slider-pic ul"). animate ({marginleft:-move}, 1000 );
}
});
</SCRIPT>
</Head>
<Body>
<Div id = "Container">
<A class = "UI-slider-Prev" Title = "scroll left"> left </a>
<A class = "UI-slider-next" Title = "scroll right"> right </a>
<Div class = "UI-slider-pic">
<Ul>
<Li> </LI>
<Li> </LI>
<Li> </LI>
<Li> </LI>
<Li> </LI>
<Li> </LI>
<Li> </LI>
<Li> </LI>
<Li> </LI>
<Li> </LI>
<Li> </LI>
<Li> </LI>
<Li> </LI>
</Ul>
</Div>
</Div>
<P>
& Nbsp; </P>
<P>
& Nbsp; </P>
</Body>
</Html>