|
[App引擎]
scrollPicture加在指定frame失败
[复制链接]
代码如下:
function openScrollPicture(path,title){
var obj = api.require('scrollPicture');
obj.open({
placeHoldImg:'widget://res/scrollPicture_placehoder.png',
paths:path,
intervalTime:5,
fixedOn:api.frameName,
subtitle:{
titles:title,
height:25,
size:16,
color:'#FFF',
bgColor:'#000'
},
control:{
position:0
}
},function(ret,err){
if(ret.status){
ret.click;
}else{
ret.index;
}
});
}
调用: <script type="text/javascript">
apiready = function() {
var arrayPath = new Array();
arrayPath[0] ='widget://res/newsImg1.png';
arrayPath[1] = 'widget://res/newsImg2.png';
arrayPath[2] ='widget://res/newsImg3.png';
var arrayTitle = new Array();
arrayTitle[0] ='挑战杯喜获佳绩';
arrayTitle[1] = '\"十周年校庆\"';
arrayTitle[2] ='运动会开幕';
openScrollPicture(arrayPath,arrayTitle);
}
</script>
大家帮忙看看哪里有问题,谢谢了!!!
|
|