[求助]
以下是一款调用vodplayer播放器的代码,播放地址是:服务器ip:端口+本地完整地址(绝色部分),这是怎样实现的?<html>
<head>
<title>弹出播放器</title>
<script language="javascript">
function CheckActiveX()
{
try{
var Player,ret;
Player = new ActiveXObject(");
ret = Player.GetCurrentVersion();
if(ret < 3.76)
{
alert("您所安装的网络媒体播放器版本过低, 请首先下载安装网络媒体播放器!");
document.location.href = "ftp://10.81.0.32/soft/vodplayer/vodplayer.exe";
delete Player;
return false;
}
delete Player;
}
catch(e)
{
alert("没有安装播放器或者版本过低, 请首先下载安装网络媒体播放器!");
document.location.href = "ftp://10.81.0.32/soft/vodplayer/vodplayer.exe";
return false;
}
return true;
}
</script>
</head>
<body bgcolor="#000000" scroll="no" marginwidth="0" leftmargin="0" topmargin="0" onLoad="CheckActiveX();" oncontextmenu="window.event.returnValue=false" ondragstart="window.event.returnValue=false" onselectstart="event.returnValue=false">
<div align="center">
<center>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse">
<script language="javascript">
function VodPlayExPathExtSub2(strServer,strPath,strID,strName, strExt, strSub,strStartTime, strBalance, strKey)
{
try{
var Player;
Player = new ActiveXObject(");
Player.PlayExPathExtSub2(strServer,strPath,strID,strName, strExt, strSub, strStartTime, strBalance, strKey);
delete Player;
}
catch(e)
{
alert("请首先下载安装网络媒体播放器!");
document.location.href = "ftp://10.81.0.32/soft/vodplayer/vodplayer.exe";
return false;
}
return true;
}
VodPlayExPathExtSub2("10.81.0.6:2880", "d:/Medias/movies/画皮/01.rmvb", "1.1", "画皮(影版) Painted Skin", "rmvb", "", "1223860691", "0", "60c6c587cccf45abfef4783388edd4c0");
window.top.opener = null;
top.window.close();
</script>
</table>
</center>
</div>
</div>
</body>
</html>
<head>
<title>弹出播放器</title>
<script language="javascript">
function CheckActiveX()
{
try{
var Player,ret;
Player = new ActiveXObject(");
ret = Player.GetCurrentVersion();
if(ret < 3.76)
{
alert("您所安装的网络媒体播放器版本过低, 请首先下载安装网络媒体播放器!");
document.location.href = "ftp://10.81.0.32/soft/vodplayer/vodplayer.exe";
delete Player;
return false;
}
delete Player;
}
catch(e)
{
alert("没有安装播放器或者版本过低, 请首先下载安装网络媒体播放器!");
document.location.href = "ftp://10.81.0.32/soft/vodplayer/vodplayer.exe";
return false;
}
return true;
}
</script>
</head>
<body bgcolor="#000000" scroll="no" marginwidth="0" leftmargin="0" topmargin="0" onLoad="CheckActiveX();" oncontextmenu="window.event.returnValue=false" ondragstart="window.event.returnValue=false" onselectstart="event.returnValue=false">
<div align="center">
<center>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse">
<script language="javascript">
function VodPlayExPathExtSub2(strServer,strPath,strID,strName, strExt, strSub,strStartTime, strBalance, strKey)
{
try{
var Player;
Player = new ActiveXObject(");
Player.PlayExPathExtSub2(strServer,strPath,strID,strName, strExt, strSub, strStartTime, strBalance, strKey);
delete Player;
}
catch(e)
{
alert("请首先下载安装网络媒体播放器!");
document.location.href = "ftp://10.81.0.32/soft/vodplayer/vodplayer.exe";
return false;
}
return true;
}
VodPlayExPathExtSub2("10.81.0.6:2880", "d:/Medias/movies/画皮/01.rmvb", "1.1", "画皮(影版) Painted Skin", "rmvb", "", "1223860691", "0", "60c6c587cccf45abfef4783388edd4c0");
window.top.opener = null;
top.window.close();
</script>
</table>
</center>
</div>
</div>
</body>
</html>
[[it] 本帖最后由 thbwn 于 2008-10-16 07:51 编辑 [/it]]