是否在Internet Explorer中的jQuery插件hoverIntent工作?
-
19-09-2019 - |
题
是 hoverIntent 插件与Internet Explorer兼容?我无法插到下面的JavaScript:
if (jQuery.browser.msie === true) {
jQuery('#top_mailing')
.bind("mouseenter",function(){
$("#top_mailing_hidden").stop().slideDown('slow');
})
.bind("mouseleave",function(){
$("#top_mailing_hidden").stop().slideUp('slow');
});
}
我使用其他浏览器下面的,但它不是在IE7运作
$('#top_mailing').hoverIntent(
function () {
$("#top_mailing_hidden").stop().slideDown('slow');
},
function () {
$("#top_mailing_hidden").stop().slideUp('slow');
}
);
解决方案
我会说是因为我用它在本页面 - http://trailroc.com/ ?p =小组 我检查了7和8,不知道这是否工作在IE6,因为我不在乎。
我使用jQuery 1.3.1虽然:
不隶属于 StackOverflow