Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to get Firefox not to right click on Windows Media Player?

    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)
    Code:
    <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.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Code:
    enablecontextmenu="0"
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,641
    Thanks
    0
    Thanked 649 Times in 639 Posts
    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.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •