$(function(){ // bannerscroll var ba = $('.banner_box .banner') liba = ba.find('ul li'), libal = liba.length, nowba = 0; liba.eq(0).show(); ba.append('
'+'
'); var dlba = ba.find('dl'); for(var i=0;i'+'') } var ddba = dlba.find('dd'); ddba.eq(0).addclass('current'); function changeba(){ liba.eq(nowba).fadein().siblings().fadeout(); ddba.eq(nowba).addclass('current').siblings().removeclass('current'); } ddba.click(function(){ nowba = $(this).index(); changeba(); }); setinterval(function(){ nowba++; if(nowba==libal){ nowba=0; } changeba(); },4000); // bannernews var ban = $('.banner_news'), closeban = ban.find('.close'); closeban.click(function(){ ban.slideup(); }); var ulban = ban.find('ul'), liban = ban.find('li'), libanh = liban.height(), libanl = liban.length, nowban = 0; setinterval(function(){ if(nowban