我试图做一个IMG与onmouseover事件消失,那我想是IMG与onmouseout事件在这里再次出现就是我到目前为止有:用的onmouseover改变能见度/的onmouseout
<body>
<h1>Catch the Easter Bunny to get your egg!</h1>
<img src="images/rabbit.png" id="rabbit1" onmouseover=""
onmouseout="show(this);" alt="Catch the rabbit"/>
<img src="images/rabbit.png" id="rabbit2" onmouseover="hide(this);"
onmouseout="show(this);" alt="Catch the rabbit"/>
<img src="images/rabbit.png" id="rabbit3" onmouseover="hide(this)" alt="Catch the rabbit"/>
<img src="images/rabbit.png" id="rabbit4" onmouseover="hide(this)" alt="Catch the rabbit"/>
<h2 id="noeggs">No Easter Eggs for You</h2>
<h2 id="yousuck">Humans suck!!!</h2>
</body>
var count = 0;
function hide(node) {
count += 1;
node.style.visibility = 'hidden';
}
function show(node) {
node.style.visibility = 'visible';
}
什么不工作? – Jashwant
[This](http://jsfiddle.net/jashwant/BxL4m/)完美作品 – Jashwant
不,不是。第二张图片闪烁,最后两张图片隐藏后未显示。 –