悠悠楠杉
网站页面
分享:简洁随机有趣视频播放源码
预览地址:http://jx.qxkkk.cn/jx/spsj.php
随便建立一个1.php文件,然后上传,代码如下:
<?php
$conurl=file_get_contents("http://jx.qxkkk.cn/jx/ks2000.txt");
$arr=explode("\n",$conurl);
$i=rand(0,count($arr));
$data=$arr[$i];
?>
<html>
<head>
<title>随机有趣视频播放</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11" />
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" id="viewport" name="viewport">
<style type="text/css">
body,html{width:100%;height:100%;background:#000;padding:0;margin:0;overflow-x:hidden;overflow-y:hidden}
*{margin:0;border:0;padding:0;text-decoration:none}
#dplayer{position:inherit}
</style>
</head>
<body style="background:#000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu=window.event.returnValue=false>
<video src="<?php echo $data;?>" controls="controls" preload="preload" poster="" width="100%" height="100%" autoplay="autoplay">
</body>
</html>