jHelperTip 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
jHelperTip 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
jHelperTip 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 未知
开发语言 JavaScript
操作系统 跨平台
软件类型 开源软件
所属分类 jQuery 插件jQuery Tooltips
开源组织
地区 不详
投 递 者 不详
适用人群 未知
收录时间 2008-09-19

软件简介

jHelperTip is intended to be useful in many situations such as hovering tip and clickable tips. It can get data from a container, through Ajax or even the attributes of the current object.

The API and Default Values

$.fn.jHelperTip.defaults = {
trigger: "click",
topOff: 3,
leftOff: 10,
source: "container",
attrName: '',
ttC: "#jHelperTipContainer", /* tooltip Container*/
dC: "#jHelperTipDataContainer", /* data Container */
aC: "#jHelperTipAttrContainer", /* attr Container */
opacity: 1.0,
loadingImg: "ajax-loader.gif",
loadingText: "Loading...",
type: "GET", /* data can be inline or CSS selector */
//url: '',
//data: '',
autoClose: true
};

Explanation of the Options:

trigger: "click" or "hover" to trigger the tooltip

topOff: top offset from mouse pointer

leftOff: left offset from mouse pointer

source: can be "container", "ajax" or "attribute", container is an container in current page, ajax loads from another page, attribute will read the attribute of current object.

attrName: the attribute that you want to pass the data from (only works if your source is attribute)

ttC: tooltip container (define a container to position your tooltip and receive data from ajax), will create if container not found use "#container" and not "container"

dC: data container for same page container (only works if your source is container)

aC: attribute data container (only works if your source is attribute)

opacity: opacity of the tooltips

loadingImg: the loading image indicator in Ajax calls (only works if your source is ajax)

loadingText: the loading text indicator in Ajax calls (only works if your source is ajax)

type: "GET" or "POST" (only works if your source is ajax)

url: The address of the page that you are fetching from (only works if your source is ajax)

data: data passed to the ajax request (only works if your source is ajax)

autoClose: true or false, specify if explicit action is needed to close the tooltip
Examples

jQuery.noConflict();

jQuery(function($){
$("#test").jHelperTip({
trigger: "click",
dC:"#tip1",
autoClose: false,
opacity: 0.9
});

Matt is doing something dangerous

click here to close

adj.

1. Involving or filled with danger; perilous.

2. Being able or likely to do harm.

展开阅读全文

评论

点击引领话题📣 发布并加入讨论🔥
暂无内容
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
0 评论
0 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部