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('上证指数 2682.4 -1.37% 深证成指 8125.6 -1.15% 恒生指数 27900.8 -1.87% ');fcontent2[0]='道琼斯30 25883.3 +1.74% 纳斯达克 7472.4 +0.61% 伦敦FTSE 7236.7 +0.55% '; fcontent2[1]='法国CAC  5153.2 +1.79% 德国DAX  11299.8 +1.89% 俄罗斯RTS 930.8 -0.06% '; fcontent2[2]='日经225  20900.6 -1.13% 汉城综合 2196.1 -1.34% 澳洲指数 5938.1 +0.49% '; fcontent2[3]='纽约原油期货(美元/桶) 55.79 +2.42% 国际黄金现货(美元/盎司) 1321.8 +0.72% '; 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}}};