Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Mouse events

Reply
Thread Tools

Mouse events

 
 
RC
Guest
Posts: n/a
 
      06-06-2006
I know some JavaScript mouse events are:

onClick, onMouseOver, onMouseOut, onMouseDown and onMouseUp.

Are there more like:

onMousePress, onMouseDrag, onMouseMove

In Java there are:

mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased,
mouseDragged, mouseMoved and mouseWheelMoved.

Also in Java can detected which mouse button (left, middle or right)
has pressed, released or dragged.

Thank Q!
 
Reply With Quote
 
 
 
 
Eric Ryan Harrison
Guest
Posts: n/a
 
      06-06-2006
JS does not provide convenient little functions for you to get all of
that data, but the event itself has this information available to it. I
recommend reading http://www.quirksmode.org/js/events_properties.html
to get a better handle on what can be done here.

This should handle that stuff. Most people doing extensive event work
like this usually write little wrappers for event management that
provide cleaner functionality. Look into prototype.js or dojo's events
system for some examples.

-E

RC wrote:
> I know some JavaScript mouse events are:
>
> onClick, onMouseOver, onMouseOut, onMouseDown and onMouseUp.
>
> Are there more like:
>
> onMousePress, onMouseDrag, onMouseMove
>
> In Java there are:
>
> mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased,
> mouseDragged, mouseMoved and mouseWheelMoved.
>
> Also in Java can detected which mouse button (left, middle or right)
> has pressed, released or dragged.
>
> Thank Q!


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen Capture With Mouse , Mouse Position Capture Max Java 7 08-08-2009 11:51 PM
Heres a mouse theres a mouse what a mouse do? unholy Gaming 37 09-17-2006 08:59 AM
Events Events Events Please Help Chris ASP .Net Web Controls 0 08-30-2005 08:21 PM
tricky+frustrating: changing mouse handler while mouse pressed doesn't work Claus Atzenbeck Java 1 11-26-2004 09:40 AM
ASP.Net Datagrid get Cell Contents on mouse click or mouse down Davisro ASP .Net 2 04-23-2004 07:18 PM



Advertisments