鼠标经过延迟时间 设置。。。

huangzehuanhuan huangzehuanhuan 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
$(document).ready(function() {
//When page loads...
$(".tab_content").hide(); //Hide all content
$("ul.tabs li:first").addClass("active").show(); //Activate first tab
$(".tab_content:first").show(); //Show first tab content

//On mouseover Event
$("ul.tabs li").mouseover(function() {

$("ul.tabs li").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(".tab_content").hide(); //Hide all tab content

var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
$(activeTab).fadeIn(); //Fade in the active ID content
return false;
});

});
这段代码是控制 鼠标经过切换的,我想让延迟一下才切换(防止用户不经意的操作。。)谢谢啊
...全文
评论 5
收藏 已收藏
分享
返回顶部
huangzehuanhuan
JavaScript 87,984 成员 224,680 内容