利用jQuery實現全屏背景幻燈片切換代碼



35 136 46



特效描述:利用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

加群請備注:從官網了解到

老夫子电子