澳门银河娱乐场 - 澳门银河官方网站 var curIndex = 0; var fcTimer; $(function(){ $('.yema li').eq(curIndex).attr("class","cur"); $('.fc_pics .pica').eq(curIndex).css({"display":"block"}); fcTimer = setInterval("focusDo.indexChange()",3000); $('.fc_pics').hover(function(){ clearInterval(fcTimer); },function(){ fcTimer = setInterval("focusDo.indexChange()",3000); }); $('.fc_pics .yema li').hover(function(){ var cIndex = $(this).index(); focusDo.cntShow(cIndex); curIndex = cIndex; },function(){}); $('.fc_pics .pre').click(function(){ curIndex -= 1; if(curIndex < 0){ curIndex = 4; } focusDo.cntShow(curIndex); }); $('.fc_pics .nxt').click(function(){ curIndex += 1; if(curIndex >=5){ curIndex = 0; } focusDo.cntShow(curIndex); }); }); var focusDo = { cntShow : function(cIndex){ $('.fc_pics .pica').css({"display":"none"}); $('.fc_pics .pica').eq(cIndex).css({"display":"block"}); $('.fc_pics .yema li').removeClass(); $('.fc_pics .yema li').eq(cIndex).attr("class","cur"); }, indexChange : function(){ curIndex += 1; if(curIndex == 5){ curIndex = 0; } this.cntShow(curIndex); } };

澳门银河娱乐场 - 澳门银河官方网站

热门关键词:
Copyright © 2012-2017 澳门银河娱乐场 - 澳门银河官方网站 版权所有 京ICP备11026655号-5