目前,我正在尝试让Tipsy在悬停和点击上工作。但我不知道这是否可能......使用其他工具会非常不方便。让jQuery醉appear appear的出现在悬停和点击上
触发器:“手动”根本没有响应。是否有可能或者我真的需要使用其他工具?
这是代码的一部分:每个(功能)
功能initiateMouseEvents(){ $( '信道悬停。')({
$('svg circle, svg path').tipsy({
gravity: 's',
trigger: 'manual',
html: true,
title: 'data-tipsy'
});
var dataChannel = $(this).attr('data-channel');
$(this).bind('mouseover', function() {
if ($(this).attr('data-channel').length) {
effectVisualisation.highlightChannel(dataChannel);
costVisualisation.highlightChannel(dataChannel);
}
}).bind('mouseout', function() {
if ($(this).attr('data-channel').length) {
effectVisualisation.normalizeChannel(dataChannel);
costVisualisation.normalizeChannel(dataChannel);
}
});
});
}
谢谢你无,但我试图设置醉意点击工作。它似乎只着眼于焦点,如果你希望它能够点击工作,则必须在代码中手动完成,而这正是我正在编写的代码中不可能的。是否有解决方法? – Miet 2013-03-19 07:20:53
你检查了小提琴吗?它也适用于点击,点击按钮并检查。 – 2013-03-19 07:57:07
是的,我检查了,谢谢,但内容没有问题。工具提示应该在点击时出现,并且只有在再次点击时才会消失 - 不是自动的。那可能吗? – Miet 2013-03-19 08:52:01