见效果:
见代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>slide demo</title>
<link rel="stylesheet" href="../posterTvGrid.css">
</head>
<body>
<div id="demo-slide">
</div>
<script src="http://cdn.staticfile.org/jquery/1.11.1/jquery.min.js"></script>
<script src="../posterTvGrid.js"></script>
<script>
$(document).ready(function() {
new posterTvGrid(
'demo-slide', {
className: "posterTvGrid",//demo-slide元素里面的第一个div的className
hotcode: true//不知道干嘛的。。
}, [{
"img": "imgs/1.jpg",//img的src
"title": "",//img的alt值
"url": "#"//a链接的href属性的值
},
{
"img": "imgs/2.jpg",
"title": "",
"url": "#"
},{
"img": "imgs/3.jpg",
"title": "",
"url": "#"
},{
"img": "imgs/4.jpg",
"title": "",
"url": "#"
}]
);
})
</script>
</body>
</html>
插件代码见:http://download.csdn.net/detail/maoxunxing/8061507