Media Player <object> - 捕获鼠标事件</object>

时间:2009-07-28 16:17:13

标签: javascript

我正试图在javascript中捕获我的媒体播放器上的鼠标事件,但没有成功。我还启用了“SendMouseClickEvents”,但仍然没有。

<object click="das();" id="Player' + j +'" width="160" height="120" ';
                            s +='   classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" ';
                            s +='   type="application/x-oleobject"> ';
                            s +='   <param name="openState" value="wmposMediaOpen">';
                            s +='   <param name="URL" value="inserts/' + sFileName + '"/> ';
                            s +='   <param name="captioningID" value="videoCaptions"/> ';
                            s +='   <param name="AutoStart" value="1"/> ';
                            s +='   <param name="PlayCount" value="1"/> ';
                            s +='   <param name="Rate" value="1"/> ';
                            s +='   <param name="uiMode" value="none"/> ';
                            s +='   <param name="enableContextMenu" value="1"/> ';
                            s +='   <param name="stretchToFit" value="0"/> ';
                            s +='   <param name="mute" value="true"/> ';
                            s +='   <param name="SendMouseClickEvents" value="1"/> ';
                            s +='   <param name="SendMouseMoveEvents" value="1"/> ';
                            s +='</object>

1 个答案:

答案 0 :(得分:1)

我不确定这是否真的有可能......

尝试从

更改第一行
<object click="das();" ...>

为:

<object onclick="das();" ...>

据我所知,该属性被称为onclick ...

问候