JavaScript
  Home arrow JavaScript arrow Tracking Mouse Movements with the jQuery T...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Tracking Mouse Movements with the jQuery Tooltip Plug-in
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-10-26

    Table of Contents:
  • Tracking Mouse Movements with the jQuery Tooltip Plug-in
  • Review: adding default tooltips to web page links
  • Tracking mouse movements
  • Hiding URL values from display with the showURL input argument

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Tracking Mouse Movements with the jQuery Tooltip Plug-in


    (Page 1 of 4 )

    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.

    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.

    More JavaScript Articles
    More By Alejandro Gervasio


       · This second part of the series shows you how to enhance the default tooltip built in...
     

    JAVASCRIPT ARTICLES

    - Comparing Fields and Customizing Error Messa...
    - Checking Numbers and File Extensions with jQ...
    - Validating Digits and Dates with jQuery`s Va...
    - Validating Ranges, Emails, and URLs with jQu...
    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek