js滚动显示.txt var i = 0; var dome = document.getElementById('djdzq');//ul标签id var t = window.setInterval(function () { dome.style.top = '-' + i + 'px'; i++; if (i == 792) { i = 0; } }, 80); dome.onmouseover = function () { window.c
var i = 0; var dome = document.getElementById('djdzq');//ul标签id var t = window.setInterval(function () { dome.style.top = '-' + i + 'px'; i++; if (i == 792) { i = 0; } }, 80); dome.onmouseover = function () { window.clearInterval(t); } dome.onmouseout = function () { t = window.setInterval(function () { dome.style.top = '-' + i + 'px'; i++; if (i == 792) { i = 0; } }, 80); }