Topic awaiting preservation: Make object tag fire onmousedown event (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Sweden |
posted 06-18-2005 16:25
I read throuh the FAQ and tried placing a div over the object and catch the onmousedown from there, it didn't work of course... |
Paranoid (IV) Inmate From: France |
posted 06-18-2005 20:24
you can simply do : code: <div id="myObject" onmouseout="alert('onmouseout event fired!')" >aaa</div> <script type="text/javascript"> objectHandle = document.getElementById( "myObject" ) objectHandle.onmousedown = function() { alert( "mousedown event fired" ) } // fire the onmouseout and onmousedown events of the objectHandle objectHandle.onmouseout() objectHandle.onmousedown() </script> |
Bipolar (III) Inmate From: Sweden |
posted 06-18-2005 23:38
Sorry for being unclear. |
Paranoid (IV) Inmate From: France |
posted 06-19-2005 00:34
sorry for reading your first post in diagonal. |
Bipolar (III) Inmate From: Sweden |
posted 06-19-2005 02:15
That didn't work. |
Paranoid (IV) Inmate From: France |
posted 06-19-2005 04:38
What about nesting the video stream in a Flash movie, and handling the mousedown event in Flash ? |
Bipolar (III) Inmate From: Sweden |
posted 06-19-2005 04:42
That might (and should be) possible, but it's not my videostream. |
Paranoid (IV) Inmate From: France |
posted 06-19-2005 04:50 |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 06-20-2005 21:04
Can you still detect X, Y and keypress events when over an embedded object? |
Paranoid (IV) Inmate From: France |
posted 06-20-2005 22:47 |