日期:2014-05-16 浏览次数:20637 次
function tile(e) {
e = e
------解决方案--------------------
window.event;
var source = e.srcElement
------解决方案--------------------
e.target;
if (source.tagName == "IMG")
photoID = getid("photo");
photoID.style.backgroundImage = "url(" + source.src + ")";
}
document.onclick = tile; //or
// document.onclick = function (e) { tile(e)}