请耐心等待。我是一个新的JavaScript自学习编程。我想知道与该程序中的onmouseover事件协同工作的onmouseout事件的正确代码。最终结果是当鼠标离开onmouseover事件的操作区域时隐藏html页面上的警告框:
<! DOCTYPE html>
<html>
<head>
<title>Product Information</title>
<script>
function Product1Info() {
alert("Summer Product! On sale until Labor Day for $9.99.");
}
function Product2Info() {
alert("One of our best sellers! A bargain at $19.50.");
}
function Product3Info() {
alert("Everyone could use one of these at $1.99!");
}
</script>
</head>
<body>
<h1>Fran's Place<br>Shop our inventory!</h1>
We've got everything you need!<br>
<img src ="product1.jpg" height="300px" width="200px"
border="5" style="border-color:blue;" onmouseover="Product1Info()" /></div>
<img src ="product2.jpg" height="300px" width="200px"
border="5" style="border-color:red;" onmouseover="Product2Info()" /></div>
<img src ="product3.jpg" height="300px" width="200px"
border="5" style="border-color:black;" onmouseover="Product3Info()" /></div>
</body>
</html>