本次编写使用jQuery版本为 1.8.3
1 2 3 4 | //引用核心文件 < script type = "text/javascript" src = "js/simple.slide.min.js" ></ script > < link rel = "stylesheet" href = "css/simple.slide.css" type = "text/css" > |
实例一
1 2 3 4 5 6 7 8 | < a href = "javascript:;" i = "img/1d.jpg" class = "Slide Two" >< img src = "img/1.jpg" alt = "" ></ a > < a href = "javascript:;" i = "img/2d.jpg" class = "Slide Two" >< img src = "img/2.jpg" alt = "" ></ a > < a href = "javascript:;" i = "img/3d.jpg" class = "Slide Two" >< img src = "img/3.jpg" alt = "" ></ a > < a href = "javascript:;" i = "img/4d.png" class = "Slide Two" >< img src = "img/4.png" alt = "" ></ a > < a href = "javascript:;" i = "img/5d.jpg" class = "Slide Two" >< img src = "img/5.jpg" alt = "" ></ a > < script type = "text/javascript" > $('.One').simpleSlide(); </ script > |
实例二
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | < a href = "javascript:;" i = "img/1d.jpg" class = "Slide Two" >< img src = "img/1.jpg" alt = "" ></ a > < a href = "javascript:;" i = "img/2d.jpg" class = "Slide Two" >< img src = "img/2.jpg" alt = "" ></ a > < a href = "javascript:;" i = "img/3d.jpg" class = "Slide Two" >< img src = "img/3.jpg" alt = "" ></ a > < a href = "javascript:;" i = "img/4d.png" class = "Slide Two" >< img src = "img/4.png" alt = "" ></ a > < a href = "javascript:;" i = "img/5d.jpg" class = "Slide Two " >< img src = "img/5.jpg" alt = "" ></ a > < script type = "text/javascript" > $('.Two').simpleSlide({ "opacity":0.5, //背景透明度 "windowAction": "zoomIn", //窗体进入动画 "imageAction": "bounceIn", //图片进入动画 "loadingImage":"img/1.gif" //加载图片 }); //动画样式请参考 animate.css </ script > |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com