<span class="e" onclick="play('1827','1');hi()" style=cursor:hand >第1集</span>
怎么得出URL呢?
play函数是:
/*function Auth(lmovieid,part) {
var path = "../dxvod/chkLogin.php";
var AuthList = QueryData(path, "VodUser", ""
;
var AuthId = getText(AuthList, "value", 0);
if (AuthId != 2) {
Relocation(getText(AuthList, "HostName", 0),lmovieid,part);
}
else {
return true;
}
}*/
var PlayEnable="1";
function Auth(lmovieid,part) {
var AuthId=fPopUpCalendarDlg("../dxvod/chkLoginNew.php"
;
if(AuthId != 2)
Relocation('',lmovieid,part);
else
return true;
}
document.write("<OBJECT classid=\"CLSID:26792EB0-86EB-497D-9A4D-907F21E4ABE1\" id=\"FnvPlayer\" width=\"0\" height=\"0\"></OBJECT>"
;
//解码函数
function UnCode(str)
{
var Code=str.split("#"
;
var len=Code.length;
var Str="";
for (i=0;i<len;i++)
{
if (Code[i]=='')continue;
Str+=String.fromCharCode(Code[i]);
}
return Str;
}
function play(lmovieid,part)
{
if(PlayEnable=="0"
return;
if (!Auth(lmovieid,part))
{
return "";
}
////
var XMLStr = "";
XMLStr += "<?xml version=\"1.0\" encoding=\"gb2312\" ?>";
XMLStr += "<Data Name=\"Playlist\" version=\"1.0\" Mode=\"IN\">";
XMLStr += "<MovieId>"+lmovieid+"</MovieId>";
if (part!=null)
{
XMLStr += " <Parts>";
XMLStr += " <Part>"+part+"</Part>";
XMLStr += " </Parts>";
}
XMLStr += "</Data>";
var ReturnV=fPopUpCalendarDlg("../dxvod/Playlist.php?Data_IN="+XMLStr);
if(ReturnV['value'].substr(0,3)!="[1]"
{
alert(ReturnV['value']);
return;
}
var Data_OUT='';
Data_IN=UnCode(ReturnV['Data_OUT']);
//alert(Data_IN);
/* var S=Data_IN.split("<CodeList>"
;
ServerStr="<Data><CodeList>"+S[1];
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM"
;
xmlDoc.async="false";
xmlDoc.loadXML(ServerStr);
var Ip=getTextArray(xmlDoc, "/Data/Server/Ip"
;
var Port=getTextArray(xmlDoc, "/Data/Server/Port"
;
var ServiceId=getTextArray(xmlDoc, "/Data/CodeList/ServiceId"
;
var SystemId=getTextArray(xmlDoc, "/Data/CodeList/SystemId"
;
var Parts=getTextArray(xmlDoc, "/Data/Movie/Parts/Part"
;
var MovieName=getTextArray(xmlDoc, "/Data/Movie/Name"
;
var Part=Parts[0].split("."
;
var MediaUrl="fms://"+Ip+":"+Port+"/"+MovieName+"?ServiceId="+ServiceId+"&Part="+Part[0]+"&SystemId="+SystemId;
location.href=MediaUrl;*/
document.FnvPlayer.SetWindowMode(true);
document.FnvPlayer.DoMediaUrl(Data_IN);
}
function Relocation(lhost,lmovieid,part) {
var w = 230;
var h = 120;
var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
if (part)
window.showModalDialog('renzheng.htm?lmovieid='+lmovieid+'&part='+part, '登录', 'status:false;dialogWidth:'+(w+116)+'px;dialogHeight:'+(h+116)+'px;center:yes;scroll:no;edge:raised;');
else
window.showModalDialog('renzheng.htm?lmovieid='+lmovieid, '登录', 'status:false;dialogWidth:'+(w+116)+'px;dialogHeight:'+(h+116)+'px;center:yes;scroll:no;edge:raised;');
}
function Play(tvurl)
{
document.FnvPlayer.SetWindowMode(true);
document.FnvPlayer.DoMediaUrl(tvurl);
}
function fPopUpCalendarDlg(ProgramName)
{
//showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
//showy = event.screenY - event.offsetY + 18; // + deltaY;
var showx=0;
var showy=0;
newWINwidth = 210 + 4 + 18;
retval = window.showModalDialog(ProgramName, "", "dialogWidth:0px; dialogHeight:0px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:no;scrollbars:no;Resizable=no"
;
if( retval != null ){
return retval;
}
}
//以下为是用户进入论坛发布新贴时的验证
//xiang 加入 2-17-2004
function checkUser() {
var AuthId=fPopUpCalendarDlg("../../dxvod/chkLoginNew.php"
;
if(AuthId != 2)
Relocation2();
else
var loginWin =
window.open("../bbs/leaveWord.html","mainFrame1"
;
}
function Relocation2() {
var w = 230;
var h = 120;
var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
var lmovieid=0;
window.showModelessDialog('../checkUser.html?lmovieid='+lmovieid, '登录', 'status:false;dialogWidth:'+(w+116)+'px;dialogHeight:'+(h+116)+'px;center:yes;scroll:no;edge:raised;');
}
//end
//以下是回复留言时的验证
//xiang 加入于2-25-2004
function checkUser2(Parentid) {
var AuthId=fPopUpCalendarDlg("../../dxvod/chkLoginNew.php"
;
if(AuthId != 2)
Relocation3(Parentid);
else return true;
}
function Relocation3(Parentid) {
var w = 230;
var h = 120;
var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
//此处Parentid为父id
window.showModelessDialog('../checkUser2.html?Parentid='+Parentid, '登录', 'status:false;dialogWidth:'+(w+116)+'px;dialogHeight:'+(h+116)+'px;center:yes;scroll:no;edge:raised;');
}
//end
hi函数是:
function hi()
{
//pi.style.display="none";
//pi.
PlayEnable=0;
setTimeout("PlayEnable=1",5000);
}