My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links

Today, i am representing my own build jquery tooltip, it is very easy to use and build on very simple logic so that you can further modify its code. use it in your project for free, if you like it or have any suggestions / comments , or you have some idea to make it better, or you need some more features in it then pls just drop a comment in the same post.

Version 3.0 : Now use separate div tag to store tooltip data on same page.

DEMO : Using separate div tag. Jquery Very Simple Tooltip Plugin

How to use

1) include jquery, and tooltip.jquery.js files in your web page.

2) Javascript

$(document).ready(function(){
 $('.tooltip').tooltip();
 });

Avilable Options with default values

To use multiple option you need to seprate every option from ",".

Options Default Value Type
width auto Optional
height auto Optional
folderurl NULL Optional
offsetX 15 Optional
offsetY 10 Optional
fadeIn 200 Optional
fadeOut 200 Optional
dataAttr 'data' Optional
bordercolor #000000 Optional
bgcolor #F7F6F0 Optional
fontcolor #000000 Optional
fontsize 15px Optional
filetype txt Optional
cursor help Optional
3) Tooltip
<a id="tooltip_from_div" href="javascript;" class="tooltip">Tooltip With Hidden Div Tag</a>
4) Tooltip data div
<div id="data_tooltip_from_div" style="display:none;">this is developed by hidden div.</div>
whats important in that the div tag which store the tooltip data should have id the in the following manner 'data' + 'the id on which the tooltip develop' In above example the id of tooltip is 'tooltip_from_div' then the id of div which store that tooltips data will be 'data_tooltip_from_div'.

Finish

Version 1.1 : Now no need to use static file to devlope tooltip.

DEMO : Without using static file.

Jquery Very Simple Tooltip Plugin













How to use

1) include jquery, and tooltip.jquery.js files in your web page.

2) Javascript

$(document).ready(function(){
 $('.tooltip').tooltip();
 });

Avilable Options with default values

To use multiple option you need to seprate every option from ",".

Options Default Value Type
folderurl NULL Optional
offsetX 15 Optional
offsetY 10 Optional
bordercolor #000000 Optional
bgcolor #F7F6F0 Optional
fontcolor #000000 Optional
fontsize 15px Optional
filetype txt Optional
3) HTML
<a id="This tooltip is developed by using this html tags id attribute" href="javascript;" class="tooltip">Tooltip without static file</a>

Finish

DEMO : Using static file

Jquery Very Simple Tooltip Plugin

How to use

1) include jquery, and tooltip.jquery.js files in your web page.

2) Javascript

$(document).ready(function(){
 $('.tooltip').tooltip({
 folderurl : 'contents/'
 });
 });

Avilable Options with default values

To use multiple option you need to seprate every option from ",".

Options Default Value Type
folderurl NULL Required
offsetX 15 Optional
offsetY 10 Optional
bordercolor #000000 Optional
bgcolor #F7F6F0 Optional
fontcolor #000000 Optional
fontsize 15px Optional
filetype txt Optional
3) HTML
<a id="tooltip_1" href="javascript;" class="tooltip">Testing no 1 </a>

4) Tooltip Contents

now you need to write content which will be shown mouse hover on above link, the plugin search the file which is mentioned in "id" attribute of link (currently 'tooltip_1') in the specified folder location (javascript: 'folderurl'), by default the file extention is txt, so the file name will become like this contents/tooltip_1.txt



If you like my plugin, or have any suggestion, or need some more features pls drop a comment on my blog. Thx

Leave a comment

Powered by Google Project Hosting