Playeren:
<OBJECT name="MediaPlayer" ID="MediaPlayer" width=<%=strWidth%> height=<%=strHeight%> 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="filher.wmv">
<PARAM NAME="ShowControls" VALUE="True">
<PARAM NAME="ShowStatusBar" VALUE="True">
<PARAM NAME="enableContextMenu" VALUE="True">
<PARAM NAME="stretchToFit" VALUE="True">
<param name="AllowScan" value="0">
<PARAM NAME="autoStart" VALUE="true">
</OBJECT>
Og så den kode du gav mig, som jeg også har fundet i lidt andre varianter:
<script language="javascript">
function fullScreen() {
player = document.getElementById("MediaPlayer");
if (player.playState == 3){
player.fullScreen = true;
}
}
</script>