f[0]);}catch(e){i=0;} if(i>=this.appMaxNum){i=0;} this.appTab(i); this.playData=(++i)+"xplay"; } }, appTab:function(tabIndex){ var k,j; try{k=parseInt(tabIndex);}catch(e){k=0;} for(j=0;j<this.appMaxNum;j++){ if(k==j){ $('#itemNav'+j).css({'background-color':'#333333','color':'#FFFFFF'}); $('#item'+j).show('fast'); }else{ $('#itemNav'+j).css({'background-color':'#CCCCCC','color':'#000000'}); $('#item'+j).hide('fast'); } } }, appActive:function(){ var _this = this; this.playerID = setInterval(function(){ _this.appPlay(); },this.speed); }, init:function(refContainerId,intervalTime,refWidth,refHeight){ var cid = ""; var w = 300; var h = 200; if(refContainerId == 'undefined' || refContainerId == null || refContainerId == ''){ return; }else{ cid = $.trim(refContainerId); } if(refWidth == 'undefined' || refWidth == null || refWidth == ''){ w = 300; }else{ w = parseInt(refWidth); } if(refHeight == 'undefined' || refHeight == null || refHeight == ''){ h = 200; }else{ h = parseInt(refHeight); } $('#' + cid).css({"position":"relative",'width':w,'height':h,'overflow':'hidden'}); $('#' + cid + "NavCon").css({'color':'#333333','height':'26px','position':'absolute','width':'95%','left':'0','bottom':'3px','text-align':'right','display':'block'}); var t = 0; if(intervalTime == 'undefined' || intervalTime == null){ t = 3000; }else{ try{ t = parseInt(intervalTime);}catch(e){ t = 3000;} } this.speed = t; var navList = "#" + cid + "NavCon a"; this.appMaxNum = $(navList).size(); if(0 == this.appMaxNum){ return; } var _this = this; $(navList).each(function(i){ $(this).css({'padding':'2px 5px','margin-right':'2px','background-color':'#CCCCCC'}); if(i == 0){ $(this).css({'background-color':'#333333','color':'#FFFFFF'}); } &上一页 [1] [2] [3] [4] [5] [6] 下一页
|