• 微信
您当前的位置:首页 >> 源码资源

网站侧边添加小姐姐视频源码(内置视频接口)

作者:admin时间:2025-05-26 阅读数:55 +人阅读

全网没几个有分享的,在网站侧边添加一个小姐姐随机跳舞的可折叠组件,这个组件的特点是,当用户点击时,会随机播放小姐姐的舞蹈视频。这样的设计不仅可以增加网站的趣味性,也可以吸引更多的用户停留和浏览。

直接下载代码

第二款:

在线随机小姐姐视频代码,只需要吧下面代码粘贴到任意地方都可以,文章页面也可以,视频接口来源于外部接口,失效的话可以自行替换。

懒猫遇到的随机视频源:

<div>
<section id="main">
<video id="player" src="http://v.nrzj.vip/video.php" controls="controls"width="100%" height="400px"></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:40px;
text-align:center;
width:100px;
border:none;
margin:0 6px;
border-radius:6px;
font-weight:bold;
}
</style>
<div> <section id="main"> <video id="player" src="http://v.nrzj.vip/video.php" controls="controls" width="100%" height="400px"></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:40px; text-align:center; width:100px; border:none; margin:0 6px; border-radius:6px; font-weight:bold; } </style>
<div> <section id="main"> <video id="player" src="http://v.nrzj.vip/video.php" controls="controls" width="100%" height="400px"></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:40px; text-align:center; width:100px; border:none; margin:0 6px; border-radius:6px; font-weight:bold; } </style>
连续: 开 换一个

重要提示

如有解压密码:

看下载页、看下载页、看下载页。

源码工具资源类具有可复制性:

建议具有一定思考和动手能力的用户购买。

请谨慎考虑:

小白用户和缺乏思考动手能力者不建议赞助。

虚拟商品购买须知: 虚拟类商品,一经打赏赞助,不支持退款。请谅解,谢谢合作!

项目来源于网络,防止被割韭菜 !

本站初心:花着比韭菜更少的米,用着和韭菜一样的东西,仅学习其中的思路

良不良心自己体会,某些割韭菜的网站在这里我就不黑了,切记!

狗凯之家只做解密,项目里的联系方式仅为咨询用!收费一律删除~

狗凯之家官网:bygoukai.com下载地址:www.bygoukai.com

所有教程里所涉及的软件工具狗凯之家99%都有可以下载到免费的,除了一些定制类的软件没有。

文章版权声明 1、本网站名称:狗凯之家

2、下载地址:https://www.bygoukai.com

3、本网站的文章部分内容可能来源于网络,仅供大家学习与参考,如有侵权,请联系站长进行删除处理。

4、本站一切资源不代表本站立场,并不代表本站赞同其观点和对其真实性负责。

5、本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报

6、本站资源大多存储在云盘,如发现链接失效,请联系我们我们会第一时间更新。

本站所有文章、数据、图片均来自互联网,一切版权均归源网站或源作者所有。

如果侵犯了你的权益请来信告知我们删除。邮箱:85268832@qq.com

标签:

狗凯博客

这个世界并不是掌握在那些嘲笑者的手中,而恰恰掌握在能够受的住嘲笑与批评仍不断往前走的人手中。