当鼠标光标离开目标html元素时,如何防止openTip消息框消失

时间:2017-07-06 07:11:31

标签: jquery opentip

如标题中所述,我需要保持使用opentip创建的消息工具提示始终显示。但默认情况下,当鼠标光标离开附加消息框的HTML元素时,消息框将消失。

请帮助修改下面的代码(或访问https://jsfiddle.net/671ptukx/直接编辑代码)以达到上述效果。 非常感谢你提前。

var myOpentip = new Opentip($("#targetTag"),"Need to prevent this tooltip message from disappearing when mouse leaves the \"Example Text\" area",{target:"#targetTag", tipJoint: "top" ,background:"wheat",showOn: 'creation'});

1 个答案:

答案 0 :(得分:1)

var myOpentip = new Opentip($("#targetTag"),"Need to prevent this tooltip message from disappearing when mouse leaves the \"Example Text\" area",{target:"#targetTag", tipJoint: "top" ,background:"wheat",showOn: 'creation',
 
    target: true,
    fixed: true,
    hideTrigger: "closeButton"});

使用此脚本或检查更新的小提琴,https://jsfiddle.net/Hema_Nandagopal/671ptukx/2/