Last active
August 2, 2016 20:50
-
-
Save nallenanderson/05e5c59a505070ae5f031cd91b42e012 to your computer and use it in GitHub Desktop.
Great tooltips with jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<link rel="stylesheet" type="text/css" href="tooltipster/dist/css/tooltipster.bundle.min.css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script> | |
<script type="text/javascript" src="tooltipster/dist/js/tooltipster.bundle.min.js"></script> | |
</head> | |
<body> | |
<div class="container"> | |
// Putting a tooltip on an image: | |
<img src="my-image.png" class="tooltip" title="This is my image's tooltip message!" /> | |
// Putting a tooltip on some text (span, div or whatever): | |
<span class="tooltip" title="This is my span's tooltip message!">Some text</span> | |
</div> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment