일반적인 해결책이 무엇인지 궁금합니다. 이 상황에서 나는 jquery 용 hoverIntent 플러그인을 사용합니다.
이 길을 가면, 다음 각 .mouseOver(),.mouseOut()
변경됩니다 :이
$('#fishBlue').hoverIntent(function() {
$('#bubblesBlue').toggle('slow');
$('#textBlue').toggle('slow');
});
}, function() {
$('#bubblesBlue').hide('slow');
$('#textBlue').toggle('slow')
});
참고
이이
$('#fishBlue').mouseover(function() {
$('#bubblesBlue').toggle('slow');
$('#textBlue').toggle('slow');
});
$('#fishBlue').mouseout(function() {
$('#bubblesBlue').hide('slow');
$('#textBlue').toggle('slow');
});
에서
을 호버성 plu 진은 적어도 JQuery와에게 필요 1.5.1
다른 팁
나는 것 추상적 인 것들을 조금 더, 왜 각 물고기 같은 일을 다시 작성합니다.
아마도 내 인덱스 파일 보았다 클래스
$('.fish').hoverIntent(function() {
$(this).next('.bubble').toggle('slow');
$(this).next('.text').toggle('slow');
});
}, function() {
$(this).next('.bubble').hide('slow');
$(this).next('.text').toggle('slow')
});
를 사용하고 내가 JS 1.4을 가지고 있다고 말한다. 1.5.1로하려면 어떻게해야합니까? – L1900
Google에서 jquery를 사용하는 방법을 보려면 버전 번호 만 변경하십시오. 사용 가능한 버전을 확인하십시오. http://code.google.com/apis/libraries/devguide.html#jquery – matchew
matchew와 같은 호버 기능을 권장합니다. html 색인 파일을 변경해야합니까? – L1900