帖子
帖子
用户
博客
课程
显示全部楼层
17
帖子
2
勋章
2015
Y币

[App引擎] scrollPicture加在指定frame失败

[复制链接]
发表于 2014-10-26 01:00:11
代码如下:

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>


大家帮忙看看哪里有问题,谢谢了!!!

QQ图片20141026010310.png
QQ图片20141026010318.jpg
你好,这个是正常情况的,scrollPicture被添加在指定frame上就会被固定到该frame上的,他的生命周期也会跟该frame保持一致,除非你手动关闭。fram动(如frameGroup里的左右拖动)则此模块也跟着动,但是,frame的内容上下滚动,模块的视图是不会跟着滚动的。
17
帖子
2
勋章
2015
Y币
TurboZ 发表于 2014-10-29 10:27
你好,这个是正常情况的,scrollPicture被添加在指定frame上就会被固定到该frame上的,他的生命周期也会跟 ...

那这个应该应用在什么地方啊
您需要登录后才可以回帖 登录

本版积分规则