onclick, onmousedown/up and Apple ActiveX Ctrl

M

M.Shipp

I have a quicktime ActiveX control embedded in a webpage. The ctrl/plugin
source is a SMIL file that points to a video with hotspots and the hotspots
point to webpages. What I want to do is when a users clicks on the video,
not only will they head to a webpage in a new browser, I want to be able to
record the click as well. In Mozilla, I can get onmouseup to do what I
need, which is fine. However, in IE 6, it appears that the ActiveX control
consumes onclick and onmousedown/up and doesn't bubble the event up,
according to what various Javascript manuals say will happen. Other
methods such as onmouseover seem to work fine. Is there a way to insert my
handler in front of the plugins handling? I've tried moving the onmouseup
call into the <OBJECT> tag, the <EMBED> tag and even wrote out the
javascript as attribute value instead of calling a method. None of that
seems to work. Any help would be appreciated. TIA.

Posted @:

comp.lang.javascript
(e-mail address removed)


--code--

<script language="JavaScript">

function playerClick(event)
{
window.alert('clicked');
}
</script>

<div onmouseup="playerClick(event)">
<OBJECT ID="QuicktimePlayer"
CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
WIDTH="330"
HEIGHT="255"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM NAME="src" VALUE="video.smil">
<PARAM NAME="controller" VALUE="false">
<PARAM NAME="autostart" VALUE="0">
<EMBED NAME="QuicktimePlayer"
TYPE="video/quicktime"
SRC="video.smil"
WIDTH="330"
HEIGHT="255"
AUTOPLAY="false"
CONTROLLER="false"
ENABLEJAVASCRIPT="true"
MOVIENAME="MyVideo">
</EMBED>
</OBJECT>
</div>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top