I am a newbie.

I found this markup and would like to use "OPTION 2 coded to pop up and auto play" (opens windows media player and autoplays video). It works perfectly with the markup intact. But when i tried to get an option (markup for option2 and the <head>), it didn't work right. It opens a window where you need to choose a program to open the file.

What mark ups should I get to make option 2 work for my page?


<html>
<head>
<title>video test</title>
<meta name="ROBOTS" content="index,no">
<script language="javascript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
</script>
</head>

<body>
<p><font face="Verdana">WMP Video on the web<br>
&nbsp;<br>
<b><font size="2">Option 1: Embedded for WMP:</font></b></font></p>
<p align="left"><font face="Verdana">
<img border="0" src="http://www.webworksite.com/digital/images/videoone.jpg" width="150" height="111"><br>
<b><font size="2">Sample File</font></b></font></p>
<p><font face="Verdana" size="2"><b><a href="video/sunshine.avi">Video</a></b>
(628kb)</font></p>
<p><font size="2" face="Verdana"><b>Note:</b> Windows Media Player must be installed
on your computer to view this video. <a href="http://www.microsoft.com/windows/windowsmedia/download/default.asp" target="_blank">Click
here to download</a>. </font></p>
<p><font face="Verdana" size="2">*note: low quality video for dial up users should be
kept under 2mb on final render of your video editing software. For Broadband
users, high quality video of a 20mb .wmv on final render gives 5 to 7 minutes of actual playback time
depending on the compression quality settings of your video editing software.</font></p>
<p>&nbsp;</p>
<p><font size="2" face="Verdana"><b>Option 2: Coded to pop up and auto play</b></font></p>
<p align="left"><font face="Verdana">
<img border="0" src="http://www.webworksite.com/digital/images/videoone.jpg" width="150" height="111"><br>
<b><font size="2">Sample File</font></b></font></p>
<p><font size="2" face="Verdana"><b>
<a href="sampleonelow.htm" onclick="NewWindow(this.href,'name','320','290','no');return false">
<u><font color="#0000FF">56k</font></u></a></b><font color="#0000FF">
</font>(628kb)</font></p>
<p>&nbsp;</p>

<p><b><font face="Verdana" size="2">Option 3: Embedded in HTML with controls
(low quality)</font></b></p>
<p><object
id="MediaPlayer"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
standby="Loading Microsoft Windows Media Player Components..."
type="application/x-oleobject"
width="320"
height="290">
<param name="AudioStream" value="-1">
<param name="AutoSize" value="-1">
<param name="AutoStart" value="0">
<param name="AnimationAtStart" value="0">
<param name="AllowScan" value="-1">
<param name="AllowChangeDisplaySize" value="-1">
<param name="AutoRewind" value="0">
<param name="Balance" value="0">
<param name="BaseURL" value>
<param name="BufferingTime" value="5">
<param name="CaptioningID" value>
<param name="ClickToPlay" value="1">
<param name="CursorType" value="0">
<param name="CurrentPosition" value="-1">
<param name="CurrentMarker" value="0">
<param name="DefaultFrame" value>
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="0">
<param name="DisplaySize" value="0">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="-1">
<param name="EnablePositionControls" value="-1">
<param name="EnableFullScreenControls" value="0">
<param name="EnableTracker" value="-1">
<param name="Filename" value="sampleonelq.asx">
<param name="InvokeURLs" value="-1">
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="1">
<param name="PreviewMode" value="1">
<param name="Rate" value="1">
<param name="SAMILang" value>
<param name="SAMIStyle" value>
<param name="SAMIFileName" value>
<param name="SelectionStart" value="1">
<param name="SelectionEnd" value="1">
<param name="SendOpenStateChangeEvents" value="-1">
<param name="SendWarningEvents" value="-1">
<param name="SendErrorEvents" value="-1">
<param name="SendKeyboardEvents" value="0">
<param name="SendMouseClickEvents" value="0">
<param name="SendMouseMoveEvents" value="0">
<param name="SendPlayStateChangeEvents" value="-1">
<param name="ShowCaptioning" value="0">
<param name="ShowControls" value="1">
<param name="ShowAudioControls" value="0">
<param name="ShowDisplay" value="0">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="1">
<param name="ShowStatusBar" value="0">
<param name="ShowTracker" value="1">
<param name="TransparentAtStart" value="0">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="0">
<param name="VideoBorder3D" value="0">
<param name="Volume" value="-230">
<param name="WindowlessVideo" value="0">
<embed type="application/x-mplayer2"
src="sunshine.avi"
name="MediaPlayer"
width="320"
height="290"
pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&amp;sbp=mediaplayer&amp;ar=media&amp;sba=plugin&amp;" autosize="1" autostart="0" showcontrols="0" showdisplay="0" showstatusbar="0">
</embed>
</object>
<!--webbot bot="HTMLMarkup" endspan --></p></body>

</html>