📄 tv.js
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>p2p电视</title>
<style type="text/css">
<!--
body {
background-color: #000000;
}
-->
</style>
<style type="text/css">
.live_vod_btn
{ cursor:hand;
font-size:13px;
margin-right:1px;
text-align:center;
width:46px;
height:14px;
display:inline-block;
line-height:14px;
BORDER-RIGHT: #111111 1px solid;
BORDER-BOTTOM: #111111 1px solid;
BORDER-TOP:#555555 1px solid;
BORDER-LEFT: #555555 1px solid;
PADDING-RIGHT: 2px;
PADDING-top: 5px;
PADDING-LEFT: 2px;
FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#464646, EndColorStr=#111111);
color:#DDDDDD;
text-decoration: none;
zoom:1;
}
</style>
<script>
function goLive()
{
vodlist.style.display='none';
powerlist.style.display='block';
live_btn.style.color='red';
vod_btn.style.color='#DDDDDD';
}
function goVod()
{
vodlist.style.display='block';
powerlist.style.display='none';
vod_btn.style.color='red';
live_btn.style.color='#DDDDDD';
}
</script>
<script src=tvonline.js></script>
<SCRIPT LANGUAGE="JavaScript1.2">
adTime=10;
chanceAd=1;
var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
adCount=0;
function initAd(){
if(!ns && !ie && !w3) return;
if(ie) adDiv=eval('document.all.sponsorAdDiv.style');
else if(ns) adDiv=eval('document.layers["sponsorAdDiv"]');
else if(w3) adDiv=eval('document.getElementById("sponsorAdDiv").style');
randAd=Math.ceil(Math.random()*chanceAd);
if (ie||w3)
adDiv.visibility="visible";
else
adDiv.visibility ="show";
if(randAd==1) showAd();
}
function showAd(){
if(adCount<adTime*10){adCount+=1;
if (ie){documentWidth =document.body.offsetWidth/2+document.body.scrollLeft-20;
documentHeight =document.body.offsetHeight/2+document.body.scrollTop-20;}
else if (ns){documentWidth=window.innerWidth/2+window.pageXOffset-20;
documentHeight=window.innerHeight/2+window.pageYOffset-20;}
else if (w3){documentWidth=self.innerWidth/2+window.pageXOffset-20;
documentHeight=self.innerHeight/2+window.pageYOffset-20;}
adDiv.left=documentWidth-200;adDiv.top =documentHeight-200;
setTimeout("showAd()",100);}else closeAd();
}
function closeAd(id){
if (ie||w3)
{adDiv.display="none";
document.all.powerplayer.runtimeStyle.height="326";
document.all.powerplayer.runtimeStyle.width="409";}
else
adDiv.visibility ="hide";
var inputid=id;
flag = 1;
document.images(inputid).src="tv/ifram.jpg";
}
function show(id){
if (ie||w3)
{adDiv.display="block";
document.all.powerplayer.runtimeStyle.height="214";
document.all.powerplayer.runtimeStyle.width="249";}
else
adDiv.visibility ="show";
var inputid=id;
flag = 0;
document.images(inputid).src="tv/Bifram.jpg";
}
var flag = 0;
function changel(id){
var inputid=id;
if(flag == 0)
{
document.images(inputid).src="tv/Bifram.jpg";
}else
{
document.images(inputid).src="tv/ifram.jpg";
}
}
function changela(id){
var inputid=id;
if(flag == 0)
{
document.images(inputid).src="tv/ifram.jpg";
}else
{
document.images(inputid).src="tv/Bifram.jpg";
}
}
function changelb(id){
var inputid=id;
if(flag == 0)
{
closeAd();
}else
{
show();
}
}
function full0()
{
powerplayer.SetFullScreen(4);
}
function getfull(id)
{
var inputid=id;
document.images(inputid).src="tv/full.jpg";
}
function fullyes(id)
{
var inputid=id;
document.images(inputid).src="tv/Bfull.jpg";
}
var flag2 = 0;
function playon(id)
{
var inputid=id;
if(flag2 == 0)
{
powerplayer.Play();
flag2 = 1;
document.images(inputid).src="tv/stop.jpg";
}else
{
powerplayer.stop();
flag2 = 0;
document.images(inputid).src="tv/play.jpg";
}
}
function playover(id)
{
var inputid=id;
if(flag2 == 0)
{
document.images(inputid).src="tv/play.jpg";
}else
{
document.images(inputid).src="tv/stop.jpg";
}
}
function playout(id)
{
var inputid=id;
if(flag2 == 0)
{
document.images(inputid).src="tv/stop.jpg";
}else
{
document.images(inputid).src="tv/play.jpg";
}
}
var flag3 = 0;
function mute(id)
{
var inputid=id;
if(flag3 == 0)
{
powerplayer.Pause();
powerplayer.mute = 1;
ffaadd.value="开始播放"
flag3 = 1;
document.images(inputid).src="tv/mute.jpg";
}else
{
powerplayer.Pause();
powerplayer.mute = 0;
ffaadd.value="静音暂停"
flag3 = 0;
document.images(inputid).src="tv/Bmute.jpg";
}
}
function muter(id)
{
var inputid=id;
if(flag3 == 0)
{
document.images(inputid).src="tv/Bmute.jpg";
}else
{
document.images(inputid).src="tv/mute.jpg";
}
}
function mutear(id)
{
var inputid=id;
if(flag3 == 0)
{
document.images(inputid).src="tv/mute.jpg";
}else
{
document.images(inputid).src="tv/Bmute.jpg";
}
}
function top() {
document.all.Layer1.runtimeStyle.left="0";
document.all.Layer1.runtimeStyle.top="0";
powerplayer.topmost = 1;
Layer6.style.visibility='visible';
}
function notop() {
document.all.Layer1.runtimeStyle.left="93";
document.all.Layer1.runtimeStyle.top="51";
powerplayer.topmost = 0;
Layer6.style.visibility='hidden';
}
//End-->
</script>
</head>
<body scroll=no onload="initAd();url();" topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 ondragstart="window.event.returnValue=false" oncontextmenu="window.event.returnValue=false" onselectstart="event.returnValue=false">
<div id="Layer1" style="position:absolute; left:93px; top:51px; width:409px; height:326px; z-index:1; background-color: #000000; layer-background-color: #000000; border: 1px none #000000;">
<table width="409" border="0" align="center">
<tr>
<td><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><script>showPlayer();</script>
</td>
<td><div id="sponsorAdDiv" style="visibility:hidden">
<div id=buttons style="text-align:left;height:22px">
<span class="live_vod_btn" id="live_btn" style="color:red" onclick="goLive();">直播</span><span class=live_vod_btn id=vod_btn onclick="goVod();">点播</span><span class=live_vod_btn id=vod_btnn></span>
</div>
<script>showList();</script></div>
</td>
</tr>
</table></td>
</tr>
</table>
</div>
<div id="Layer5" style="position:absolute; left:177px; top:436px; width:430px; height:344px; z-index:5">
<table width="50" border="0" align="center">
<tr>
<TD id=menuSwitch style="CURSOR: hand" onclick='changelb("hideFrame-n")'
vAlign=center><IMG id=hideFrame-n onMouseOver='changela("hideFrame-n")' onMouseOut='changel("hideFrame-n")' src="tv/Bifram.jpg"></TD>
</tr>
</table>
</div>
<div id="Layer2" style="position:absolute; left:4px; top:436px; width:430px; height:344px; z-index:2">
<table width="50" border="0" align="center">
<tr>
<td style="CURSOR: hand" onclick='playon("playar")'><img id=playar onMouseOver='playover("playar")' onMouseOut='playout("playar")' src="tv/stop.jpg"></td>
</tr>
</table>
</div>
<div id="Layer3" style="position:absolute; left:51px; top:436px; width:430px; height:344px; z-index:3">
<table width="50" border="0" align="center">
<tr>
<td style="CURSOR: hand" onclick='mute("mutear")'><img id=mutear onMouseOver='muter("mutear")' onMouseOut='mutear("mutear")' src="tv/mute.jpg"></td>
</tr>
</table>
</div>
<div id="Layer4" style="position:absolute; left:132px; top:436px; width:430px; height:344px; z-index:4">
<table width="50" border="0" align="center">
<tr>
<td><img id=fully style="CURSOR: hand" onClick="full0();" onMouseOver='getfull("fully")' onMouseOut='fullyes("fully")' src="tv/Bfull.jpg"></td>
</tr>
</table>
</div>
<div id="Layer5" style="position:absolute; left:302px; top:443px; width:430px; height:344px; z-index:5">
<table width="50" border="0" align="center">
<tr>
<td><input type="button" value="精减置顶" onClick="resizeTo(425,384);top();"></td>
</tr>
</table>
</div>
<div id="Layer6" style="position:absolute; left:0px; top:329px; width:415px; height:326px; z-index:6; background-color: #000000; layer-background-color: #000000; border: 1px none #000000; visibility: hidden;">
<table width="187" border="0" align="center">
<tr>
<td width="100"><input id="ffaadd" type="button" value="静音暂停" onClick="mute('mutear');"></td>
<td width="100" align="right"><input type="button" value="完整模式" onClick="resizeTo(612,510);notop();"></td>
</tr>
</table>
</div>
<table width="600" height="480" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left"><img src="img/tv.jpg" width="600" height="480"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -