Delay before showing the tooltip

ⅰ亾dé卋堺 提交于 2019-12-11 04:45:18

问题


I use simpletip jquery plugin and I want to make some changes in it. I want the tooltip to appear after some time (milliseconds) when hovering the link. Unfortunately I'm not familiar with jquery enough. Can anyone point out how this can be done?

http://craigsworks.com/projects/simpletip/

Thanks in advance


回答1:


Simply use the hoverIntent plugin




回答2:


It looks like you can define a custom effect for showing the tooltip.

In your configuration, define showEffect: 'custom', and showCustom property. It should look something like this:

showEffect: 'custom',
showCustom: function(tip, duration) {
    tip.delay(550).fadeIn(duration);
}

In this case, the fadeIn will be delayed for 550 milliseconds. duration is the showTime specified in your configuration, or, if omitted 150 milliseconds.




回答3:


you could use the onBeforeShow callback event in the simpletip plugin, and just use a delay in that so it delays before it returns and continues to show the tip.



来源:https://stackoverflow.com/questions/4797769/delay-before-showing-the-tooltip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!