Home arrow JavaScript arrow Tracking Mouse Movements with the jQuery Tooltip Plug-in
JAVASCRIPT

Tracking Mouse Movements with the jQuery Tooltip Plug-in


In this second installment of a seven-part series focused on the jQuery Tooltip plug-in, I demonstrate how to customize its behavior and appearance. First I discuss the use of the “track” parameter, which makes tooltips follow mouse movements, and then I show how to work with the “showURL” argument to prevent “href” attributes from being displayed within the tooltip.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 2
October 26, 2009
TABLE OF CONTENTS:
  1. · Tracking Mouse Movements with the jQuery Tooltip Plug-in
  2. · Review: adding default tooltips to web page links
  3. · Tracking mouse movements
  4. · Hiding URL values from display with the showURL input argument

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Tracking Mouse Movements with the jQuery Tooltip Plug-in
(Page 1 of 4 )

Introduction

As you may have noticed recently, JavaScript-based tooltips are a very common feature implemented by many web sites these days. Only to cite an illustrative example, if you look at Yahoo's front page, you'll see that some of its section links have been enhanced by add a tooltip that displays brief information about a particular topic.

Fortunately, there's no need to be a big web player to add tooltips to HTML pages. There are many plug-ins available on the web that permit you to incorporate this characteristic in a truly painless fashion. Speaking more specifically, the jQuery library has a neat add-on, not surprisingly called "Tooltip," that allows you to assign descriptive pop-up notes to links within a web page. Best of all, it can be easily customized to suit the requirements of a specific web site.

Of course, if you read the first chapter of this series, then you'll have a clear idea of how to add tooltips to a group of bulleted links by using the jQuery Tooltip plug-in. In that particular tutorial I developed a pair of hands-on examples aimed at demonstrating how to work at a very basic level with this JavaScript application.

In the first example, the default tooltip was tied to the set of links, while the second case was a little bit more complex; it illustrated how to use a "delay" parameter to make the tooltip appear on screen after a specified number of milliseconds.

Obviously, the code samples built so far are quite simplistic, but as I mentioned a few moments ago, the Tooltip plug-in offers a good level of customization, which allows you to improve its appearance and behavior. So, in this second part of the series, I'm going to show you how to enhance the default tooltip that you learned in the previous article by giving it the ability to follow mouse movements when it is displayed.

This feature will be added via another input parameter called "track." Keep reading to see how to use it in a real-world example.


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks
- Dynamic jQuery Styling

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 3 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials