橱窗-逃出overflow
bigCat Posted in CSS, JavaScript - 1 Comment/* 090424 add by bigCat showCaseHover */
var timeOutId; //鼠标移出定时器
jQuery(".showCaseProductBox ul").bind("mouseenter",
function() {
clearTimeout(timeOutId);
jQuery("#companyShowCase").find(".a").remove();
jQuery(this).find(".hint").clone().prependTo(jQuery("#companyShowCase")).addClass("a");
var offset = jQuery(this).offset();
jQuery("#companyShowCase").children(".a").attr("style", function() {
return 'display:block;left:' + (offset.left + 16) + 'px;top:' + (offset.top + 14) + 'px';
});
jQuery("#companyShowCase").find(".a")
.bind("mouseleave", function() {
jQuery(this).remove();
})
.bind("mouseenter", function() {
clearTimeout(timeOutId);
});
});
jQuery(".showCaseProductBox ul").bind("mouseleave",
function() {
timeOutId = setTimeout(function() {
jQuery("#companyShowCase").find(".a").remove();
}, 100);
}
);