﻿// JScript 文件
var speed=5;
var tabWindow=document.getElementById("appraiseListWindow");
var tabLogo=document.getElementById("appraiseListLogo");
var tabUp=document.getElementById("appraiseListUp");
var tabDown=document.getElementById("appraiseListDown");
var MyMar;
function MarqueeUp(){
    if(tabWindow.scrollTop <= -tabLogo.offsetHeight){
        clearInterval(MyMar);
    }
    else{
        tabWindow.scrollTop--;
    }
}
function MarqueeDown(){
    if(tabWindow.scrollTop >= tabLogo.offsetHeight){
        clearInterval(MyMar);
    }
    else{
        tabWindow.scrollTop++;
    }
}
tabUp.onmouseover=function() {MyMar=setInterval(MarqueeUp,speed)};
tabUp.onmouseout=function() {clearInterval(MyMar)};
tabDown.onmouseover=function() {MyMar=setInterval(MarqueeDown,speed)};
tabDown.onmouseout=function() {clearInterval(MyMar)};

