//就业去向滚动
$(document).ready(function(){
if(document.getElementById('marquePic22')!=null)
{
var marquePic22=document.getElementById('marquePic22');
var marquePic21=document.getElementById('marquePic21');
var demo2=document.getElementById('demo2');
var speed2=30;
marquePic22.innerHTML=marquePic21.innerHTML;
function Marquee2(){
if(demo2.scrollTop>=marquePic21.scrollHeight){//demo向上滚动的距离,, 如果大于marquePic1的高度
demo2.scrollTop=0;
}else{
demo2.scrollTop++;
}
}
var MyMar2=setInterval(Marquee2,speed2);
demo2.onmouseover=function() {clearInterval(MyMar2);MyMar2=null;}
demo2.onmouseout=function() {MyMar2=setInterval(Marquee2,speed2)}
}
});