var dclose = document.createElement("div");
dclose.style.marginTop = "3px";
dclose.style.marginRight = "6px";
dclose.align = "right"
dclose.innerHTML = "<img id='close' src='../../images/close1.gif' alt='关闭' />";
想给DIV或img加一个onclick事情执行123()函数,想实现鼠标在图片上的时候换成close2.gif图片,请问怎样可以实现?
还有你确定实现鼠标在图片上的时候换图片不是用onmouseover和onmouseout?