<!doctype html>
<title> </title>
<style type= "text/css" >
#box {
width:950px;
height:500px;
overflow:hidden;
position:relative;
left:0;
top:0;
}
#box #mylist {
position:absolute;
left:0;
top:0
None
}
#box ul li{
Left
}
</style>
<Body>
<DivId="box">
<UlId="mylist">
<Li><A><ImgSrc=".. /images/slider-1.jpg "></A></Li>
<Li><A><ImgSrc=".. /images/slider-2.jpg "></A></Li>
<Li><A><ImgSrc=".. /images/slider-3.jpg "></A></Li>
</Ul>
</Div>
<script type="text/javascript" >
VarTimer=SetInterval ("Hello()",2000);
Varmylist=Document.getElementById ("mylist");
Varnum=Document.getElementById ("mylist").getElementsByTagName ("li");
Varnow=0;
Varleft=0;
functionHello () {
Body ...
document.write ("ddd" +now);
if (left<=-(Num.length-1) *950) {
now=0;
left=-now*950;
MyList.Style.left=left+"px";
now=now+1;
}else{
left=-now* 950;
mylist.style. left= Left+ now=now+1;
}
}
</script ;
</< Span style= "color: #000080; Font-weight:bold ">body ;
</html >
Use JS for carousel