<div class="threesixty product1"> <div class="spinner"> <span>0%</span> </div> <ol class="threesixty_images"></ol> </div>Javascript 代码
window.onload = init; var product; function init(){ product1 = $('.product1').ThreeSixty({ totalFrames: 72, //展示图片总数 endFrame: 72, //展示结束帧 currentFrame: 1, //展示开始起始帧 imgList: '.threesixty_images', //展示图片列表的选择器 progress: '.spinner', //加载图片时Loading的选择器 imagePath:'assets/product1/', //展示图片所在路径 filePrefix: 'ipod-', //图片文件名前缀 ext: '.jpg', //图片扩展名 height: 265, //图片高度 width: 400, //图片宽度 navigation: true //是否开启导航 }); }
下一篇年年有今日