插件支持参数
1 2 3 4 5 6 7 8 | $.fn.slideCarsousel.defaultSetting = { slideInterval :'slideInterval', // 定时器名称 isAutoChange :true, // true or false 是否自动播放 direction : 5000, // 间隔时间 callbackFunc:null, // 如果不为空,会执行该回调函数 indicatorEvent:'click', // 指示器事件,支持 click or mouseover slideType:'2d' // 轮播类型 2d 或者 3d} |
引用
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | //3d$('#slide3d').slideCarsousel({ slideType: '3d', indicatorEvent: 'mouseover'});//2dvar sliderDescArr = [], i = 0, len = 10;for (; i < len; i++) { sliderDescArr.push(new Array(10).join('' + i));}$('#sliderDesc').text(sliderDescArr[0]);$('#slide2d').slideCarsousel({ callbackFunc: function(index) { $('#sliderDesc1').text(sliderDescArr[index]); }}); |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com