OZONE Asylum
Forums
Multimedia/Animation
Custom controls for windows media player Full Screen button
This page's ID:
25041
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
Hi Guys, I'm having problems implementing the code you've suggested above. All I want to do is make my "full screen" button cause the embeded media player go full screen when it's pressed. All it does is cause the video to stop. This is the code: [code]<head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript"> <!-- function fullScreen() { var player=document.getElementById("Player"); if (player.DisplaySize==3) { // 3 means 'playing' player.fullScreen='true'; } } //--> </script> </head> <OBJECT id='Player' width='320' height='309' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'> <param name='fileName' value='vargas_vs_mosley_HiW.wmv'> <param name='animationatStart' value='true'> <param name='transparentatStart' value='true'> <param name='autoStart' value='true'> <param name='showControls' value='true'> <param name='showStatusBar' value='true'> <param name='showDisplay' value='false'> <param name='loop' value='false'> <Embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" filename="vargas_vs_mosley_HiW.wmv" src="vargas_vs_mosley_HiW.wmv" Name=MediaPlayer ShowControls=1 ShowDisplay=1 ShowStatusBar=1 width=320 height=309> </embed> </OBJECT> <a href="javascript:fullScreen();"><img src="images/fs.gif" width="145" height="73" border="0"></a>[/code] I'm referencing the id as "Player". Any help would be greatly appreciated.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »