如何从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 祝福语大全简短6个
13 妈妈祝福语简短16字
14 外婆祝福语短句唯美简短
15 新年祝福语短句简短搞笑
16 明信片祝福语简短句子
17 生日宝宝祝福语简短独特
18 新疆新年祝福语大全简短