如何从onmouseout事件中调用JavaScript函数?
当您将鼠标从该元素移出时,onmouseout会触发。
示例
您可以尝试运行以下示例,以了解如何从onmouseout事件中调用JavaScript函数
<html>
<head>
<script>
<!--
function over() {
document.write ("Mouse Over");
}
function out() {
document.write ("Mouse Out");
}
//-->
</script>
</head>
<body>
<p>Bring your mouse inside the division to see the result:</p>
<div onmouseover="over()" onmouseout="out()">
<h2> This is inside the division </h2>
</div>
</body>
</html>热门推荐
10 简短有力的结婚祝福语
11 喜庆节的祝福语简短
12 生日祝福语简短独特格式
13 父亲简短结婚祝福语大全
14 双十一祝福语大全简短
15 祝福语女友文案简短霸气
16 高考给舍友祝福语简短
17 新婚抖音祝福语简短
18 对学姐的简短祝福语