日期:2014-05-16 浏览次数:20448 次
var viewBasic = {
container:"#data-box",
options:{
option:null,
product_type:'pc',
list_type:'harvesting',
resource_type:'tmr',
Period_time:null
}
};
function tickerPage(){
this.url = '';
this.columns=['AUTO','LIFE'];
this.players=[null,null];
this.scrolls=[null,null];
};
tickerPage.prototype = viewBasic;
tickerPage.prototype.init = function(){alert('AAAA')};
function statusPage(){
this.beforeStart = null;
this.afterEnd = null;
this.url='';
}
statusPage.prototype = viewBasic;
statusPage.prototype.init = function(){alert('BBBB')}
function view(){
this.ticker = new tickerPage()
this.status = new statusPage()
};
view.prototype = viewBasic;
view.prototype.show = function(){
var o = this;
switch(o.options.option){
case "ticker":
o.ticker.init();
break;
case "status":
o.status.init();
break;
}
}
window.onload=function(){
viewBasic.options.option = "ticker";
var myview = new view();
myview.show();
}