onmouseenter onmouseleave onclick

之前没用过鼠标点击事件, 目前由于项目需要要添加此功能。

给属性添加处理函数即可:

var blueID01 = document.getElementById("blueId01");

blueID01.onmouseenter = onMouseEnterBlue;
blueID01.onmouseleave = onMouseLeaveBlue;

猜你喜欢

转载自blog.csdn.net/liubangbo/article/details/80907035