var delay=3000; var maxsteps=30; var stepdelay=40; var startcolor=new Array(210,203,197); var endcolor=new Array(0,0,0); var fcontent2=new Array(); begintag=''; document.writeln('上证指数 2703.5 +0.91% 深证成指 8108.9 +0.58% 恒生指数 26183.5 +0.31% ');fcontent2[0]='道琼斯30 25325.9 -0.34% 纳斯达克 7198.2 -0.69% 伦敦FTSE 7042.6 +0.41% '; fcontent2[1]='法国CAC  5025.0 0.00% 德国DAX  11334.8 -0.06% 俄罗斯RTS 930.8 -0.06% '; fcontent2[2]='日经225  21821.2 +0.65% 汉城综合 2100.6 +0.39% 澳洲指数 5938.1 +0.49% '; fcontent2[3]='纽约原油期货(美元/桶) 55.89 -1.65% 国际黄金现货(美元/盎司) 1221.5 -0.02% '; closetag=""; var fwidth="450px"; var fheight="18px"; var fadelinks=1; var ie4=document.all&&!document.getElementById; var DOM2=document.getElementById; var faderdelay=0; var index=0; function changecontent(){if(index>=fcontent2.length){index=0}if(DOM2){document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"; document.getElementById("fscroller").innerHTML=begintag+fcontent2[index]+closetag; if(fadelinks){linkcolorchange(1)}colorfade(1,15)}else{if(ie4){document.all.fscroller.innerHTML=begintag+fcontent2[index]+closetag}}index++}function linkcolorchange(A){var B=document.getElementById("fscroller").getElementsByTagName("A"); if(B.length>0){for(i=0; i0){C[A]=startcolor[A]-(Math.round((D/maxsteps))*B)}else{C[A]=startcolor[A]+(Math.round((Math.abs(D)/maxsteps))*B)}}return("rgb("+C[0]+", "+C[1]+", "+C[2]+")")} if(ie4||DOM2){document.write('
')}if(window.addEventListener){window.addEventListener("load",changecontent,false)}else{if(window.attachEvent){window.attachEvent("onload",changecontent)}else{if(document.getElementById){window.onload=changecontent}}};