在线小视频 欢迎各位老板观看
<div><section id="main">
<video id="player" src="https://api.ba9.cn/api/get.xjj
" controls="controls" width="100%" height="700px"></video>
</section>
</div>
<div style="text-align: center;">
<section id="buttons">
<button id="switch">连续: 开</button>
<button id="next1">换一个</button>
</section>
</div>
<script>
(function (window, document) {
if (top != self) {
window.top.location.replace(self.location.href);
}
var get = function (id) {
return document.getElementById(id);
}
var bind = function (element, event, callback) {
return element.addEventListener(event, callback);
}
var auto = true;
var player = get('player');
var randomm = function () {
player.src = 'http://v.nrzj.vip/video.php?_t=' + Math.random();
player.play();
}
bind(get('next1'), 'click', randomm);
bind(player, 'error', function () {
randomm();
});
bind(get('switch'), 'click', function () {
auto = !auto;
this.innerText = '连续: ' + (auto ? '开' : '关');
});
bind(player, 'ended', function () {
if (auto) randomm();
});
})(window, document);</script>
<style>
#switch,#next1{
background: #7F9CCC;
color:#fff;
line-height:20px;
text-align:center;
width:70px;
border:none;
margin:0 6px;
border-radius:6px;
font-weight:bold;
}
</style>
支持 支持支持支持支持支持支持支持支持支持 666
:loveliness:
多多 发表于 2024-6-25 21:22
好看吗 薄荷 发表于 2024-6-24 10:23
666
好看吗 多玩 发表于 2024-6-25 21:23
好看吗
太哇塞了。 薄荷 发表于 2024-6-25 21:24
太哇塞了。
没事多看看顺便改个头像 宝贝{:2_35:} 多玩 发表于 2024-6-25 21:25
没事多看看顺便改个头像 宝贝
给我来一个你这种的。
页:
[1]
2