Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mouse click coordinates on a quicktime movie

Status
Not open for further replies.

frostysun

Technical User
Oct 12, 2006
2
CA
Hello,

I'm having a problem retrieving mouse-click coordinates on my quicktime movie. I'm using an <object> tag to embedd the player on my page. Since the object tag has no onclick event, I've also tried superimposing a div tag, and a transparent image on top of the object tag. But for some reason the object tag still dominates and I can't access the mouse coordinates.

I would appreciate any input on this matter.

Regards,
-Sanaz
 
Hey Dan,

I placed a transparent iframe on top, but the quicktime movie still dominates and whenever I click on the movie, the object tag takes control and the iframe is ineffective in obtaining the mouse coordinates :(
when i placed an image in the iframe and used a simple javascript alert to test if it detects a click on the image, I still did not get any alerts when i clicked on the part of the image that was lying underneath the quicktime movie, instead (according to the quicktime control) when i click on that part of the movie, it starts to play... I'm not sure why the image goes under the object in the first place..

Here's my code:
....main page....

<iframe src="iframe.html" name="myframe" width="100%" height="100%" frameborder="0" allowtransparency="true" scrolling="no" ></iframe>

<div alt="Video" style=" color: #000000; Position: absolute; left:100px; top: 100px; width:600px; height:600px; " >

<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" height="256" width="320" CODEBASE=" id="myVideo" onclick="alert('hi');">
<param name="src" value='/tracking/video/<?=$myVideo?>'>
<param name="autoplay" value="false">
<param name="controller" value="false">
<param name="scale" value="Aspect" />
<param name="bgcolor" value="black" />

</object> </div>


........iframe.html.......
<BODY >

<style type="text/css">
body {background-color: transparent}
</style>


<div id="testest2" alt="Video" style=" color: #FF0000; Position: absolute; left:20px; top: 100px; width:800px; height:800px; " zIndex='5' >

<input type='image' id="picture1" src='/tracking/me.jpg' alt="Face 1" name='myVideo' style="position: left:20px; top: 100px; cursor: crosshair; width:200px;" onclick="alert('hi');">
</div> </body>



Thanks for your help,
-Sanaz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top