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>
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>