当前位置:首页>WordPress>网站上添加在线随机小姐姐跳舞视频源码

网站上添加在线随机小姐姐跳舞视频源码

分享给大家,将下方代码复制粘贴到你自己的网站需要展示的地方即可,也可以文章页面。

演示站点:https://ailketop.com/4034.html

<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 src="https://hm.baidu.com/hm.js?a8569fd6981018f096d774868306a054"></script>
<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><script>var _hmt = _hmt || [];(function() {var hm = document.createElement("script");hm.src = "https://hm.baidu.com/hm.js?a8569fd6981018f096d774868306a054";var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s);})();
</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>

部分文章/资源来源于网络,文章标题下部均已标注来源,如有侵权,请点击此处联系客服进行删除,本站将会在第一时间内进行处理! 

如果您要搬运本站文章,请在文章底部标注。侵删请致信:663829289@qq.com

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系本站进行处理。

图床支持:https://space.simao58.cn/

如果文章帮助到您,还请您点击一下广告支持本站一下!

给TA打赏
共{{data.count}}人
人已打赏
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索

Warning: error_log(/www/wwwroot/ailketop.com/wp-content/plugins/spider-analyser/#log/log-2817.txt): failed to open stream: No such file or directory in /www/wwwroot/ailketop.com/wp-content/plugins/spider-analyser/spider.class.php on line 3014