function positionMessage(){ var elme = document.getElementById("message");
elme.style.position = "absolute";
elme.style.left = "50px";
elme.style.top = "100px";
moveMessage("message",125,25,20); var elme = document.getElementById("message2");
elme.style.position = "absolute";
elme.style.left = "50px";
elme.style.top = "50px";
moveMessage("message2",125,125,20);
}这个elme变量第一次定义咧document.getElementById("message");第二次被定义document.getElementById("message2");为什么这两个效果能同时出现,而不是第二次定义的变量覆盖了第一次的呢?
添加回答
举报
0/150
提交
取消