Welcome Guest, Not a member yet? Register   Sign In
[JS] How to detect current event of mouse with a html element ?
#3

[eluser]mhel_dc[/eluser]
Code:
[quote author="Berserk" date="1257414412"]hi there,
i'm trying to detect "current event" of mouse (hover, click,...etc) with an element in html using javascript. Anyone can tell me ? thanks[/quote]

I suggest adding an EVENT PROPERTY in the HTML tag

Example :

add these following events in your html controls (if the control supports it)

onmouseover = javascript()
onmousedown = javascript()
onmouseup   = javascript()
onmouseout  = javascript()
onmousemove = javascript()

javascript() <- replace this with your javascript function

I guess you can now identify which events your mouse is doing.


Messages In This Thread
[JS] How to detect current event of mouse with a html element ? - by El Forum - 11-05-2009, 03:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB