﻿// JScript 文件
//交易提示、早盘提示
function Swithchleft1(div)
{ 
    for(var i=1;i<3;i++)
    {
        document.getElementById("divleft"+i).className="RightJs_b";//链接样式
        document.getElementById("a1_id"+i).className="JsMenu";//链接样式
        document.getElementById("TipsContentIn"+i).style.display="none";//下面内容
    }
    document.getElementById("divleft"+div).className="RightJs_a";
    document.getElementById("a1_id"+div).className="ReadAll";
    document.getElementById("TipsContentIn"+div).style.display="block";
}

//最新研究、早评
function Swithchleft2(div)
{ 
    for(var i=1;i<5;i++)
    {
        document.getElementById("divResearch"+i).className="JsGm_b";//链接样式
        document.getElementById("a2_id"+i).className="JsMenu";//链接样式
        document.getElementById("InfoAll"+i).style.display="none";//下面内容
    }
    document.getElementById("divResearch"+div).className="JsGm_a";
    document.getElementById("a2_id"+div).className="ReadAll";
    document.getElementById("InfoAll"+div).style.display="block";
}


function Infoscroll(scrollinfo,scrollinfo1,scrollinfo2)
{
    var speed=50
    scrollinfo2.innerHTML=scrollinfo1.innerHTML 
    function Marquee()
    {
        if(scrollinfo2.offsetHeight-scrollinfo.scrollTop<=0) 
        scrollinfo.scrollTop-=scrollinfo1.offsetHeight 
        else{
        scrollinfo.scrollTop++ } } 
        var MyMar=setInterval(Marquee,speed) 
        scrollinfo.onmouseover=function(){clearInterval(MyMar)} 
        scrollinfo.onmouseout=function(){MyMar=setInterval(Marquee,speed)
    } 
}
