3d轮播

Document
</div>
<script type="text/javascript">
$(function(){
	$('.inbox').click(function(){
		var index=$(this).index();
		var ch=index-3;
		if(ch>0){
		$('.inbox').slice(0,ch).appendTo('.box')
		}else if(ch<0){
			$('.inbox').slice(ch).prependTo('.box')
		}else{
			return;
		}
	})
	function moves(){
		$('.inbox').slice(0,1).appendTo('.box')
	}
	var t=setInterval(moves,1000)
	$('.box').hover(function(){
		clearInterval(t)
	},function(){
		t=setInterval(moves,1000)
	})
})
</script>

猜你喜欢

转载自blog.csdn.net/colorset/article/details/90030330