document.ns = navigator.appName == "Microsoft Internet Explorer" function showStr(str,textWidth,num){ if(!document.ns){ document.write(str[0]+'
') } else{ document.write('' +'' +'
' +'
' +'' +'' +'' +'' +'' +'' +'
'+str[0]+'
'+str[1]+'
'+str[2]+'
'+str[3]+'
'+str[4]+'
' +'
' +'' +'
'); } } 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+'()",20);') } function scrollUp1(){ if(stopscroll1==true) return; currentTop1+=1; if(currentTop1==21){ stoptime1+=1; currentTop1-=1; if(stoptime1==100){ //这个数字跟随文字行数变,行数x20 currentTop1=0; stoptime1=0; } } else{ preTop1=icefable11.scrollTop; icefable11.scrollTop+=1; if(icefable11.scrollTop==101){ //这个数字跟随文字行数变,行数x20+1 preTop1=0; currentTop1=0; stoptime1=0;icefable11.scrollTop=0 } } } var strArray1=new Array(); //strArray1[0]='Ethernet Direct\'s Ethernet switches now work with IntraVUE network management software - 08/08/06' //strArray1[1]='Emerson introduces high temperature pH sensors - 08/08/06' //strArray1[2]='ASI introduces multiple wire terminal blocks - 08/08/06' //strArray1[3]='GE Fanuc Automation announces Ethernet-based control systems for mission-critical applications - 08/08/06' //strArray1[4]='Cognex software speeds deployment of vision guided robots - 08/08/06' strArray1[0]='Emerson to automate new coal-fired power plant in China - 20/8/08' strArray1[1]='Invensys to supply automation and services to Kraton Polymers - 20/8/08' strArray1[2]='ABB presents security paper at PCSF 2008 - 20/8/08' strArray1[3]='GE Fanuc announces Telum ASLP11 processor board - 20/8/08' strArray1[4]='Siemens introduces world\'s largest high-speed, variable-frequency drive - 19/8/08' showStr(strArray1,600,1); init_srolltext(1);