|
wert123
中级用户
积分 301
发帖 135
注册 2007-5-15
状态 离线
|
|
2007-9-28 14:26 |
|
|
wudixin96
银牌会员
积分 1928
发帖 931
注册 2007-1-6
状态 离线
|
|
2007-9-28 14:31 |
|
|
wert123
中级用户
积分 301
发帖 135
注册 2007-5-15
状态 离线
|
|
2007-9-28 16:28 |
|
|
wert123
中级用户
积分 301
发帖 135
注册 2007-5-15
状态 离线
|
|
2007-9-29 19:15 |
|
|
ccwan
金牌会员
积分 2725
发帖 1160
注册 2006-9-23 来自 河北廊坊
状态 离线
|
『第
5 楼』:
把源文件贴出来看看
|
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。 |
|
2007-9-30 08:10 |
|
|
wert123
中级用户
积分 301
发帖 135
注册 2007-5-15
状态 离线
|
『第
6 楼』:
<script language="JScript">
document.onkeydown = function()
{
if(event.keyCode != 27)
{
event.keyCode = 0;
event.returnValue = false;
}
}
function PlayerError()
{
if(window.opener == undefined)history.back(-1);
else self.close();
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>一网情深播放器</title>
</head>
<body onContextMenu="window.event.returnValue=false;" bgcolor="#000000" topMargin="0" leftMargin="0" style="border-color:#000000;" >
<table align="center" cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td align="center" valign="middle">
<object id="WebPlayer" width="1024" height="768" classid="CLSID:AA899B43-24BD-4B6B-BBD0-45557D8D11E0" VIEWASTEXT>
<param name="_Version" value="65536">
<param name="_ExtentX" value="10583">
<param name="_ExtentY" value="10583">
<param name="_StockProps" value="0">
</object>
</td>
</tr>
</table>
<script language="JScript">
x = CheckPlayer();
function PlayerInit(szServerHost)
{
WebPlayer.ServerMode = "2";
WebPlayer.UserName = "!GUEST";
WebPlayer.UserID = "2";
WebPlayer.PlayMode = "1"; //SendType
WebPlayer.PlayModeValue = "3619"; //MultiIP_Addr
WebPlayer.ChannelID = "3619";
WebPlayer.AuthenHost = GetHostName(this.location.href) + ":" + GetHostPort(this.location.href);
WebPlayer.ServerHost = "1.1.1.1"; //IpAddr
WebPlayer.Session = ""; //"";
WebPlayer.ProtocolType = "1";
WebPlayer.EmbedMode = "1";
WebPlayer.ProgName = "火影忍者 - 第 1 集";
WebPlayer.ContorlWidth = 566;
WebPlayer.ContorlHeight = 540;
WebPlayer.Start();
}
function RestorePlayerWindow(iWidth, iHeight)
{
window.resizeTo(iWidth, iHeight);
availWidth = screen.Width;
availHeight = screen.availHeight;
iTmpPix = availWidth - iWidth;
iWinLeft = iTmpPix / 2;
iTmpPix = availHeight - iHeight;
iWinHeight = iTmpPix / 2;
window.moveTo(iWinLeft, iWinHeight);
}
function GetHostName(szUrl)
{
iNameSize = szUrl.indexOf("/", 7) - 7;
szUrl = szUrl.substr(7, iNameSize);
if(szUrl.indexOf(":") > 0)iNameSize = szUrl.indexOf(":");
szHostName = szUrl.substr(0, iNameSize);
return szHostName;
}
function GetHostPort(szUrl)
{
var szHostPort, iPortPos, iPortSize;
if(szUrl.indexOf(":", 5) > 0)
{
iPortPos = szUrl.indexOf(":", 5) + 1;
if(szUrl.indexOf("/", iPortPos) > 0)iPortSize = szUrl.indexOf("/", iPortPos) - iPortPos;
szHostPort = szUrl.substr(iPortPos, iPortSize);
}
else
{
szHostPort = 80;
}
return szHostPort;
}
function CheckPlayer()
{
try
{
var oTest = new ActiveXObject("VGPlayer.WebVGPlayer.1");
}
catch(e)
{
if(window.opener == undefined)
{
window.alert("首次点播将安装播放器插件...");
window.open("../download/WebPlayer.exe");
history.back(-1);
}
else
{
window.opener.alert("首次点播将安装播放器插件...");
window.opener.open("../download/WebPlayer.exe");
self.close();
}
return false;
}
delete oTest;
PlayerInit("1.1.1.1");
//RestorePlayerWindow(334, 352);
return true;
}
function GetServerHost()
{
szServerHost = "";
if(szServerHost.length == 0)
{
alert("\n对不起,服务器集群负荷已满或您的地址不在服务范围内!");
self.close();
}
if(szServerHost == "-1")szServerHost = GetHostName(this.location.href) + ":80";
return szServerHost;
}
</script>
</body>
</html>
<!-- Modify by Eric -->
|
|
2007-10-4 12:24 |
|
|
wert123
中级用户
积分 301
发帖 135
注册 2007-5-15
状态 离线
|
|
2007-10-5 00:43 |
|
|
liuyunfeidu83
新手上路
积分 11
发帖 6
注册 2007-5-1
状态 离线
|
|
2007-10-6 02:04 |
|
|
wert123
中级用户
积分 301
发帖 135
注册 2007-5-15
状态 离线
|
|
2007-10-9 00:58 |
|