Det burde nu virke som jeg havde skrevt det, men måske du ikke har sat dem sammen igen - Eller jeg var for dårlig til at forklare det.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script language="javascript" type="text/javascript"><!--
var i_mediaplayer;
var v_mediaplayer;
if (navigator.plugins) {
for (var i=0; i < navigator.plugins.length; i++) {
if (navigator.plugins[i].name.toLowerCase().indexOf("windows media player") >= 0) {
i_mediaplayer = true;
break;
}
}
}
// --></script>
<script language="vbscript"><!--
on error resume next
set tmp = CreateObject("MediaPlayer.MediaPlayer.1")
if IsObject(tmp) then
i_mediaplayer = true
v_mediaplayer = tmp.versionInfo
end if
if not v_mediaplayer then
set tmp7 = CreateObject("WMPlayer.OCX.7")
if IsObject(tmp7) then
i_mediaplayer = true
v_mediaplayer = tmp7.versionInfo
end if
end if
// --></script>
</head>
<body>
<script language="javascript" type="text/javascript"><!--
if (i_mediaplayer) {
if (v_mediaplayer) {
document.writeln('<OBJECT ID="MediaPlayer" WIDTH=286 HEIGHT=251 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" align="middle">');
document.writeln("<PARAM NAME='FILENAME' VALUE='mymovie.asx'>");
document.writeln("<PARAM NAME='AutoStart' VALUE='True'><PARAM NAME='TransparentAtStart' VALUE='True'><PARAM NAME='ShowControls' VALUE='1'><PARAM NAME='ShowDisplay' VALUE='1'><PARAM NAME='ShowStatusBar' VALUE='1'><PARAM NAME='AutoSize' VALUE='1'></OBJECT>");
}
} else {
document.writeln("Hent Windows Mediaplayer først makker");
}
// --></script>
/Nikolaj