//鼠标移入移出动画
window.onload = function () {
var el = document.createElement(‘div‘);
el.className = "bg";
var obj_lis = document.getElementById("list").getElementsByTagName("a");
for (i = 0; i < obj_lis.length; i++) {
obj_lis[i].onmouseover = function () {
this.appendChild(el);
}
}
}
//end鼠标移入移出动画
时间: 2024-10-07 10:33:29