当前位置: 软件>JavaScript软件
jQuery 的图片旋转插件 Rollerblade
本文导语: rollerblade 是一个 jQuery 插件,用来对图片进行 360 度的旋转。 在线演示:http://www.iamapioneer.com/plugins/rollerblade/ 示例代码: $(document).ready(function(){ // You can specify an array of images outside of the rollerblade method, //...
rollerblade 是一个 jQuery 插件,用来对图片进行 360 度的旋转。
在线演示:
示例代码:
$(document).ready(function(){
// You can specify an array of images outside of the rollerblade method,
// and then pass it in, as so:
var arrayOfImages = [
'path/to/image/1.jpg',
'path/to/image/2.jpg',
'path/to/image/3.jpg',
'path/to/image/4.jpg',
'and/so/on.jpg'
]
$("#target").rollerblade({imageArray:arrayOfImages});
// OR you can create the array directly in the options object, as so:
$("#target").rollerblade({imageArray:[
'path/to/image/1.jpg',
'path/to/image/2.jpg',
'path/to/image/3.jpg',
'path/to/image/4.jpg',
'and/so/on.jpg'
]});
})