Topic: How to zoom in/out of media player (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: |
posted 09-01-2006 16:19
Lets say you have right click disabled andd you want to zoom into media player. Is there a script for that where you can choose how much to zoom in? code: <base target="_blank"> <script language="JavaScript"> var L_LAUNCHSAP_TEXT = " Play Full Screen "; var g_bNetscape = ( -1 != navigator.appName.indexOf( "Netscape" ) ); var g_InitialVideoClipWidth = 384; var g_InitialVideoClipHeight = 288; var g_DirectURL = false; <!-- if ( navigator.appName == "Netscape" ) { navigator.plugins.refresh(); document.write("\x3C" + "applet MAYSCRIPT Code=NPDS.npDSEvtObsProxy.class") document.writeln(" width=5 height=5 name=appObs\x3E \x3C/applet\x3E") } //--> function SetWMPlayerSize(ClipWidth, ClipHeight) { WMPlayer.width = ClipWidth; WMPlayer.height = ClipHeight + 55; TopTable.width = (ClipWidth + 60); PlayerParentCell.width = ClipWidth + 60; } function ChangeVideoSize() { if(PlaySizeSelect.options[ PlaySizeSelect.selectedIndex ].value == "") return; var ZoomIndex = parseInt(PlaySizeSelect.options[ PlaySizeSelect.selectedIndex ].value); ZoomIndex /= 100; var NewWidth = g_InitialVideoClipWidth * ZoomIndex; var NewHeight = g_InitialVideoClipHeight * ZoomIndex; SetWMPlayerSize(NewWidth, NewHeight); } </script> <script LANGUAGE="VBSCRIPT"> Sub cmdStandAlone_onclick If isobject(WMPlayer) Then If WMPlayer.playstate > 0 Then WMPlayer.fullscreen = 1 End If End If End Sub </script>
code: Zoom: <SELECT onchange='ChangeVideoSize()' id=PlaySizeSelect> <OPTION value='100'>100%<OPTION value='150'>150%<OPTION value='200'>200%<OPTION value='300'>300% </SELECT><br><br> <OBJECT CLASSID="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" standby="Loading Microsoft Windows Media Player components..." ID="WMPlayer" width="384" height="344"> <PARAM NAME="URL" VALUE="http://67.159.31.222:2222/z756756757554763" ref> <param name="uiMode" value="mini"> <param name="autoStart" value = "-1"> <param name="rate" value="1"> <param name="balance" value="0"> <param name="currentPosition" value="0"> <param name="defaultFrame" value> <param name="playCount" value="1"> <param name="currentMarker" value="0"> <param name="invokeURLs" value="-1"> <param name="baseURL" value> <param name="volume" value="100"> <param name="mute" value="0"> <param name="stretchToFit" value="1"> <param name="windowlessVideo" value="0"> <param name="enabled" value="-1"> <param name="enableContextMenu" value="1"> <param name="fullScreen" value="0"> <param name="SAMIStyle" value> <param name="SAMILang" value> <param name="SAMIFilename" value> <param name="captioningID" value> <param name="enableErrorDialogs" value="0"> </OBJECT> </center> <center> </APPLET><br> <script language="Javascript"> if( !g_bNetscape ) { document.writeln( "<input type=\"button\" id=\"cmdStandAlone\" value=\"" + L_LAUNCHSAP_TEXT + "\">" ); } </script>
|
Neurotic (0) Inmate Newly admitted From: |
posted 11-29-2007 08:13
How to make it work for Mozila?? |