如何防止鼠标光标离开目标html元素时openTip消息框消失
how to prevent the openTip message box from disappearing when the mouse cursor leave the target html element
如标题所述,我需要始终显示使用 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'});
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"});
使用此脚本或检查更新后的 fiddle ,https://jsfiddle.net/Hema_Nandagopal/671ptukx/2/
如标题所述,我需要始终显示使用 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'});
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"});
使用此脚本或检查更新后的 fiddle ,https://jsfiddle.net/Hema_Nandagopal/671ptukx/2/