87,997
社区成员




var $$ = function(value) {
return document.getElementById(value)
};
var killErrors = function(value) {
return true
};
window.onerror = null;
window.onerror = killErrors;
var Player = {
'ParentUrl': document.URL,
'ParentServerName': server_name.split("$$$"),
'ParentPlayerName': player_name.split("$$$"),
'Urllist': decodeURIComponent(url_list).split("$$$"),
'Id': '',
'Sid': '',
'Pid': '',
'Url': '',
'NextUrl': '',
'UrlName': '',
'UrlNextName': '',
'ServerUrl': '',
'ServerName': '',
'PlayerName': '',
'LastWebPage': '',
'NextWebPage': '',
'Root': ff_root,
'Buffer': ff_buffer,
'Pase': ff_buffer,
'Width': ff_width,
'Height': ff_height,
'Second': ff_second,
'Down_Gvod': 'http://union.feifeicms.com/install/gvod.html###' + ff_gvod + '###ppvod',
'Show': function() {
if (ff_showlist == 1) {
var list_show = 'block'
} else {
var list_show = 'none'
};
if (this.NextWebPage) {
var NextWebPage = this.NextWebPage
} else {
var NextWebPage = this.ParentUrl
};
$$('topleft').innerHTML = '<a href="' + this.LastWebPage + '">上一集</a> <a href="' + NextWebPage + '">下一集</a>';
$$('topcc').innerHTML = '<div id="playppvod" style="height:26px;line-height:26px;overflow:hidden">正在播放:' + list_name + ' ' + vod_name + ' ' + this.UrlName + '</div>';
$$('topright').innerHTML = '<a href="javascript:void(0)" onClick="Player.ShowList();">开启/关闭列表</a>';
$$('playleft').innerHTML = '<iframe src="' + this.Buffer + '" id="buffer" name="buffer" width="100%" height="' + this.Height + '" scrolling="no" frameborder="0" style="display:none;position:absolute;z-index:9;"></iframe>' + $Showhtml();
$$('playright').style.height = this.Height + 'px';
$$('playright').innerHTML = '<div id="list" style="display:' + list_show + ';height:' + this.Height + 'px">' + this.CreateList() + '</div>';
document.write('<scr' + 'ipt src="http://union.feifeicms.com/top/ff.js" type="text/javascript"></scr' + 'ipt>')
},
'BufferHide': function() {
$$("buffer").style.display = "none"
},
'CreateList': function() {
var count_play = this.ParentPlayerName.length;
var html = '';
for (var i = 0; i < count_play; i++) {
if (this.Sid == i) {
ul_display = 'display:block';
h2class = 'h2_on'
} else {
ul_display = 'display:none';
h2class = 'h2'
};
var count_urls = this.Urllist[i].split("+++");
var sid_on;
var sub_on;
var html_sub;
html_sub = '<div style="' + ul_display + '" id="sub' + i + '">';
for (var j = 0; j < count_urls.length; j++) {
var href = this.ParentUrl.replace('sid-' + this.Sid + '-pid-' + this.Pid, 'sid-' + i + '-pid-' + (j + 1)).replace(this.Id + '-' + this.Sid + '-' + this.Pid, this.Id + '-' + i + '-' + (j + 1));
if (this.Sid == i && this.Pid == (j + 1)) {
var li_on = ' class="list_on"'
} else {
li_on = ''
};
html_sub += '<span><a href="' + href + '" title="' + count_urls[j].split("++")[0] + '" ' + li_on + '>' + count_urls[j].split("++")[0] + '</a></span>'
};
html_sub += '</div>';
html += '<div id="main' + i + '" class="' + h2class + '">';
html += '<h2 onclick="Player.Tabs(' + i + ',' + (count_play - 1) + ')">>>' + eval('play_' + this.ParentPlayerName[i]) + '</h2>';
html += html_sub;
html += '</div>'
};
return html
},
'ShowList': function() {
if ($$('list').style.display == "none") {
$$('list').style.display = "block"
} else {
$$('list').style.display = "none"
}
},
'Tabs': function(no, n) {
var subdisply = $$('sub' + no).style.display;
for (var i = 0; i <= n; i++) {
$$('main' + i).className = 'h2';
$$('sub' + i).style.display = 'none'
};
$$('main' + no).className = 'h2_on';
if (subdisply == 'none') {
$$('sub' + no).style.display = 'block'
} else {
$$('sub' + no).style.display = 'none'
}
},
'Install': function() {
var downurl = eval('ff_' + this.PlayerName);
$$("install").innerHTML = '<iframe border="0" src="http://union.feifeicms.com/install/play.php?playname=' + this.PlayerName + '&u=' + downurl + '&v=20120224" marginWidth="0" frameSpacing="0" marginHeight="0" frameBorder="0" noResize scrolling="no" width="100%" height="' + this.Height + '" vspale="0"></iframe>';
$$('install').style.display = 'block'
},
'Html': function() {
document.write('<div class="FF"><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><table><tr><td width="100" id="topleft"></td><td id="topcc"></td><td width="100" id="topright"></td></tr></table></td></tr><tr><td colspan="2" id="install" style="display:none"></td></tr><tr><td id="playleft" valign="top"> </td><td id="playright" valign="top"> </td></tr></table></div>')
},
'Play': function() {
this.Html();
var URL = this.ParentUrl.match(/d+.*/g)[0].match(/d+/g);
var Count = URL.length;
this.Id = URL[(Count - 3)] * 1;
this.Sid = URL[(Count - 2)] * 1;
this.Pid = URL[(Count - 1)] * 1;
this.ServerName = this.ParentServerName[this.Sid];
this.PlayerName = this.ParentPlayerName[this.Sid];
if (this.ServerName) {
this.ServerUrl = eval('ff_' + this.ServerName)
};
var UrlArr = this.Urllist[this.Sid].split("+++");
this.Pid = Math.min(this.Pid, UrlArr.length);
this.Url = this.ServerUrl + UrlArr[this.Pid - 1].split("++")[1];
this.NextUrl = this.ServerUrl + UrlArr[Math.min(this.Pid + 1, UrlArr.length) - 1].split("++")[1];
this.UrlName = UrlArr[this.Pid - 1].split("++")[0];
this.UrlNextName = UrlArr[Math.min(this.Pid + 1, UrlArr.length) - 1].split("++")[0];
var LastPid = Math.max(Math.abs(this.Pid - 1), 1);
this.LastWebPage = this.ParentUrl.replace('sid-' + this.Sid + '-pid-' + this.Pid, 'sid-' + this.Sid + '-pid-' + LastPid).replace(this.Id + '-' + this.Sid + '-' + this.Pid, this.Id + '-' + this.Sid + '-' + LastPid);
var NextPid = Math.min(this.Pid + 1, UrlArr.length);
this.NextWebPage = this.ParentUrl.replace('sid-' + this.Sid + '-pid-' + this.Pid, 'sid-' + this.Sid + '-pid-' + NextPid).replace(this.Id + '-' + this.Sid + '-' + this.Pid, this.Id + '-' + this.Sid + '-' + NextPid);
if (this.Url == this.NextUrl) {
this.NextWebPage = ''
};
document.write('<scr' + 'ipt src="' + this.Root + 'Public/player/' + this.PlayerName + '.js" type="text/javascript" ></scr' + 'ipt>')
}
};
Player.Play();