﻿
var speed3=25//速度数值越大速度越慢
MovePic2.innerHTML=MovePic1.innerHTML

function Marquee(){
    if(MovePic2.offsetWidth-MainMovePic.scrollLeft<=0)
                MainMovePic.scrollLeft-=MovePic1.offsetWidth
    else{
                MainMovePic.scrollLeft++
                }
    }
        
var MyMar=setInterval(Marquee,speed3)
MainMovePic.onmouseover=function() {clearInterval(MyMar)}
MainMovePic.onmouseout=function() {MyMar=setInterval(Marquee,speed3)}