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('上证指数 2797.5 +2.50% 深证成指 8409.2 +2.13% 恒生指数 27632.1 -1.15% ');fcontent2[0]='道琼斯30 26743.5 +0.32% 纳斯达克 7987.0 -0.51% 伦敦FTSE 7490.2 +1.67% '; fcontent2[1]='法国CAC  5494.2 +0.78% 德国DAX  12430.9 +0.85% 俄罗斯RTS 930.8 -0.06% '; fcontent2[2]='日经225  23869.9 +0.82% 汉城综合 2339.2 +0.68% 澳洲指数 5938.1 +0.49% '; fcontent2[3]='纽约原油期货(美元/桶) 71.52 +1.15% 国际黄金现货(美元/盎司) 1196.1 -0.24% '; 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}}};