编辑此工具提示实现,使工具提示等待x秒隐藏

Edit this tooltip implementation so the tooltip waits x seconds to hide

本文关键字:工具提示 等待 隐藏 实现 编辑      更新时间:2023-09-26

我正在创建这个工具提示,

http://jsfiddle.net/GLZFc/

它现在工作得很好!但我希望工具提示等待x秒隐藏(如果我再次鼠标悬停,倒计时重置,

我如何实现这个?(如何在这里组合setTimeout ?)

http://jsfiddle.net/GLZFc/48/

您可以在淡出之前调用.delay(someTime)。(你需要一个更新版本的JQuery)

http://jsfiddle.net/GLZFc/40/

setTimeout("$('.miTooltip').fadeOut(500)", 5000);