document.ns = navigator.appName == "Microsoft Internet Explorer" function randomStr(str){ var showId=Math.floor(Math.random()*3); var tempStr=str[showId]; str[showId]=str[0]; str[0]=tempStr; } function showStr(str,textWidth,num){ if(!document.ns){document.write(str[0]+'
')} else{ document.write('' +'' +'
' +'
' +'' +'' +'' +'' +'
'+str[0]+'
'+str[1]+'
'+str[2]+'
' +'
' +'' +'
'); } } function init_srolltext(num){ countnum=0 marqueesHeight=20; eval('stopscroll'+num+'=false;') eval('icefable1'+num+'.scrollTop=0;') rotatenum=0 eval('icefable1'+num+'.style.width=0;') eval('icefable1'+num+'.style.height=marqueesHeight;') eval('icefable1'+num+'.style.overflowX="visible";') eval('icefable1'+num+'.style.overflowY="hidden";') eval('icefable1'+num+'.noWrap=true;') eval('icefable1'+num+'.onmouseover=new Function("stopscroll=true");') eval('icefable1'+num+'.onmouseout=new Function("stopscroll=false");') eval('preTop'+num+'=0; ') eval('currentTop'+num+'=0;') eval('stoptime'+num+'=0;') eval('icefable2'+num+'.innerHTML="";') eval('icefable2'+num+'.innerHTML+=icefable1'+num+'.innerHTML;') eval('icefable1'+num+'.innerHTML=icefable2'+num+'.innerHTML+icefable2'+num+'.innerHTML;') eval('setInterval("scrollUp'+num+'()",40);') } function scrollUp1(){ if(stopscroll1==true) return; currentTop1+=1; if(currentTop1==21){ stoptime1+=1; currentTop1-=1; if(stoptime1==80){ currentTop1=0; stoptime1=0; } }else{ preTop1=icefable11.scrollTop; icefable11.scrollTop+=1; if(icefable11.scrollTop==78){ preTop1=0; currentTop1=0; stoptime1=0;icefable11.scrollTop=0 } } } var strArray1=new Array(); strArray1[0]='中华五千年探秘频道' strArray1[1]='专家呼吁加强溶洞保护' strArray1[2]='剥隘——即将消失的古镇' randomStr(strArray1); showStr(strArray1,140,1); init_srolltext(1);