1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
function scrollmrq(){
if ( parseInt(mrq.style.top) > -h_mrq )
mrq.style.top = parseInt(mrq.style.top)-pas+"px"
else
mrq.style.top=parseInt(h_fen)+"px"
}
function init_mrq(){
mrq=document.getElementById("marquee");
fen=document.getElementById("fenetre");
fen.onmouseover=function(){stoc=pas;pas=0};
fen.onmouseout=function(){pas=stoc};fen.style.height=h_fen;
h_mrq=mrq.offsetHeight;
with(mrq.style){position="absolute";top=h_fen;}
//Vitesse de défilement des images
setInterval("scrollmrq()",40);
} |
Partager