| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2323 人关注过本帖
标题:关于VOD系统采用javascrip防下载
只看楼主 加入收藏
scx008
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2007-3-22
收藏
 问题点数:0 回复次数:3 
关于VOD系统采用javascrip防下载

我们学校有个VOD系统,用JAVASCRIP弄的.自带播放器(非real,wmp)邦丰播放器.上面的电影只能看不能下.非常郁闷.我把源代码贴上来.大家帮我看看这个的真实地址是什么谢谢了

<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>节目信息</title>
<link rel="stylesheet" type="text/css" href="2006/images/style.css">

<script language ="javascript" src ="jslib/truevod.js"></script>
<script language="JavaScript">
<!--
function OnProgInfoLoad()
{
MyLoadImages("images/normal.gif","images/over.gif","images/down.gif");
//DisableIEMaximize();
}

//交换位图
function SwapImgObjSrc(ImgName,ImgSrc)
{
if (typeof(ImgName)=="string" && typeof(ImgSrc)=="string")
{
var ImgObj = document.images(ImgName);
if (ImgObj)
ImgObj.src=ImgSrc;

}
}


function PlayAlert1(vProgTitle)
{
alert("对不起!由于管理员授予您的带宽限制,不能点播节目:\r\n\""+vProgTitle+"\"");
}


function PlayAlert(vProgTitle)
{
alert("对不起!由于您是匿名登录用户,不能点播节目:\r\n\""+vProgTitle+"\"");
}

function PlayError(vProgTitle)
{
alert("对不起!您的权限级别不够高,因此不能点播节目:\r\n\""+vProgTitle+"\"");
}


//-->
</script>

</head>

<body bgcolor="#003399">
<div align="center">
<table border="0" width="566" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td height=5>
<img border="0" src="images/pci12.gif" width="566" height="5"></td>
</tr>
<tr>
<td background="images/pci13.gif" height="16" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="230" valign="top">
<div align="center">
<table border="0" width="48%" cellspacing="0" cellpadding="0">
<tr>
<td height="96"> </td>
</tr>
<tr>
<td style="filter:shadow(color=#cccccc,direction=120);width:300;padding-right:10;padding-bottom:10">
<img border="0" src="../photo/5271.jpg" width="148" height="200"></td>
</tr>
</table>
</div>
</td>
<td valign="top">
<div align="center">
<table border="0" width="85%" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td height=34 width=302 background="images/pci14.gif" valign="bottom">
<div align="center">
<table border="0" width="80%" cellspacing="0" cellpadding="0">
<tr>
<td align="center" class="t8">平原镇屠夫The Butcher of Plainfield(2007)</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td background="images/pci15.gif">
<div align="center">
<table border="0" width="267" cellspacing="0" cellpadding="0">
<tr>
<td width="267" colspan="2"> </td>
</tr>
<tr>
<td width="102" class="t7" align="right">
节目类型:</td>
<td width="165" class="t7">RM视音频</td>
</tr>
<tr>
<td width="267" colspan="2" align="right">
<img border="0" src="images/pci16.gif" width="267" height="1"></td>
</tr>
<tr>
<td width="102" class="t7" align="right">
影片类型:</td>
<td width="165" class="t7">恐怖片</td>
</tr>
<tr>
<td width="267" colspan="2" align="right">
<img border="0" src="images/pci16.gif" width="267" height="1"></td>
</tr>
<tr>
<td width="102" class="t7" align="right">
创建日期:</td>
<td width="165" class="t7">2007-03-21</td>
</tr>
<tr>
<td width="267" colspan="2" align="right">
<img border="0" src="images/pci16.gif" width="267" height="1"></td>
</tr>

<tr>
<td width="267" colspan="2" align="right">
<img border="0" src="images/pci16.gif" width="267" height="1"></td>
</tr>
<tr>
<td width="102" class="t7" align="right">
主&nbsp; 演:</td>
<td width="165" class="t7">普里西拉.巴恩斯, 迈克尔.巴里曼, Stan Bly</td>
</tr>
<tr>
<td width="267" colspan="2" align="right">
<img border="0" src="images/pci16.gif" width="267" height="1"></td>
</tr>
<tr>
<td width="102" class="t7" align="right">
导&nbsp; 演:</td>
<td width="165" class="t7">Michael Feifer</td>
</tr>
<tr>
<td width="267" colspan="2" align="right">
<img border="0" src="images/pci16.gif" width="267" height="1"></td>
</tr>
<tr>
<td width="102" class="t7" align="right">
时间长度:</td>
<td width="165" class="t7">01:30:15</td>
</tr>
<tr>
<td width="267" colspan="2" align="right">
<img border="0" src="images/pci16.gif" width="267" height="1"></td>
</tr>
<tr>
<td width="102" class="t7" align="right">
点击率:</td>
<td width="165" class="t7">79</td>
</tr>
<tr>
<td width="267" colspan="2" align="right">
<img border="0" src="images/pci16.gif" width="267" height="1"></td>
</tr>
<tr>
<td width="102" class="t7" align="right">
点播需要带宽:</td>
<td width="165" class="t7">579(Kbps)</td>
</tr>

<tr>
<td width="102" class="t7" align="right">
在线播放:</td>
<td width="165" class="t7"><a href="#P1" onMouseOut="SwapImgObjSrc('playbtn1','images/Normal.gif');return true;" onMouseOver="SwapImgObjSrc('playbtn1','images/over.gif');return true;" onClick=" javascript:TruevodPlayExID('210.31.141.49:1680','/home/media4/易佳影院.电影.欧美.恐怖片.平原镇屠夫.rmvb','平原镇屠夫The Butcher of Plainfield(2007)',5271);return false;"><img border="0" name="playbtn1" src="images/Normal.gif" alt="第一个播放地址"></a>&nbsp; </td>
</tr>
<tr>
<td width="102" class="t7" align="right">
节目下载:</td>
<td width="165" class="t7">
<img src="images/down03.gif" width="18" height="18" border="0"></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
<img border="0" src="images/pci18.gif" width="302" height="16"></td>
</tr>
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="22">
<img border="0" src="images/pci19.gif" width="45" height="24"></td>
<td width="49" height=24 background="images/pci20.gif" valign="bottom">
<a class="t8" target="_blank" href="progOpinion.jsp?ProgId=5271"></a></td>
<td width="11">
<img border="0" src="images/pci21.gif" width="22" height="24"></td>
<td valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height=3>
<img border="0" src="images/pci22.gif" width="186" height="7"></td>
</tr>
<tr>
<td height=3></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="images/pci13.gif" height="77" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td>
<div align="center">
<table border="1" width="80%" cellspacing="0" cellpadding="0" bordercolor="#DCDCDC" style="border-collapse: collapse">
<tr>
<td>
<img border="0" src="images/pci23.gif" width="520" height="19"></td>
</tr>
<tr>
<td bgcolor="#163C87" class="t2">&nbsp;&nbsp;&nbsp;&nbsp;2007美国最新超火爆恐怖大片
<br>  通过这部电影,FANS们能最终明白是什么使得这样一个温和的,讨孩子喜欢的农夫转变成美国犯罪史上最可怕的罪犯之一。
<br>
<br>  艾德·盖恩(Edward&nbsp;Theodore&nbsp;Gein,爱德华·西奥多·盖恩,小名艾德Ed)(1906年8月27日-1984年7月26日)是美国最有名的连环杀手之一。虽然他&quot;只&quot;犯了三起谋杀,但他对其受害者的所作所为却震惊了整个世界。他犯了谋杀、毁尸、盗墓、食人和恋尸癖等罪。</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height=5>
<img border="0" src="images/pci24.gif" width="566" height="6"></td>
</tr>
</table>
</div>

</body>

</html>

下面是jslib/truevod.js的代码
<!--
function LoginDirect(strUsrName,strPassword)
{
var LoginObj,lret;
LoginObj = new ActiveXObject("XMNetHelper.NetLogin");
lret = LoginObj.LoginDirect(strUsrName,strPassword);
delete LoginObj;
return lret;
}

function LoginDialog()
{
var LoginObj,lret;
LoginObj = new ActiveXObject("XMNetHelper.NetLogin");
lret = LoginObj.LoginBox();
delete LoginObj;

return lret;
}
function TruevodPlay(strServer,strUrl)
{
var TruePlayer;
TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
TruePlayer.Play(strServer,strUrl);
delete TruePlayer;
return true;
}

function TruevodPlayEx(strServer,strUrl,strProgName)
{
var TruePlayer;
TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
TruePlayer.PlayEx(strServer,strUrl,strProgName);
delete TruePlayer;
return true;
}

function TruevodPlayExID(strServer,strUrl,strProgName,nProgID)
{
var TruePlayer;
TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
TruePlayer.PlayExID(strServer,strUrl,strProgName,nProgID);
delete TruePlayer;
return true;
}

//
function DisableIEMaximize()
{
var TruePlayer;
TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
TruePlayer.IESizeEnable(0);
delete TruePlayer;
return true;
}
//
function NullPlay(strServer,strUrl,strProgName,strFileExt)
{
var TruePlayer;
TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
TruePlayer.NullPlay(strServer,strUrl,strProgName,strFileExt);
delete TruePlayer;
return true;
}
///////////////////////////////////////////////////////////////////////////////
//主动接收广播
// strServerIPAddr - 广播服务器的IP地址,字符串型
// nChannelNo - 节目在广播服务器上设置的频道号数字型
//
//
//////////////////////////////////////////////////////////////////////////////
function PlayBroadCast(strServerIPAddr, nChannelNo)
{
var TruePlayer;
TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
TruePlayer. PlayBroadCast(strServerIPAddr, nChannelNo);
delete TruePlayer;
return true;
}

///////////////////////////////////////////////////////////////////////////////
//自动搜索广播
//////////////////////////////////////////////////////////////////////////////
function AutoReceive ()
{
var TruePlayer;
TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
TruePlayer. AutoReceive();
delete TruePlayer;
return true;
}

///////////////////////////////////////////////////////////////////////////////
//播放在线节目
//////////////////////////////////////////////////////////////////////////////
function NetPlay(strProgName,strUrl)
{
var TruePlayer;
TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
TruePlayer.PlayURL(strProgName,strUrl);
delete TruePlayer;
return true;
}
//
function OpenWindow(url,h,w,caption)
{
var winobj;
var left=(screen.width-w)/2
var top=(screen.height-h)/2
stropenopt = "height=" +h+",width="+w+",status=no,toolbar=no,menubar=no,location=no resizable =no top=" +top + " left=" + left;
winobj = window.open(url,caption,stropenopt,true);
return winobj;
}

function OpenWindowEx(url,h,w,caption)
{
var winobj;
var left=(screen.width-w)/2
var top=(screen.height-h)/2
stropenopt = "height=" +h+",width="+w+",status=no,scrollbars=yes,toolbar=no,menubar=no,location=no resizable =no top=" +top + " left=" + left;
winobj = window.open(url,caption,stropenopt,true);
return winobj;
}
//显示节目信息
function ShowProgInfo(ProgId)
{
var strUrl;
strUrl="proginfo.jsp?ProgId="+ ProgId;
if (document.InfoWnd)
{
if (document.InfoWnd.closed==false)
{
document.InfoWnd.close();
}
}
document.InfoWnd=OpenWindowEx(strUrl,550,631,"节目信息框");
return true;
}

//-->
小弟不胜感激

搜索更多相关主题的帖子: VOD javascrip 系统 
2007-03-22 13:52
小鹤
Rank: 1
等 级:新手上路
帖 子:33
专家分:0
注 册:2007-3-28
收藏
得分:0 
onClick=" javascript:TruevodPlayExID('210.31.141.49:1680','/home/media4/易佳影院.电影.欧美.恐怖片.平原镇屠夫.rmvb

<a class="t8" target="_blank" href="progOpinion.jsp?ProgId=5271"></a>

这两句话值得怀疑
第一个是在线播放
第二个是下载
2007-03-29 21:44
阳光白雪
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:39
帖 子:2220
专家分:0
注 册:2005-11-18
收藏
得分:0 
/home/media4/易佳影院.电影.欧美.恐怖片.平原镇屠夫.rmvb


文件地址都有了,怎么不能下

专注于WEB前端交互平台开发:[url=http://blog./]blog.[/url](富客户端技术(RIA)交流平台)
2007-03-30 17:01
cyyu_ryh
Rank: 8Rank: 8
等 级:贵宾
威 望:45
帖 子:1899
专家分:176
注 册:2006-10-21
收藏
得分:0 
onClick=" javascript:TruevodPlayExID('210.31.141.49:1680','/home/media4/易佳影院.电影.欧美.恐怖片.平原镇屠夫.rmvb
是不是红色前面的空格出了问题,有的时候会影响

有事无事都密我. MSN: cyyu_ryh@hotmail.co.jp E-mail: cyyu_ryh@
2007-03-30 17:07
快速回复:关于VOD系统采用javascrip防下载
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018465 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved