實(shí)例代碼詳解jquery.slides.js
Slides – 是一個簡單的,容易定制和風(fēng)格化,的jQuery幻燈片插件。
Slides提供褪色或幻燈片過渡效果,圖像淡入淡出,圖像預(yù)壓,自動生成分頁,循環(huán),自動播放的自定義等很多選項。
用Slides插件,你可以隨機(jī)播放幻燈片,設(shè)定那一套您想要開始幻燈片。它附帶充分的說明和示例。
廢話不多說了,直接給大家貼代碼了
$(function(){
$("#slides").slidesjs({
play: {
active: true,
// [boolean] Generate the play and stop buttons.
// You cannot use your own buttons. Sorry.
effect: "slide",
// [string] Can be either "slide" or "fade".
interval: ,
// [number] Time spent on each slide in milliseconds.
auto: false,
// [boolean] Start playing the slideshow on load.
swap: true,
// [boolean] show/hide stop and play buttons
pauseOnHover: false,
// [boolean] pause a playing slideshow on hover
restartDelay:
// [number] restart delay on inactive slideshow
}
});
});
前臺:
<!doctype html>
<head>
<style>
/* Prevents slides from flashing */
#slides {
display:none;
}
</style>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="jquery.slides.min.js"></script>
<script>
$(function(){
$("#slides").slidesjs({
width: ,
height:
});
});
</script>
</head>
<body>
<div id="slides">
<img src="http://placehold.it/x">
<img src="http://placehold.it/x">
<img src="http://placehold.it/x">
<img src="http://placehold.it/x">
<img src="http://placehold.it/x">
</div>
</body>
以上內(nèi)容是關(guān)于jquery.slides.js的全部代碼,希望大家喜歡。
相關(guān)文章
jQuery實(shí)現(xiàn)簡單的手風(fēng)琴效果
這篇文章主要為大家詳細(xì)介紹了jQuery實(shí)現(xiàn)簡單的手風(fēng)琴效果,具有一定的參考價值,感興趣的小伙伴們可以參考一下2017-06-06
easyui Draggable組件實(shí)現(xiàn)拖動效果
Draggable是easyui中用于實(shí)現(xiàn)拖拽功能的一個插件。利用它,我們可以實(shí)現(xiàn)控件的拖拽效果。Draggble覆蓋默認(rèn)值$.fn.draggable.defaults。2015-08-08
jQuery的Ajax接收java返回數(shù)據(jù)方法
今天小編就為大家分享一篇jQuery的Ajax接收java返回數(shù)據(jù)方法,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2018-08-08
jQuery插件Flexslider實(shí)現(xiàn)圖片輪播、圖文結(jié)合滑動切換效果
這篇文章主要介紹了jQuery插件Flexslider實(shí)現(xiàn)圖片輪播、圖文結(jié)合滑動切換效果的相關(guān)資料,具有一定的參考價值,感興趣的小伙伴們可以參考一下2016-07-07

