Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Popover or tooltip using jquey plugin

Embed CSS: 
https://cdn.jsdelivr.net/jquery.webui-popover/1.2.7/jquery.webui-popover.min.css 

Embed JS:
http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js 
https://cdn.jsdelivr.net/jquery.webui-popover/1.2.7/jquery.webui-popover.min.js

Script:

$(document).ready(function(){
$('#tooltippanel').webuiPopover({
constrains: 'horizontal',
trigger:'click',
multi: true,
placement:'right-top',
width:100,
content: 'tooltip contents placed here...'
});

});
Explanation: 

When click the corresponding selector (id or class name), script will trigger the webuiPopover in that target element. Placement Attribute specifies the Tooltip direction display. Different direction are there such as left, right, top, bottom, right-top, right-bottom, top-left, top-right.. etc.
We can put the tooltip text within "content" attribute.


This post first appeared on PSD-HTML-CSS-JS, please read the originial post: here

Share the post

Popover or tooltip using jquey plugin

×

Subscribe to Psd-html-css-js

Get updates delivered right to your inbox!

Thank you for your subscription

×