jQuery ui slider自适应全屏焦点图片轮播切换插件


jQuery ui slider自适应全屏焦点图片轮播切换插件
jQuery ui slider自适应全屏焦点图片轮播切换插件以及全屏焦点图片、轮播切换等js/jquery网页特效代码下载。

1. 引入CSS

<link href="css/bootstrap-combined.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/juicyslider.css" type="text/css" />

2. 引入JS

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/juicyslider.js"></script>

3. HTML代码

<div id="wrap">
	<div class="container">
		<div class="row-fluid">
			<div class="pagination-centered">
				<div id="myslider0" class="juicyslider">
					<ul>
						<li><img src="data/0.jpg" alt=""></li>
						<li><img src="data/2.jpg" alt=""></li>
						<li><img src="data/4.jpg" alt=""></li>
					</ul>
					<div class="nav next"></div>
					<div class="nav prev"></div>
					<div class="mask"></div>
				</div>
			</div>
		</div>
		<hr>
		<div class="row-fluid">
			<div class="pagination-centered span4">
				<div id="myslider1" class="juicyslider">
					<ul>
						<li><img src="data/2.jpg" alt=""></li>
						<li><img src="data/3.jpg" alt=""></li>
						<li><img src="data/4.jpg" alt=""></li>
					</ul>
					<div class="nav next"></div>
					<div class="mask"></div>
				</div>
			</div>
			<div class="pagination-centered span4">
				<div id="myslider2" class="juicyslider">
					<ul>
						<li><img src="data/3.jpg" alt=""></li>
						<li><img src="data/4.jpg" alt=""></li>
						<li><img src="data/5.jpg" alt=""></li>
					</ul>
					<div class="nav next"></div>
					<div class="nav prev"></div>
					<div class="mask"></div>
				</div>
			</div>
			<div class="pagination-centered span4">
				<div id="myslider3" class="juicyslider">
					<ul>
						<li><img src="data/4.jpg" alt=""></li>
						<li><img src="data/3.jpg" alt=""></li>
						<li><img src="data/2.jpg" alt=""></li>
					</ul>
					<div class="nav prev"></div>
					<div class="mask"></div>
				</div>
			</div>
		</div>
		<hr>
	</div>
</div>
<script type="text/javascript">
// start to run when document ready
$(function(){
	$('#myslider0').juicyslider({
		width: '100%',
		height: 400,
		mask : 'none',
		autoplay: false,
		shuffle: true,
	});
	$('#myslider1').juicyslider({
		width: '100%',
		height: 200,
	});
	$('#myslider2').juicyslider({
		width: '100%',
		height: 200,
		mask: 'square',
		show: {effect: 'drop', duration: 3000},
		hide: {effect: 'drop', duration: 3000},
	});
	$('#myslider3').juicyslider({
		width: '100%',
		height: 200,
		mask: 'strip',
		show: {effect: 'puff', duration: 3000},
		hide: {effect: 'puff', duration: 3000},
	});
});
</script>

相关推荐

发表评论

相关文章