|
function OpenScrollPic(){
var arrayPath = new Array();
arrayPath[0] = 'widget://res/scrollPicture_01.jpg';
arrayPath[1] = 'widget://res/scrollPicture_02.jpg';
arrayPath[2] = 'http://f.hiphotos**.**/image/pic/item/4e4a20a4462309f7bdca9423710e0cf3d7cad65d.jpg';
arrayPath[3] = 'widget://res/scrollPicture_04.jpg';
arrayPath[4] = 'widget://res/scrollPicture_05.jpg';
var arrayTitle = new Array();
arrayTitle[0] = 'widget://res/scrollPicture_01.jpg';
arrayTitle[1] = 'widget://res/scrollPicture_02.jpg';
arrayTitle[2] = 'http://f.hiphotos**.**/image/pic/item/4e4a20a4462309f7bdca9423710e0cf3d7cad65d.jpg';
arrayTitle[3] = 'widget://res/scrollPicture_04.jpg';
arrayTitle[4] = 'widget://res/scrollPicture_05.jpg';
var obj = api.require('scrollPicture');
obj.open({
placeHoldImg:'widget://image/scrollPicture_placeholder.png',
x:0,
y:0,
intervalTime:5,
paths:arrayPath,
fixedOn:'main-home-jp',
control:{
position:0
}
},function(ret,err){
if(ret.status){
ret.click;
}else{
ret.index;
}
});
} |
|