算了!还是给你个吧!应该会用吧?
var timeId;
function LbImageOnMouseOut(Obj)
{
window.clearInterval(timeId);
timeId = window.setInterval("MoveControlLbImage();", 35);
}
function LbImageOnMouseOver(Obj)
{
window.clearInterval(timeId);
}
function StartAction()
{
window.clearInterval(timeId);
timeId = window.setInterval("MoveControlLbImage();", 35);
}
function MoveControlLbImage()
{
var Index = 0;
var sId = new String();
var sIda = new String();
for(Index=1;Index<=5;Index++)
{
sId = "LbImage" + (Index).toString();
sIda = sId + "a";
document.all(sId).style.left = parseInt(document.all(sId).style.left) - 1;
document.all(sIda).style.left = parseInt(document.all(sId).style.left) - 1;
if(parseInt(document.all(sId).style.left) <= -133)
{
document.all(sId).style.left = 536;
document.all(sIda).style.left = 536;
}
}
}