var html = []; html.push('
'); html.push('
'); html.push('
'); html.push('
'); html.push('
2012年
02月02日
'); html.push('
500课时
初级白班
'); html.push('
'); html.push('
'); html.push('
剩余名额
1
位'); html.push('
'); html.push('
'); html.push('
'); html.push('
'); html.push('
2012年
02月07日
'); html.push('
500课时
初级白班
'); html.push('
'); html.push('
'); html.push('
剩余名额
2
位'); html.push('
'); html.push('
'); html.push('
'); html.push('
'); html.push('
2012年
02月08日
'); html.push('
120课时
A1晚班
'); html.push('
'); html.push('
'); html.push('
剩余名额
2
位'); html.push('
'); html.push('
'); html.push('
'); html.push('
'); html.push('
2012年
02月11日
'); html.push('
120课时
A1周末班
'); html.push('
'); html.push('
'); html.push('
剩余名额
1
位'); html.push('
'); html.push('
'); html.push('
'); html.push('
'); html.push('
2012年
02月15日
'); html.push('
500课时
初级白班
'); html.push('
'); html.push('
'); html.push('
剩余名额
2
位'); html.push('
'); html.push('
'); html.push('
'); html.push('
'); html.push('
2012年
02月18日
'); html.push('
120课时
A1周末班
'); html.push('
'); html.push('
'); html.push('
剩余名额
4
位'); html.push('
'); html.push('
'); html.push('
'); html.push('
'); html.push('
2012年
02月22日
'); html.push('
400课时
商贸西语班
'); html.push('
'); html.push('
'); html.push('
剩余名额
2
位'); html.push('
'); html.push('
'); html.push('
'); html.push('
'); html.push('
2012年
02月22日
'); html.push('
120课时
A2晚班
'); html.push('
'); html.push('
'); html.push('
剩余名额
4
位'); html.push('
'); html.push('
'); html.push('
'); html.push('
'); html.push('
2012年
02月25日
'); html.push('
120课时
A1周末班
'); html.push('
'); html.push('
'); html.push('
剩余名额
5
位'); html.push('
'); html.push('
'); html.push('
'); html.push('
'); html.push('
2012年
02月27日
'); html.push('
500课时
初级白班
'); html.push('
'); html.push('
'); html.push('
剩余名额
8
位'); html.push('
'); html.push('
'); html.push('
'); html.push('
'); html.push(''); document.write(html.join('')); var cursos_hot = document.getElementById('cursos_hot'); var lis = document.getElementById('hot_list').getElementsByTagName('li'); var tem = 0, cur=1, myT=null, myT2=null, cur_a = lis[0]; function scrollUp(e){ tem += (e - tem)*.1; cursos_hot.scrollTop = tem; } function scrollDown(e){ tem -= (tem-e)*.1 cursos_hot.scrollTop = tem; } function play(n){ if(myT)clearInterval(myT); var len = n*110; if(len>tem){ myT = setInterval(function(){scrollUp(len)},20); }else{ myT = setInterval(function(){scrollDown(len)},20); } } function start(){ if(cur>lis.length-1)cur=0; cur_a.className=''; cur_a = lis[cur]; cur_a.className = 'cur'; //cursos_hot.scrollTop = (cur+1)*110; play(cur); cur++; } function runMe(){ clearTimeout(myT2); myT2 = setTimeout(runMe, 10000); start(); } for(var i=0; i