Forum Moderators: open
<!-- This code embeds the Player object in itnvisible mode. -->
<!-- Create a button to open the content. -->
<p>
<div style="float: left; width: 340;height:551px">
<object id="Player" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="440" height="320" CLASSID = "CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param NAME="controls" VALUE="ImageWindow">
<param NAME="console" VALUE="_master">
<param NAME="autostart" VALUE="true">
<embed width="440" height="320" src="http://example.com/filename.1.asx"
controls="ImageWindow" console="_master" >
</embed></object>
<Form>
<INPUT Type = "button" ID = "btnPlay0" Value = "Play CHL" onClick =
"PlayASX()" style="width: 364px" class="style1"/></Form> </p>
<p style="width: 378px; height: 57px;"> <span class="ref2">This video feature requires
<a class="FG10" href="http://www.microsoft.com/windows/ie/downloads/default.mspx"displang=en&qstechnology" target="_blank">Internet
Explorer 4 or above</a> and
<a class="FG10" href="http://www.microsoft.com/windows/windowsmedia/download/AllDownloads.aspx?displang=en&qstechnology" target="_blank">
Window Media player </a></span> </p>
<p style="width: 378px; height: 28px;"> Title Words</p>
<SCRIPT Language = "JScript" src="http://example.com/Title/playsx1.js">
</script>
<a href="#"</a>
<img border="0" src="imagename.jpg" alt="title words" name="title_button" width="165" height="90" onclick="PlayASX()" onMouseOver="Title_button.src='Titleon.jpg';" onMouseOut="Title_button.src='imagename.jpg';"></a>
<span class="ref2"><br />
</span><p> </p>
function PlayASX()
{
if(parseInt(Player.versionInfo) >= 11)
{
// Open the full-mode Player to show HTMLView.
Player.openPlayer("http://example.com/filename3.asx");
}
else
{
// Open the .asx file in the embedded Player.
Player.uiMode = "full";
Player.height = 200;
Player.width = 200;
Player.URL = "http://example.com/filename3.asx";
}
}
</body>
</html>
[edited by: tedster at 5:44 pm (utc) on Aug. 31, 2007]
[edit reason] use generic file names [/edit]