源文件在这里:
<html>
<head>
<SCRIPT language=javascript>
<!--
var g_Browser = navigator.appName; function gotoplay(fn)
{
if (g_Browser == "Netscape")
document.WMPlay.FileName(fn);
else
document.WMPlay.FileName = fn;
}
function controlType (setting)
{
if (g_Browser == "Netscape")
document.WMPlay.SetShowControls(setting);
else
document.WMPlay.ShowControls = setting;
}
function displaySize (setting)
{
if (g_Browser == "Netscape")
document.WMPlay.SetDisplaySize(setting);
else
document.WMPlay.DisplaySize = setting;
}
function PlayClick ()
{
document.WMPlay.Play();
}
function StopClick ()
{
document.WMPlay.Stop();
if (g_Browser == "Netscape")
document.WMPlay.SetCurrentPosition(0);
else
document.WMPlay.CurrentPosition = 0;
}
function PauseClick ()
{
document.WMPlay.Pause();
}
function PlayPauseClick ()
{
var state;
if (g_Browser == "Netscape")
state = document.WMPlay.GetPlayState();
else
state = document.WMPlay.PlayState;
if (state == 0)
document.WMPlay.Play();
else if (state == 1)
document.WMPlay.Play();
else if (state == 2)
document.WMPlay.Pause(); }
//-->
</SCRIPT>
</head><body>
<table width="135" height="105" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><input type=button value="test" onclick=gotoplay("J:\A\精灵鼠小弟预告片.asx")></td>
</tr>
</table><table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" > <OBJECT id=WMPlay
codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/ nsmp2inf.cab#Version=6,4,5,715"
type=application/x-oleobject
standby="Loading Microsoft? Windows Media? Player components..."
classid=CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95>
<PARAM NAME="FileName" VALUE="J:\A\clock.avi">
<PARAM NAME="src" VALUE="">
<PARAM NAME="ShowControls" VALUE="true">
<PARAM NAME="AutoRewind" VALUE="True">
<PARAM NAME="ShowStatusBar" VALUE="1">
<PARAM NAME="ShowDisplay" VALUE="1">
<PARAM NAME="AutoStart" VALUE="true">
</OBJECT></td>
</tr>
</table></body>
</html>
<html>
<head>
<SCRIPT language=javascript>
<!--
var g_Browser = navigator.appName; function gotoplay(fn)
{
if (g_Browser == "Netscape")
document.WMPlay.FileName(fn);
else
document.WMPlay.FileName = fn;
}
function controlType (setting)
{
if (g_Browser == "Netscape")
document.WMPlay.SetShowControls(setting);
else
document.WMPlay.ShowControls = setting;
}
function displaySize (setting)
{
if (g_Browser == "Netscape")
document.WMPlay.SetDisplaySize(setting);
else
document.WMPlay.DisplaySize = setting;
}
function PlayClick ()
{
document.WMPlay.Play();
}
function StopClick ()
{
document.WMPlay.Stop();
if (g_Browser == "Netscape")
document.WMPlay.SetCurrentPosition(0);
else
document.WMPlay.CurrentPosition = 0;
}
function PauseClick ()
{
document.WMPlay.Pause();
}
function PlayPauseClick ()
{
var state;
if (g_Browser == "Netscape")
state = document.WMPlay.GetPlayState();
else
state = document.WMPlay.PlayState;
if (state == 0)
document.WMPlay.Play();
else if (state == 1)
document.WMPlay.Play();
else if (state == 2)
document.WMPlay.Pause(); }
//-->
</SCRIPT>
</head><body>
<table width="135" height="105" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><input type=button value="test" onclick=gotoplay("J:\A\精灵鼠小弟预告片.asx")></td>
</tr>
</table><table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" > <OBJECT id=WMPlay
codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/ nsmp2inf.cab#Version=6,4,5,715"
type=application/x-oleobject
standby="Loading Microsoft? Windows Media? Player components..."
classid=CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95>
<PARAM NAME="FileName" VALUE="J:\A\clock.avi">
<PARAM NAME="src" VALUE="">
<PARAM NAME="ShowControls" VALUE="true">
<PARAM NAME="AutoRewind" VALUE="True">
<PARAM NAME="ShowStatusBar" VALUE="1">
<PARAM NAME="ShowDisplay" VALUE="1">
<PARAM NAME="AutoStart" VALUE="true">
</OBJECT></td>
</tr>
</table></body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货