Я пытаюсь сделать 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
Нет, это не так. Второе изображение мигает, и последние два изображения не отображаются после скрытия. –