OZONE Asylum
Forums
Multimedia/Animation
How to zoom in/out of media player
This page's ID:
28381
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
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? Im using this code: [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] and [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> [/code] I want to have one similar to that. I've tried that exact script but it says error, some object undefined and doens't work. [small](Edited by [url=http://www.ozoneasylum.com/user/6291]SameerAlam[/url] on 09-01-2006 16:21)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »