Facebook-style tooltips plugin for jQuery

Related tags

Tips tipsy
Overview

tipsy

Facebook-style tooltip plugin for jQuery

(c) 2008-2010 Jason Frame ([email protected])

Released under The MIT License.

Description:

tipsy is a simple jQuery plugin for generating Facebook-style tooltips.

It's used by Twitter, Github, Slideshare and Bitbucket, amongst others.

Homepage:

http://onehackoranother.com/projects/jquery/tipsy

Source:

Hosted at GitHub; browse at:

http://github.com/jaz303/tipsy/tree/master

Or clone from:

git://github.com/jaz303/tipsy.git

Usage:

  1. Copy the contents of src/{images,javascripts,stylesheets} to the corresponding asset directories in your project. If the relative path of your images directory from your stylesheets directory is not "../images", you'll need to adjust tipsy.css appropriately.

  2. Insert the neccesary elements in your document's <head> section, e.g.:

     <script type='text/javascript' src='/javascripts/jquery.tipsy.js'></script>
     <link rel="stylesheet" href="/stylesheets/tipsy.css" type="text/css" />
    

Remember to include jquery.tipsy.js after including the main jQuery library.

  1. Initialise Tipsy in your document.onload, e.g.:

     <script type='text/javascript'>
      $(function() {
        $('a[rel=tipsy]').tipsy({fade: true, gravity: 'n'});
      });
     </script>
    

Please refer to the docs directory for more examples and documentation.

Comments
  • One pull request to end them all

    One pull request to end them all

    This merges multiple patches from forks on github.

    Specifically: Style (trailing spaces) has been fixed by multiple parties on() vs live() in newer versions of jquery Fixes to SVG behaviour (use of getBBox()) Ability to inject a custom css class ... and more.

    opened by CloCkWeRX 10
  • Allow mouse to enter tooltip without tooltip disappearing

    Allow mouse to enter tooltip without tooltip disappearing

    This lets you select/copy text, interact with HTML content, etc.

    It's also needed if you tweak the position of the tooltip (via CSS) to have it overlay the target element instead of go around it; in this case, the former behavior caused the tooltip to flicker if you moused over it.

    opened by aseemk 8
  • Little black arrow misplaced and fixed to the screen

    Little black arrow misplaced and fixed to the screen

    It happens to me that when I add a tipsy tootip to a big text input field there is a black arrow. A picture is worth a thousand words: http://img406.imageshack.us/img406/4645/bugtipsy.png

    I hope it helps, and you can fix it. Thanks

    opened by maraujop 8
  • Allow DOM/jQuery objects from title callback

    Allow DOM/jQuery objects from title callback

    This allows something like:

    $('#example').tipsy({
        title: function() {
            var tip = $('<span>Loading...</span>');
    
            $.getJSON('http://example.com/data.json', function(data) {
                tip.text(data.title);
            });
    
            return tip;
        }
    });
    
    opened by jsor 7
  • Add a global enable/disable for tooltips to be shown.

    Add a global enable/disable for tooltips to be shown.

    This allows for temporarily disabling tipsy tooltips. This is useful when you have animations or other situations where tooltips are problematic or cause extra noise.

    $.fn.tipsy.disable(); // Disable tooltips
    $.fn.tipsy.enable();  // Kitten attack! j/k, this turns tooltips back on again.
    
    opened by cespare 6
  • WARNING. Tipsy is not MIT licensed, it has additional restriction, in ideas similar to GNU GPL

    WARNING. Tipsy is not MIT licensed, it has additional restriction, in ideas similar to GNU GPL

    Tipsy in first line of README.md has misleading statement

    Released under The MIT License.

    Effectifly it is not. At the bottom of the same README.md file there is a statement which put additional restriction:

    By forking this project you hereby grant permission for any commits to your fork to be merged back into this repository and, with attribution, be released under the terms of the MIT License.

    So, anyone who is "forking" tipsy MUST grant permission to release code back under the terms of MIT license. This restriction has ideas similar to GNU GPL licence and put sensitive limits on library usage and adoptation.

    Is it unacceptable to some environments to use code with such restrictions.

    Another issue is that statement is questionable from the legal standpoint. For example the meaning of term "forking" is not well defined.

    If the original intension was to cleary define licence of code pushed back by contributors i sugest you to define developer policy as in, for example LLVM project:

    As a contributor to the project, you agree that any contributions be licensed under the terms of the corresponding subproject. (source)

    Another option is to use Apache 2.0 license. From wikipedia:

    The Apache License is permissive, so it does not require modified versions of the software to be distributed using the same license (unlike copyleft licenses - see comparison).

    Unless explicitly stated otherwise, any contributions submitted by a licensee to a licensor will be under the terms of the license without any terms and conditions

    Like any free software license, the Apache License allows the user of the software the freedom to use the software for any purpose, to distribute it, to modify it, and to distribute modified versions of the software, under the terms of the license.

    Hope you clarify on that issue. Thank you.

    opened by senotrusov 4
  • Width option

    Width option

    Is it possible to set tooltip 'width' with js codes? I don't want to set tooltip width with css. I am using your tooltip for text and images. Sometimes i got big images. So pictures overflows tooltip. If i can set tooltip width with js i can select custom width's for custom class or id's. Thank you, for your great work... For example:

    $('.text').tipsy({width: 200}); $('#image-1').tipsy({width: auto'});

    opened by serhatyolacan 4
  • kill() or a simple unbind() method.

    kill() or a simple unbind() method.

    Hi there,

    in my use case i need to unbind the jQuery.tipsy() plugin or the hover effect who was setted up by tipsy(). The problem is the configuration in tipsy().

    Please implement a simple unbind method:

    jQuery('selector').tipsyUnbind();

    Greets, Marc

    opened by m19c 4
  • Calling $obj.tipsy('hide') breaks on non-tipsy-fied obj

    Calling $obj.tipsy('hide') breaks on non-tipsy-fied obj

    If you have a jQuery object and you call

    $obj.tipsy('hide');
    

    when $obj hasn't been tipsy-fied yet, you get

    Uncaught TypeError: Cannot read property 'hide' of null
    

    You might ask "well, why would you do that?" The answer is that I'm using live: true to make $obj tipsy on an as-needed basis; if you make the $obj.tipsy('hide'); call after someone's hovered over it, you don't get an error.

    I've taken to using

    if ($obj.data('tipsy')) { $obj.tipsy('hide'); }
    

    as a workaround, but this is obviously a hack.

    opened by TrevorBurnham 4
  • Would you like to see support for extra gravities?

    Would you like to see support for extra gravities?

    i.e. 8 compass points instead of 4

    I've been thinking about this for ages now, pretty much since I released the project. If enough people vote this up I'll look at adding it in.

    -J

    poll 
    opened by jaz303 4
  • Tipsy is active if title empty

    Tipsy is active if title empty

    Currently tipsy shows an empty tip if the title is empty (like title=""). IMO it should only be active if there is a title != " " or ""

    opened by tordans 4
  • Fixed – positioning issue when className option is set

    Fixed – positioning issue when className option is set

    When the custom className has styles which alter the height and width of the tipsy, adding the className after setting position causes the tipsy to be off positioned with respect to its element.

    opened by bnagarjuna29 0
  • fix positioning bug in Chrome

    fix positioning bug in Chrome

    I've been using this library with D3, and noticed that the tooltips position themselves in the upper left corner of the screen when using Chrome.

    this.$element.offset() was returning { top: 0, left: 0 }. I'm guessing this has to do with Webkit browsers and the way my D3 plots are rendered.

    This branch replaces the call to $.extend({}, this.$element.offset(), {}) with this.$element[0].getBoundingClientRect(). This adds a few extra attributes to the pos object, but solves the issue and should work the same.

    opened by cchko 1
  • Mouseover with Ctrl, Alt and Shift keys?

    Mouseover with Ctrl, Alt and Shift keys?

    Can we have four tipsy titles on one element? Something like:

    <span title="Normal Title" data-tipsy-ctrl-title="With Ctrl Key" data-tipsy-alt-title="With Alt Key" data-tipsy-shift-title="With Shift Key">Some sentence</span>

    Just an idea, but what if more than one keys are pressed at the same time?

    opened by kitce 0
A tooltip style toolbar jQuery plugin

Toolbar.js A jQuery plugin that creates tooltip style toolbars. Update Toolbar.js has been overhauled with new functionality, a completely new design

Paul Kinzett 2.3k Dec 18, 2022
A jQuery tooltip plugin

Tooltipster A flexible and extensible jQuery plugin for modern tooltips by Caleb Jacob and Louis Ameline under MIT license. Compatible with Mozilla Fi

Caleb Jacob 2.8k Dec 29, 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
A jQuery plugin that creates a paneled-style menu (like the type seen in the mobile versions of Facebook and Google, as well as in many native iPhone applications).

#jPanelMenu ###Version 1.4.1 jPanelMenu is a jQuery plugin for easily creating and managing off-canvas content. Check out the demo (and documentation)

Anthony Colangelo 927 Dec 14, 2022
A Chromium extension that enables users to use customizable :emoji: on Facebook/Facebook Messenger.

:emoji: for Messenger A Chromium extension that enables users to use customizable :emoji: on Facebook/Facebook Messenger. Install Download the extensi

null 4 Aug 31, 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
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
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
qTip2 - Pretty powerful tooltips

qTip2 is no longer maintained. Consider moving to a newer library if you need support or new features! qTip2 - Pretty powerful tooltips Introducing… q

qTip2 2k Dec 20, 2022
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
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
Base62-token.js - Generate & Verify GitHub-style & npm-style Base62 Tokens

base62-token.js Generate & Verify GitHub-style & npm-style Secure Base62 Tokens Works in Vanilla JS (Browsers), Node.js, and Webpack. Online Demo See

Root 4 Jun 11, 2022
A tooltip style toolbar jQuery plugin

Toolbar.js A jQuery plugin that creates tooltip style toolbars. Update Toolbar.js has been overhauled with new functionality, a completely new design

Paul Kinzett 2.3k Dec 18, 2022
jQuery plugin for showing a calendar yearview with blocks (github contributions style)

calendar-yearview-blocks jQuery plugin for showing a calendar yearview with blocks (github contributions style) Code adopted from https://github.com/b

Opbod 2 Feb 28, 2021
HTML5

One file. Any browser. Same UI. Author: John Dyer http://j.hn/ Website: http://mediaelementjs.com/ License: MIT Meaning: Use everywhere, keep copyrigh

MediaElement.js 8k Dec 27, 2022