我知道我需要使用回调,html()
这样直到 after 才会发生这种情况fadeOut()
,但是在fadeOut()
回调中我无法访问$(this)
from .hover
。
我尝试使用 传递选择var point
,但它不起作用。
if(!$.browser.msie) {
points = $("div.point");
} else {
points = $("div.flash");
}
问题领域
$(points).hover(
function () {
var point = $(this);
$('#features_key').fadeOut('normal', function (point) {
$('#features_key').html(point.next('.info').clone()).fadeIn('normal');
});
},
function () {
}
);
HTML
<div class="feature" id="feature0">
<div class="point"></div>
<div class="info"><p>Roof System</p></div>
</div>