3fc 路域经济 - ag电子游戏

164
4e6
友情链接
  • 兰州市人民政府国有资产监督管理委员会
  • 兰州市政府门户网
  • 兰州市交通运输委员会
  • 中国采招网
//js无缝滚动代码 function marqueeqt(i, direction){ var obj = document.getElementById("marqueeqt" + i); var obj1 = document.getElementById("marqueeqt" + i + "_1"); var obj2 = document.getElementById("marqueeqt" + i + "_2"); if (direction == "up"){ if (obj2.offsetTop - obj.scrollTop <= 0){ obj.scrollTop -= (obj1.offsetHeight + 160); }else{ var tmp = obj.scrollTop; obj.scrollTop++; if (obj.scrollTop == tmp){ obj.scrollTop = 1; } } }else{ if (obj2.offsetWidth - obj.scrollLeft <= 0){ obj.scrollLeft -= obj1.offsetWidth; }else{ obj.scrollLeft++; } } } function marqueetStart(i, direction){ var obj = document.getElementById("marqueeqt" + i); var obj1 = document.getElementById("marqueeqt" + i + "_1"); var obj2 = document.getElementById("marqueeqt" + i + "_2"); obj2.innerHTML = obj1.innerHTML; var marqueeVar = window.setInterval("marqueeqt("+ i +", '"+ direction +"')", 160); obj.onmouseover = function(){ window.clearInterval(marqueeVar); } obj.onmouseout = function(){ marqueeVar = window.setInterval("marqueeqt("+ i +", '"+ direction +"')", 160); } }
0