JavaScript
  Home arrow JavaScript arrow Handling Mouse Events with the jQuery Java...
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

Handling Mouse Events with the jQuery JavaScript Library
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2009-08-19

    Table of Contents:
  • Handling Mouse Events with the jQuery JavaScript Library
  • Review: the “$()” function and the “ready()” method
  • Handling mouseup events with the jQuery mouseup() method
  • Handling mousemove events simply with the mousemove method

  • 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


    Handling Mouse Events with the jQuery JavaScript Library


    (Page 1 of 4 )

    Welcome to the second part of a multi-part series that introduces you to the jQuery JavaScript library. In this article, I will provide you with a quick overview of how to handle the “mouseup” and “mousemove” events with the jQuery package.

    Introduction

    Nowadays, with the huge proliferation of reliable JavaScript frameworks, such as Prototype and Ext JS, many web developers have started incorporating these software packages into their toolboxes. They permit programmers to build full-featured client-side applications very quickly and, best of all, with minor hassles.

    From an inexperienced web designer’s point of view, though, using JavaScript libraries like the ones mentioned above can be pretty intimidating, particularly when a framework requires object-oriented JavaScript programming skills to get the most out of it.

    Fortunately, not all is lost when it comes to choosing a JavaScript package that provides a comprehensive programming interface for web designers. A brand new player, called jQuery, has entered the arena of professional web development. Yes, jQuery is a light-weight package of only 14 KB (compressed). Due to its adequate balance between functionality and an easy learning curve, it's  potentially attractive to many web designers, including yourself, naturally.

    Speaking more specifically, in this series of articles, you’ll be provided with a concise guide to using the main features that comes packaged with the jQuery library. This way, you can get started using it when developing your own JavaScript applications.

    Of course, if you already read the introductory article of this series, then it’s quite probable that you’re already familiar with using the key components of the library, like the $() function and the useful “ready()” method. To be precise, in the previous tutorial, I explained how to employ these to create a few simple JavaScript applications for displaying a couple of alert and confirm boxes when a user clicks on a link within a basic web document.

    Although primitive, these practical examples demonstrated in a nutshell how easy it is to intercept mouse clicks with jQuery. Nonetheless, the library is capable of handling many other mouse events as simple as it does with clicks. Thus, in this second installment of the series, I’m going to teach you how to use the jQuery package to create JavaScript applications that respond specifically to mouse hovers and movements.

    Read on to learn how to achieve all of these useful things with jQuery.

    More JavaScript Articles
    More By Alejandro Gervasio


       · This part of the series provide you with a quick overview of how to handle the...
     

    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 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek