swirlFadeIn
swirlFadeOut
randomFade
linearPeal
linearPealReverse
diagonalFade
blind
barsUp
barsDown
blindFade
explode
explodeFancy
mixBars
mixBarsFancy
fade
blindFadeReverse
slideIn
slideInFancy
slideLeft
slideRight
slideUp
slideDown
fallingBlindFade
raisingBlindFade
最新的jQuery库添加引用
对quake.slider-min.js添加引用
对quake.slider.css添加引用
现在你需要创建一个DIV元素要放置滑块的地方。在这个div添加两个额外的div,一个为你的图像和其他标题如
1 2 3 4 | < div class = "quake-slider" > < div class = "quake-slider-images" > </ div > < div class = "quake-slider-captions" ></ div > </ div > |
下面是一个完整的例子。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | < html > < head > < link href = "css/demo.css" rel = "stylesheet" type = "text/css" /> < link href = "css/quake.slider.css" rel = "stylesheet" type = "text/css" /> < script src = "js/jquery.min.js" type = "text/javascript" ></ script > < script src = "js/quake.slider-min.js" type = "text/javascript" ></ script > < script type = "text/javascript" > $(document).ready(function () { $('.quake-slider').quake({ effects: ['swirlFadeIn', 'swirlFadeOut'], thumbnails: true, captionOpacity: '0.3' }); }); </ script > </ head > < body > < div class = "wrapper" > < div class = "quake-slider" > < div class = "quake-slider-images" > < a target = "_blank" href = "#" > < img src = "images/1.jpg" alt = "Clean Business Free Business Website Premium Template" /> </ a >< a target = "_blank" href = "#" > < img src = "images/2.jpg" alt = "Free Premium HTML Admin/Backend Template for Web Applications" /></ a > < a target = "_blank" href = "#" > < img src = "images/3.jpg" alt = "Free HTML jQuery Portfolio Template" /> </ a >< a target = "_blank" href = "#" > < img src = "images/4.jpg" alt = "jQuery Clean and Simple Tooltips Plugin" /> </ a > </ div > < div class = "quake-slider-captions quake-slider-caption-container" > < div class = "quake-slider-caption" > Clean Business, < span class = 'quake-highlight' >< a target = "_blank" href = "#" > Premium HTML Template.</ a ></ span > A Free Business Website Template.</ div > < div class = "quake-slider-caption" > BlueWhale Admin, < span class = 'quake-highlight' >< a target = "_blank" href = "#" >Premium HTML Admin Template.</ a ></ span > Free Premium HTML Admin/Backend Template.</ div > </ div > </ div > </ div > </ body > </ html > |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com