效果如下图:
Html:
<!DOCTYPE html>
<html xmlns=" http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>jquery中的大图轮播还有遮罩效果</title>
<script src=" http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
</head>
<body>
<script type="text/javascript" src="http://wxscreen.alltosun.net/js/jquery.carouFredSel-6.2.1-packed.js"></script>
<script>
$(function(){
$('.case-list li:nth-child(3n)').css('marginRight', 0);
//顶部轮播
$('#caseList3,#caseLeft3, #caseRight3').mouseover(function(){
$('#caseLeft3, #caseRight3').css({ opacity:'1',zIndex:'10' });
}).mouseout(function(){
$('#caseLeft3, #caseRight3').css({ opacity:'0',zIndex:'-10' });
});
$('#caseList3').carouFredSel({
direction:"left",
//width: '260',
circular:true,
prev: '#caseLeft3',
next: '#caseRight3',
pagination : {
container: "#casePager3",
anchorBuilder: false
},
items: {
visible: 1,
width: 900,
height: 518
},
scroll:{
items:1