Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gaubee/my-easy-nivo
extends nivo to json
https://github.com/gaubee/my-easy-nivo
Last synced: 10 days ago
JSON representation
extends nivo to json
- Host: GitHub
- URL: https://github.com/gaubee/my-easy-nivo
- Owner: Gaubee
- License: mit
- Created: 2013-07-05T07:06:53.000Z (over 11 years ago)
- Default Branch: gh-pages
- Last Pushed: 2013-07-09T03:44:43.000Z (over 11 years ago)
- Last Synced: 2024-04-29T21:20:36.716Z (7 months ago)
- Language: JavaScript
- Size: 492 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# My Easy NIVO
[NIVO官方网站](http://dev7studios.com/nivo-slider/)
在NIVO的基础上拓展了一个data属性,用于接受json格式的数据:
```js
$('#slider').nivoSlider({
data:[
{
img_src:"img/toystory.jpg",//展示的图片
data_thumb:"",//当controlNavThumbs设置成true时的,导航条展示的小图url,放空或者不写默认为img_src
a_href:"",//图片的超链接
img_alt:"",//图片无法显示时的描述信息
title:" "//展示的标题
},
{
img_src:"img/up.jpg",//展示的图片
a_href:"http://dev7studios.com",//图片的超链接
title:"这是一个例子的说明"//展示的标题
},
{
img_src:"img/walle.jpg"//展示的图片
}
]
});
```