我正在尝试隐藏显示的当前标签,并根据其href使用jquery淡化新标签...
这是我的HTML
<div id="leader">
<ul id="llist">
<li class="t current"><a href="#solutions"><span>sage solutions</span></a></li>
<li class="m"><a href="#management"><span>credit mangement solutions</span></a></li>
<li class="b"><a href="#thirdparty"><span>third party additions</span></a></li>
</ul>
<div id="lcontent">
<div id="solutions" class="tab">
<h2>Title</h2>
Description
</div>
<div id="management" class="tab">
<h2>Title</h2>
Description
</div>
<div id="thirdparty" class="tab">
<h2>Title</h2>
Description
</div>
</div>
</div>
JQUERY(也将图像滑动到选中的标签)
$('#leader #llist li').click(function() {
$('#leader #llist li').removeClass('current');
var thisTop = $(this).offset().top;
$('.pointer').animate( {'top': thisTop} );
$(this).addClass('current');
$('.tab').fadeOut();
});
当点击列表中的链接时,当前标签当前不会淡出或淡出...任何帮助将不胜感激。