添加网络电视页面

2014-07-18 07:45:38 -0700
iframe调用

喜欢看直播的朋友肯定会留意到一些网站会有一个电视直播的链接,打开后即可在其站内观看直播,这样不仅可以为网站带来更多流量而且还保持了网站的在线时长。这便是使用64码高清网络电视web端实现的。下载地址中包含Web端文件,调用方法如下:<script type=“text/javascript”>// <![CDATA[
var w = '980'; //宽度
var h = '551'; //高度
var s = 'no'; //是否显示滚动条,yes显示,no不显示
document.write('<iframe width='+w+' height='+h+' src="http://live.64ma.com/tv/live.html" frameborder=0 border=0 marginwidth=0 marginheight=0 scrolling='+s+'></iframe>');
// ]]></script>

自适应iframe代码

iframe代码来制作网络电视页面:

<style type=“text/css” media=“screen”>body{background:#000;margin:0;padding:0;}</style>
</head>
<body>
<table width=“100%” height=“100%” border=“0″ align=“center” cellpadding=“0″ cellspacing=“0″>
<tbody><tr>
<td>
<iframe src=“http://live.64ma.com/tv/live.html” height=“100%” width=“100%” name=“mainFrame” scrolling=“no” frameborder=“no” marginwidth=“0″ marginheight=“0″>
</iframe>
</td>
</tr>
</tbody></table>
调用方法

<?php
/*
Template Name: 网络电视
*/
?>
<html><head>
<title>电视直播</title>
<meta http-equiv=“Content-Type” content=“text/html; charset=UTF-8″>
<style type=“text/css” media=“screen”>body{background:#000;margin:0;padding:0;}</style>
</head>
<body>
<table width=“100%” height=“100%” border=“0″ align=“center” cellpadding=“0″ cellspacing=“0″>
<tbody><tr>
<td>
<iframe src=“http://live.64ma.com/tv/live.html” height=“100%” width=“100%” name=“mainFrame” scrolling=“no” frameborder=“no” marginwidth=“0″ marginheight=“0″>
</iframe>
</td>
</tr>
</tbody></table>
</body></html>
«Newer      Older»
Comment:
Name:

Back to home

Subscribe | Register | Login | N