onmouseover事件会在鼠标指针移动到指定的对象上时触发事件发生。可以结合JS实现一些CSS特效。
接着单击事件(Events)下面右边的那个向下箭头按钮,在弹出菜单中选择当鼠标移上(OnMouseOver)。好了,这样当页面载入时,这个层并不会出现,只有当我们的鼠标移上单元格时才会出现,怎样?
基于48个网页-相关网页
Define the id, onmouseover and onmouseout attributes for each table cell.
为每个单元格定义id、onmouseover和onmouseout属性。
In this case, there were 20 images in a gallery, and each had that onmouseover event handler.
在这个例子中,图库中有20个图像,每个都有onmouseover事件处理程序。
The row cell has a couple of script handlers—onmouseover and onmouseout—to provide rollover effects.
行的单元格有一组脚本操作——onmouseover和onmouseout——完成鼠标划过的效果。
onmouseover事件会在鼠标指针移动到指定的对象上时触发事件发生。可以结合JS实现一些CSS特效。
应用推荐