[英]Show Tipsy tooltip without hover?
all. 所有。 I made one form for registration, but I want to show the messages for errors in my tooltip Tipsy.
我做了一张注册表格,但是我想在工具提示Tipsy中显示错误消息。 For this I must made some function to show the tooltip without hover on the ID object.
为此,我必须执行一些功能以显示工具提示,而无需将鼠标悬停在ID对象上。 I try to add new parameter in the default options like this:
我尝试在默认选项中添加新参数,如下所示:
$.fn.tipsy.defaults = {
delayIn: 0,
without_hover: true... }
And second in this function $.fn.tipsy = function(options).... I add one check if the without_hover is true to show the tipsy like this: 然后在此函数中第二个$ .fn.tipsy = function(options)....我添加了一个检查if_hover是否为true来显示如下提示:
if(options.without_hover == true) tipsy.show();
but it doesn't work. 但这不起作用。 I will be happy on any solution.
任何解决方案我都会很高兴。 Thank you.
谢谢。
If you are using the tipsy plugin , the syntax for manually showing a tooltip is: 如果您使用Tipsy插件 ,则手动显示工具提示的语法为:
$(selector).tipsy("show"); $(selector).tipsy(“ show”);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.