87,904
社区成员
发帖
与我相关
我的任务
分享
jQuery(function(){
jQuery('#webmenu li').hover(
function(){
//鼠放悬浮其上时,延迟一秒显示
var _that=jQuery(this);
setTimeout(function(){
_that.children('ul').stop(true,true).show('normal');
},1000);
},function(){
//鼠放离开后,延迟一秒隐藏
var _that=jQuery(this);
setTimeout(function(){
_that.children('ul').stop(true,true).hide('slow');
},1000);
}
);
});
function myOperation(){
alert(1111);
//jQuery(this).children('ul').stop(true,true).show('normal');
}
jQuery(function(){
jQuery('#mydiv').hover(function(){
t = setTimeout("myOperation()",1000);
})
});