您好,登錄后才能下訂單哦!
這篇文章主要介紹“JavaScript怎么實現流動圖片切換效果”,在日常操作中,相信很多人在JavaScript怎么實現流動圖片切換效果問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”JavaScript怎么實現流動圖片切換效果”的疑惑有所幫助!接下來,請跟著小編一起來學習吧!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>大氣流動圖片切換效果相冊js特效代碼</title>
<meta name="description" content="大氣流動圖片切換效果相冊js特效代碼。" />
<meta name="keywords" content="大氣,流動圖片,切換效果,相冊,js特效,特效代碼" />
<meta name="author" content="js代碼" />
<meta name="Copyright" content="js代碼" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="all">
<link rel="stylesheet" href="css/fonts.css" type="text/css" media="all">
<script type="text/javascript" src="js/jquery-1.7.min.js" ></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/uCarousel.js"></script>
<script type="text/javascript" src="js/tms-0.4.1.js" ></script>
<!--必要樣式-->
<link rel="stylesheet" href="css/demo.css" type="text/css" media="all">
<script type="text/javascript">
$(document).ready(function(){
$('.gallery')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:'.play',
duration:10000,
preset:'zoomer',
pagination:$('.img-pags').uCarousel({show:10,shift:0}),
pagNums:false,
slideshow:7000,
numStatus:true,
banners:'fromRight',// fromLeft, fromRight, fromTop, fromBottom
waitBannerAnimation:false,
progressBar:'<div class="progbar"></div>'
});
});
</script>
</head>
<body>
<div id="main">
<div class="inside">
<div id="slide">
<div class="gallery">
<ul class="items">
<li><img src="images/900x500_1.jpg" alt="" /><div class="banner"><span>Unde omnis iste natus errsit rem aperiam, eaque ipsa quae. Woluptatem accusantium </span></div></li>
<li><img src="images/900x500_2.jpg" alt="" /><div class="banner"><span>Nearuasi architecto beatae faserse vitaerspiciat kerusler miase lerosnr lertyseras</span></div></li>
<li><img src="images/900x500_3.jpg" alt="" /><div class="banner"><span>Unde omnis iste natus errsit rem aperiam, eaque ipsa quae. Woluptatem accusantium </span></div></li>
<li><img src="images/900x500_4.jpg" alt="" /><div class="banner"><span>Unde omnis iste natus errsit rem aperiam, eaque ipsa quae. Woluptatem accusantium </span></div></li>
<li><img src="images/900x500_5.jpg" alt="" /><div class="banner"><span>Nearuasi architecto beatae faserse vitaerspiciat kerusler miase lerosnr lertyseras.</span></div></li>
<li><img src="images/900x500_6.jpg" alt="" /><div class="banner"><span>Woluptatem accusantium dolor
<li><img src="images/900x500_7.jpg" alt="" /><div class="banner"><span>Unde omnis iste natus errsit rem aperiam, eaque ipsa quae. Woluptatem accusantium </span></div></li>
<li><img src="images/900x500_8.jpg" alt="" /><div class="banner"><span>Unde omnis iste natus errsit rem aperiam, eaque ipsa quae. Woluptatem accusantium </span></div></li>
<li><img src="images/900x500_1.jpg" alt="" /><div class="banner"><span>Nearuasi architecto beatae faserse vitaerspiciat kerusler miase lerosnr lertyseras</span></div></li>
<li><img src="images/900x500_2.jpg" alt="" /><div class="banner"><span>Unde omnis iste natus errsit rem aperiam, eaque ipsa quae. Woluptatem accusantium </span></div></li>
<li><img src="images/900x500_3.jpg" alt="" /><div class="banner"><span>Unde omnis iste natus errsit rem aperiam, eaque ipsa quae. Woluptatem accusantium </span></div></li>
<li><img src="images/900x500_4.jpg" alt="" /><div class="banner"><span>Nearuasi architecto beatae faserse vitaerspiciat kerusler miase lerosnr lertyseras.</span></div></li>
<li><img src="images/900x500_5.jpg" alt="" /><div class="banner"><span>Woluptatem accusantium dolor
<li><img src="images/900x500_6.jpg" alt="" /><div class="banner"><span>Unde omnis iste natus errsit rem aperiam, eaque ipsa quae. Woluptatem accusantium </span></div></li>
<li><img src="images/900x500_7.jpg" alt="" /><div class="banner"><span>Unde omnis iste natus errsit rem aperiam, eaque ipsa quae. Woluptatem accusantium </span></div></li>
<li><img src="images/900x500_8.jpg" alt="" /><div class="banner"><span>Unde omnis iste natus errsit rem aperiam, eaque ipsa quae. Woluptatem accusantium </span></div></li>
<li><img src="images/900x500_1.jpg" alt="" /><div class="banner"><span>Unde omnis iste natus errsit rem aperiam, eaque ipsa quae. Woluptatem accusantium </span></div></li>
<li><img src="images/900x500_2.jpg" alt="" /><div class="banner"><span>Nearuasi architecto beatae faserse vitaerspiciat kerusler miase lerosnr lertyseras</span></div></li>
<li><img src="images/900x500_3.jpg" alt="" /><div class="banner"><span>Unde omnis iste natus errsit rem aperiam, eaque ipsa quae. Woluptatem accusantium </span></div></li>
<li><img src="images/900x500_4.jpg" alt="" /><div class="banner"><span>Unde omnis iste natus errsit rem aperiam, eaque ipsa quae. Woluptatem accusantium </span></div></li>
</ul>
</div>
<a href="#" class="prev"><</a><a href="#" class="play"><em>stop</em><span>play</span></a> <a href="#" class="next">></a>
</div><!-- slider end -->
<div class="pag">
<div class="img-pags">
<ul>
<li><a href="#"><span><img src="images/70x70_1.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_2.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_3.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_4.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_5.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_6.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_7.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_8.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_1.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_2.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_3.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_4.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_5.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_6.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_7.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_8.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_1.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_2.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_3.jpg" alt="" /></span></a></li>
<li><a href="#"><span><img src="images/70x70_4.jpg" alt="" /></span></a></li>
</ul>
</div>
<a href="#" class="button button1" data-type="prevPage"><</a>
<a href="#" class="button button2" data-type="nextPage">></a>
</div>
</div>
</div>
</body>
</html>
到此,關于“JavaScript怎么實現流動圖片切換效果”的學習就結束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學習,快去試試吧!若想繼續學習更多相關知識,請繼續關注億速云網站,小編會繼續努力為大家帶來更多實用的文章!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。