...

View Full Version : How to get Firefox not to right click on Windows Media Player?



Breakpoint
01-03-2007, 10:20 PM
I am trying to embed WMP into a site where you are unable to right click on the WMP in IE and Firefox, the following code allows me to right click in Firefox but not IE.

Im not sure if I am able to right click because it is a client side problem with my firefox, or if all firefox browsers do this.

Here is the code. (From another site since my site isnt working properly)

<OBJECT id="MediaPlayer" width="400" height="364"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">

<PARAM NAME="URL" VALUE="mmst://rx-wes-sea161.rbn.com/farm/pull/mtx-wes-sea03:1259/farm/pull/tx-rbn-sea39:1259/wmtencoder/cspan/cspan/wmlive/cspan1v.asf">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
<PARAM NAME="AutoStart" VALUE="True">

<PARAM NAME="uiMode" value="mini">
<PARAM NAME="PlayCount" value="9999">
<PARAM NAME="stretchToFit" value="True">
<PARAM NAME="enableContextMenu" value="False">
<embed
type="video/x-ms-wmv"
src="mmst://rx-wes-sea161.rbn.com/farm/pull/mtx-wes-sea03:1259/farm/pull/tx-rbn-sea39:1259/wmtencoder/cspan/cspan/wmlive/cspan1v.asf"
width="400" height="364"
autostart="True"
sendplaystatechangeevents="True"
uimode="mini"
playcount="9999"
stretchtofit="True"
enablecontextmenu="False">
</embed>
</OBJECT>
Here is that site http://channelbreak.com/player.php?channel=3

My site wont show the src since it is coded a little different but will basically look the same for windows media player code.

I want it to act like channelchooser.com and chooseandwatch.com

Thank you.

_Aerospace_Eng_
01-04-2007, 01:21 AM
enablecontextmenu="0"

felgall
01-04-2007, 06:09 AM
Of course you still wont be able to block it in Opera because Opera doesn't allow the context menu to be blocked. Nothing you can do to stop people disabling your block in other browsers either.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum