Undersøg om Windows Media Player er installeret.
Findes der en funktion der undersøger om brugeren har installeret Windows Media Player, og hvis ikke vil der komme en besked med et link hvor man kan downloade den på.Her er mine koderne til min fremviser til siden: http://www.guldklassen.dk/public_html/index.php?topic=Video
// GET THE PARSED FORM ELEMENT
$vidFile = $HTTP_POST_VARS['vidFile'];
//DEBUG
//print $vidFile;
//print 'File name is: ' .$vidFile. '<BR>';
//ALIGN THE DISPLAY OBJECT
print '<CENTER>';
//INITIATE THE DISPLAY OBJECT
print '<OBJECT ID="ActiveMovie1" CLASSID="CLSID:05589FA1-C356-11CE-BF01-00AA0055595A">';
print '<PARAM NAME="FileName" VALUE="' .$vidFile. '">';
print '<PARAM NAME="Version" VALUE="1">';
print '<PARAM NAME="EnableContextMenu" VALUE="-1">';
print '<PARAM NAME="ShowDisplay" VALUE="-1">';
print '<PARAM NAME="ShowControls" VALUE="1">';//-1=YES
print '<PARAM NAME="ShowPositionControls" VALUE="0">';//-1=YES
print '<PARAM NAME="ShowSelectionControls" VALUE="-1">';
print '<PARAM NAME="EnablePositionControls" VALUE="-1">';
print '<PARAM NAME="EnableSelectionControls" VALUE="0">';//-1=YES
print '<PARAM NAME="ShowTracker" VALUE="-1">';//-1=YES
print '<PARAM NAME="EnableTracker" VALUE="-1">';
print '<PARAM NAME="AllowHideDisplay" VALUE="0">';//-1=YES
print '<PARAM NAME="AllowHideControls" VALUE="0">';//-1=YES
print '<PARAM NAME="MovieWindowSize" VALUE="0">';
print '<PARAM NAME="FullScreenMode" VALUE="0">';
print '<PARAM NAME="MovieWindowWidth" VALUE="*">';//*=Dynamic (File)
print '<PARAM NAME="MovieWindowHeight" VALUE="*">';//*=Dynamic (File)
print '<PARAM NAME="AutoStart" VALUE="-1">';//0=NO
print '<PARAM NAME="AutoRewind" VALUE="-1">';//0=NO
print '<PARAM NAME="PlayCount" VALUE="1">';//0=Infinite
print '<PARAM NAME="SelectionStart" VALUE="0">';
print '<PARAM NAME="SelectionEnd" VALUE="sec.tenth">';
print '<PARAM NAME="Appearance" VALUE="-1">';
print '<PARAM NAME="BorderStyle" VALUE="-1">';
print '<PARAM NAME="DisplayMode" VALUE="-1">';
print '<PARAM NAME="DisplayForeColor" VALUE="16777215">';
print '<PARAM NAME="DisplayBackColor" VALUE="0">';
print '</OBJECT>';
print '</CENTER>';
