利用插件,实现图片自动轮播展示
引用文件
1 2 | < link href = "css/jq22.css" type = "text/css" rel = "stylesheet" /> < script type = "text/javascript" src = "js/jq22.js" ></ script > |
html
1 2 3 4 5 6 7 8 9 10 | < div id = "d1" class = "box_jq22" > < div class = "list" > < ul > < li >< img src = "images/m1.png" width = "490" height = "170" /></ li > < li >< img src = "images/m2.png" width = "490" height = "170" /></ li > < li >< img src = "images/m3.png" width = "490" height = "170" /></ li > < li >< img src = "images/m4.png" width = "490" height = "170" /></ li > </ ul > </ div > </ div > |
js
1 2 3 4 | window.onload = function () { new AutoPlay( "d1" ); //对应html中id }; |
如一个页面需要调用多个,只需要再多new一个就行了new AutoPlay("d2"); 注意对应好html中的id
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com