熊菊华国画作品:请问如何将PPLIVE的节目加入到网页中?
来源:百度文库 编辑:神马品牌网 时间:2024/04/28 22:00:10
我看过相关代码,但还是不太明白,具体操作是?请详细告知,比如关于哪个数值的涵义。谢谢!
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PPLive在线直播</title>
<script type="text/JScript.Encode" src="http://download.pplive.com/webinstall/customplayers.js"></script>
<script type="text/javascript">
<!--
//不使用相应功能时请在后来赋值为false;
var ppliveurl = false; //如果需要启动后自动播放节目,请在后面写节目链接
//指定加载Player与list的页面位置
var pplPlayer = "ppliveplayer";
var pplList = "pplivelist"; //不加载列表时请不要赋值
//值为true时为自动加载控件,值为false时手动加载,需要在加载页面位置,写入触发加载事件
//如<a href="javascript:getPPLive();">点击加载控件</a>
var loadMethod = true;
//加载创建控件函数
window.onload = function(){
//添加PLAYER功能
addMode("ShowGall",1,1); //是否显示信息栏:1为显示,2为不显示
addMode("ShowPlayCtrl",1,1); //是否显示控制栏:1为显示,2为不显示
//添加list功能
addMode("ChannelURL","http://www.pplive.com/zh-cn/xml/default.xml",2);
//载入控件,检测安装情况
ocxstatus(); //未安装控件时,检测安装情况,安装完成后自动载入控件
}
// -->
</script>
<style type="text/css">
<!--
*{
margin: 0px;
padding: 0px;
}
/*定义外框大小*/
#pplivemain{
height: 440px;
width: 740px;
margin-right: auto;
margin-left: auto;
margin-top: 50px;
}
/*定义player大小*/
#ppliveplayer{
height: 440px;
width: 500px;
float: left;
}
/*定义列表大小*/
#pplivelist{
height: 440px;
float: right;
width: 230px;
}
-->
</style>
</head>
<body>
<!--OCX放置位置 -->
<div id="pplivemain">
<div id="ppliveplayer"><!--OCX PLAYER放置位置 --></div>
<div id="pplivelist"><!--OCX 列表放置位置 --></div>
</div>
</body>
</html>