DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Securing Your Software Supply Chain with JFrog and Azure
Register Today

Trending

  • The Role of Automation in Streamlining DevOps Processes
  • Opportunities for Growth: Continuous Delivery and Continuous Deployment for Testers
  • Grow Your Skills With Low-Code Automation Tools
  • Navigating Digital Assurance With a Scrum Master: Maximizing Quality in Agile Projects

Trending

  • The Role of Automation in Streamlining DevOps Processes
  • Opportunities for Growth: Continuous Delivery and Continuous Deployment for Testers
  • Grow Your Skills With Low-Code Automation Tools
  • Navigating Digital Assurance With a Scrum Master: Maximizing Quality in Agile Projects
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. jQuery Multi-Use Tooltip jHelperTip 1.0

jQuery Multi-Use Tooltip jHelperTip 1.0

Kean Tan user avatar by
Kean Tan
·
Jun. 30, 08 · News
Like (0)
Save
Tweet
Share
10.74K Views

Join the DZone community and get the full member experience.

Join For Free
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.

Download
Demo

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
Special Case

jHelperTipClose : clicking on any element that has this class will make the current tooltip close

Examples

jQuery.noConflict();

jQuery(function($){
$("#test").jHelperTip({
trigger: "click",
dC:"#tip1",
autoClose: false,
opacity: 0.9
});
<div>Matt is doing something <span id="test">dangerous</span></div>

<div id="tip1" style="display:none">
<div class="jHelperTipClose" style="cursor:pointer;color:#F00">click here to close</div>
<p>adj.</p>
<p>1. Involving or filled with danger; perilous.</p>
<p> 2. Being able or likely to do harm.</p>
</div>

Download
Demo

Container JQuery

Opinions expressed by DZone contributors are their own.

Trending

  • The Role of Automation in Streamlining DevOps Processes
  • Opportunities for Growth: Continuous Delivery and Continuous Deployment for Testers
  • Grow Your Skills With Low-Code Automation Tools
  • Navigating Digital Assurance With a Scrum Master: Maximizing Quality in Agile Projects

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: