Twitter Bootstrap Tooltip
Submitted by jkev on Monday, May 13, 2013 - 09:46.
Language
Learn how to create twitter-like tooltip using Bootstrap. A tooltip that doesn't rely on images and using CSS3 for animation.
This script is very helpful if you want to display more info about the anchor link or the like.
If you have question about this code, email me at [email protected] or visit twitter bootstrap site. Thank you.
Sample code:
- <?php include('header.php'); ?>
- <body>
- <div class="row-fluid">
- <div class="span12">
- <div class="container"> <br>
- <br>
- <script type="text/javascript">
- $(document).ready(function(){
- $('#first').tooltip('show')
- $('#first').tooltip('hide')
- });
- </script>
- <script type="text/javascript">
- $(document).ready(function(){
- $('#second').tooltip('show')
- $('#second').tooltip('hide')
- });
- </script>
- <script type="text/javascript">
- $(document).ready(function(){
- $('#third').tooltip('show')
- $('#third').tooltip('hide')
- });
- </script>
- <script type="text/javascript">
- $(document).ready(function(){
- $('#fourth').tooltip('show')
- $('#fourth').tooltip('hide')
- });
- </script>
- Tooltip direction is a the left <a href="#" data-placement="top" id="first" data-toggle="tooltip" title="first tooltip">Top</a> <br>
- <br>
- Tooltip direction is a the left <a href="#" data-placement="left" id="second" data-toggle="tooltip" title="second tooltip">Left</a> <br>
- <br>
- Tooltip direction is a the right <a href="#" data-placement="left" id="third" data-toggle="tooltip" title="Third tooltip">right</a> <br>
- <br>
- Tooltip direction is a the right <a href="#" data-placement="bottom" id="fourth" data-toggle="tooltip" title="fourth tooltip">bottom</a> </div>
- </body>
- </html>
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
Add new comment
- 24 views