利用jQuery实现全屏背景幻灯片切换代码



41 161 54



特效描述:利用jQuery实现 全屏背景 幻灯片切换,利用jQuery实现全屏背景幻灯片切换代码

代码结构

1. 引入CSS

<link href='http://fonts.googleapis.com/css?family=Exo+2:400' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Exo+2:600' rel='stylesheet' type='text/css'>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/component.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/full_screen_background_slider.css" rel="stylesheet">

2. 引入JS

<script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/modernizr.custom.js"></script>
<script type="text/javascript" src="js/fsbs.min.js"></script>
<script type="text/javascript" src="js/custom.js"></script>

3. HTML代码

       <ul class="fsb-slider">
            <li><span><img src="images/1.jpg"></span></li>
            <li><span><img src="images/2.jpg"></span></li>
            <li><span><img src="images/4.jpg"></span></li>
            <li><span><img src="images/3.jpg"></span></li>
        </ul>
		<div id="content">
			<h3>Choose the animation style</h3>
			<a href="Javascript:void(0);" class="animation_selector" data-value="crossfade">Crossfade</a><a href="Javascript:void(0);" class="animation_selector" data-value="slidefade">SlideFade</a><a href="Javascript:void(0);" class="animation_selector" data-value="rotatefade">RotateFade</a><a href="Javascript:void(0);" class="animation_selector" data-value="randomslide">RandomSlide</a>
			<br><a href="Javascript:void(0);" class="animation_selector" data-value="slidelefttoleft">Slide Left to Left</a>
			<a href="Javascript:void(0);" class="animation_selector" data-value="slidelefttoright">Slide Left to Right</a>
			<a href="Javascript:void(0);" class="animation_selector" data-value="slidelefttotop">Slide Left to Top</a>
			<a href="Javascript:void(0);" class="animation_selector" data-value="slidelefttobottom">Slide Left to Bottom</a>
			<br><a href="Javascript:void(0);" class="animation_selector" data-value="sliderighttoright">Slide Right to Right</a>
			<a href="Javascript:void(0);" class="animation_selector" data-value="sliderighttoleft">Slide Right to Left</a>
			<a href="Javascript:void(0);" class="animation_selector" data-value="sliderighttotop">Slide Right to Top</a>
			<a href="Javascript:void(0);" class="animation_selector" data-value="sliderighttobottom">Slide Right to Bottom</a>
			<br><a href="Javascript:void(0);" class="animation_selector" data-value="slidetoptotop">Slide Top to Top</a>
			<a href="Javascript:void(0);" class="animation_selector" data-value="slidetoptobottom">Slide Top to Bottom</a>
			<a href="Javascript:void(0);" class="animation_selector" data-value="slidetoptoleft">Slide Top to Left</a>
			<a href="Javascript:void(0);" class="animation_selector" data-value="slidetoptoright">Slide Top to Right</a>
			<br><a href="Javascript:void(0);" class="animation_selector" data-value="slidebottomtobottom">Slide Bottom to Bottom</a>
			<a href="Javascript:void(0);" class="animation_selector" data-value="slidebottomtotop">Slide Bottom to Top</a>
			<a href="Javascript:void(0);" class="animation_selector" data-value="slidebottomtoleft">Slide Bottom to Left</a>
			<a href="Javascript:void(0);" class="animation_selector" data-value="slidebottomtoright">Slide Bottom to Right</a>
			<h3>Choose the pattern style</h3>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="disable">Disable</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern">Pattern1</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern1">Pattern2</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern2">Pattern3</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern3">Pattern4</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern4">Pattern5</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern5">Pattern6</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern6">Pattern7</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern7">Pattern8</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern8">Pattern9</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern9">Pattern10</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern10">Pattern11</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern11">Pattern12</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern12">Pattern13</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern13">Pattern14</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern14">Pattern15</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern15">Pattern16</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern16">Pattern17</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern17">Pattern18</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern18">Pattern19</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern19">Pattern20</a>
			<a href="Javascript:void(0);" class="pattern_selector" data-value="pattern20">Pattern21</a>
			</pre>
		</div>
<div style="text-align:center;clear:both">
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 滑动选项卡 滑动切换 滚动切换 滚动条切换 滑动手风琴 选项卡切换 选项卡 切换 tab切换 页面切换 选项卡插件 切换插件 全屏焦点图 放大缩小 变大变小 放大 缩小 变大 变小 缩放 渐隐切换 全屏切换 淡出淡进 淡出 淡进 宽屏全屏 宽屏 全屏 页面全屏 页面宽屏 缩放切换 图片淡出淡进 图片淡出 图片淡进 图片全屏 图片放大缩小 图片缩放 图片大小 图片放大 图片缩小 图片变大 图片变小 文字切换 文字选项卡 背景切换 大图切换 渐隐切换

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到