$.getJSON("JSON/data.js",function (result){ var setting = { subject:'NBA', cardw : 145, //page card's width . cardh : 145, cardn : 7, //the number of visible page card . margin : 9, //margin between cards . JSON :result }; $('#nba').slider(setting); });
$.getJSON("JSON/data.js",function (result){ var setting = { subject:'Movie', cardw : 145, //page card's width . cardh : 217, cardn : 5, //the number of visible page card . margin : 9, //margin between cards . JSON :result }; $('#movie').slider(setting); });
适用浏览器:360、FireFox、Chrome、Opera、傲游、搜狗、世界之窗. 不支持Safari、IE8及以下浏览器。
来源:收藏盒-素材库