Facetip 0.2

FaceTip is a Mootools plugin that lets you have Facebook style tooltips. Demo



Details

Author
Faruk Can Bilir
Current version
0.2
GitHub
farkob/FaceTips
Downloads
6546
Category
Widgets
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_: core/1.3: '*'

How to use

With this, you add tips to all images with the 'tipped' class.

JS:

new FaceTip($$('.tipped'));

HTML:

<img src="http://site.com/somepic.png" tip="Some Pic" class="tipped"  />

Of course, you can pass all kinds of elements to FaceTip.


Options

  • delay: the time user needs to hold his cursor over the element (in miliseconds)
  • attr: if you don't want to store the tip caption on tip (it's not valid), you can specify (i.e. 'rel')

    new FaceTip($$('a.tipped'), { delay: 1000, attr: 'rel' });


Styles

They're on facetip.css.


Notes

Thanks to trobrock and foxbunny at #mootools for debuggin with me :)


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus