<!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=utf-8" />
<title>opp手机官网3</title>
<style>
*{margin:0; padding:0;}
li{list-style:none;}
img{border:none;}
a{color:#FFF; text-decoration:none;}
.pic{width:1920px; height:630px; position:relative; overflow:hidden;}
.pic ul{/*width:5760px;*/ position:absolute; left:0; border:1px solid #000;}
.pic ul li{float:left;}
.pic li img{ position:relative;}
.pic .Tab{width:100%; text-align:center;position:absolute; bottom:5px;}
.pic .Tab a.active{color:#F30;}
</style>
<script src="js/jquery.js"></script>
<script>
$(document).ready(function() {
var timer=null;
var oUl=$(".pic ul");
var aLi=$(".pic ul li");
var aImg=$(".pic ul li img");
var imgWidth=1920;
oUl.css("width",imgWidth * aImg.length + 'px');
var i=0;
timer=setInterval(function(){
i++;
if(i==aImg.length){
i=0;
}
oUl.animate({"left":"-"+imgWidth*i + 'px'},500);
},2000);
});
</script>
</head>
<body>
<div class="pic" id="pic">
<ul>
<li>
<img src="images/bg1.jpg">
</li>
<li>
<img src="images/bg2.jpg">
</li>
<li>
<img src="images/bg3.jpg">
</li>
</ul>
</div>
</body>
</html>