나는 certin 요소 위에 마우스를 올려 놓으면 고유 한 DIV가 표시되고 나머지는 숨김 ... 매우 간단합니다 ...jQuery - 요소가 호출되지 않은 경우?
페이지로드시, div를 "intro" .... div에 표시
내가 달성하고 싶은이며, 다른 5 개 요소는 마우스 커서를 올려 확인한되지 않는 경우, 인트로 DIV ... 본질적으로 쉽게 설명하자면 너무
, 표시됩니다 :
를인트로 div 표시 mouseover이 div 클래스를 사용하는 경우 표시하지 않는 경우이 div ID를 표시합니다.
이$(document).ready(function() {
$('.intro').show();
$('li.members, li.members-active').hover(function() {
$('.members-show').show();
$('.brokers-show').hide();
$('.providers-show').hide();
$('.employers-show').hide();
$('.seniors-show').hide();
$('.all').hide();
return false;
});
$('li.brokers, li.brokers-active').hover(function() {
$('.brokers-show').show();
$('.members-show').hide();
$('.providers-show').hide();
$('.employers-show').hide();
$('.seniors-show').hide();
$('.all').hide();
return false;
});
$('li.providers, li.providers-active').hover(function() {
$('.providers-show').show();
$('.brokers-show').hide();
$('.members-show').hide();
$('.employers-show').hide();
$('.seniors-show').hide();
$('.all').hide();
return false;
});
$('li.employers, li.employers-active').hover(function() {
$('.employers-show').show();
$('.brokers-show').hide();
$('.providers-show').hide();
$('.members-show').hide();
$('.seniors-show').hide();
$('.all').hide();
return false;
});
$('li.seniors, li.seniors-active').hover(function() {
$('.seniors-show').show();
$('.brokers-show').hide();
$('.providers-show').hide();
$('.employers-show').hide();
$('.members-show').hide();
$('.all').hide();
return false;
});
});
그리고 문제는 ...? –