目前,我正在嘗試讓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