|
function fnOpenWelcome() {
var frames = [];
for (var i = 1; i <= 4; i++) {
frames.push({
name: 'welcome_frame_' + i,
url: './html/welcome_frame_' + i + '.html',
bounces: false,
bgColor: './image/welcome/' + i + '.png'
});
}
api.openFrameGroup({
name: 'welcome_group',
scrollEnabled: true,
rect: {
x: 0,
y: 0,
w: 'auto',
h: 'auto'
},
// index: 0,
frames: frames
}, function(ret, err) {
var index = ret.index;
$api.setStorage('win', 3);
})
}; |
|