Fully Customizable jQuery Tooltip Plugin asTooltip - Download Fully Customizable jQuery Tooltip Plugin - asTooltip

Download Fully Customizable jQuery Tooltip Plugin – asTooltip

Posted on

This time I will share jQuery Plugin and tutorial about Fully Customizable jQuery Tooltip Plugin – asTooltip, hope it will help you in programming stack.

Fully Customizable jQuery Tooltip Plugin asTooltip - Download Fully Customizable jQuery Tooltip Plugin - asTooltip

File Size: 232 KB
Views Total: 2280
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

asTooltip is a lighweight and quick jQuery plugin that displays any Html elements in a highly customizable and skinnable tooltip popup. License under the GPL.

Features:

  • 9 custom positions.
  • Custom triggers.
  • Supports ajax content with a pre-loader.
  • Supports mouse trace that always following your cursor.
  • Auto position based on your layout.
  • Skinnable via CSS.
  • Cross browser.

Basic Usage:

1. Include jQuery javascript library and the jQuery asTooltip plugin’s javascript and stylesheet file in your Html document.

2 <script src="src/jquery-asTooltip.js"></script>

2. Create the tooltip content for a span element using it’s title attribute and set the position option using data-asTooltip-position attribute. You can also pass the position option and other options via Javascript.

1 <span class="position_tooltip" data-asTooltip-position="nw" title="North West">North West</span>

3. Options can be passed via data-* attributes or JavaScript. For data attributes, append the option name to data-, as in data-asTooltip-position.

01 skin: null,
02  
03 onlyOne: false,
04 trigger: 'hover', // hover click
05 interactive: false,
06 interactiveDelay: 500,
07 mouseTrace: false,
08 closeBtn: false,
09  
10 selector: false,
11 container: 'body',
12  
13 distance: 10, //set the distance between tooltip and element
14  
15 position: 'n',
16 autoPosition: true,
17  
18 delay: 0,
19 effect: 'fade', // fade none zoom
20 duration: 200,
21  
22 inline: false,
23 content: null,
24 contentAttr: 'title',
25  
26 ajax: false,
27 ajaxSettings: {
28   dataType: 'html',
29   headers: {
30     'tooltip': true
31   }
32 },
33  
34 tpl: {
35   tip: '<div class="{{namespace}}"></div>',
36   loading: '<span class="{{namespace}}-loading"></span>',
37   content: '<div class="{{namespace}}-content"></div>',
38   arrow: '<span class="{{namespace}}-arrow"></span>',
39   close: '<a class="{{namespace}}-close"></a>'
40 }

Change logs:

v0.4.3 (2017-09-11)

v0.4.0 (2016-10-16)

  • update settings.

v0.3.0 (2014-10-29)

  • update settings.

2014-09-06

  • update tirgger func

2014-05-08

  • clean code, and update to version 0.2.0

This awesome jQuery plugin is developed by amazingSurge. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net