如何在博客网搭建一个视频播放器代码

快手老妹视频播放代码

图片[1]_如何在博客网搭建一个视频播放器代码_泽客资源网

在网站后台添加一个自定义html代码复制下面代码发送文章就可以使用哦!

演示效果

    <script type="text/javascript">
        if(/Android|webOS|Windows Phone|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
        window.location.href = "//tvv.tw/xjj/kuaishou/";
        }else{
        //    window.location.href = "pc.html";
        }
    </script>
</head>
<body>
    <section id="main" style="height: calc(100vh - 60px);">
        <div align="right" style="width: 100%;height: 600px;margin-right: 100px;">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 侧边栏 -->
<ins class="adsbygoogle"
     style="display:inline-block;width:160px;height:600px"
     data-ad-client="ca-pub-8549247415463520"
     data-ad-slot="2354445842"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
        </div>
        <video id="player" src="https://tvv.tw/xjj/kuaishou/video.php" controls webkit-playsinline playsinline autoplay></video>
        <div align="left" style="width: 100%;height: 600px;margin-left: 100px;">
        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 侧边栏 -->
<ins class="adsbygoogle"
     style="display:inline-block;width:160px;height:600px"
     data-ad-client="ca-pub-8549247415463520"
     data-ad-slot="2354445842"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
        </div>
    </section>
    <p style="color:red">为了网站良性发展,希望各位看官不要屏蔽广告,谢谢!</p>
    <section id="buttons">
        <button id="switch">连续: 开</button>
        <button id="next">换一个</button>
        <a href="/%e6%bc%82%e4%ba%ae%e7%9a%84%e5%b0%8f%e5%a7%90%e5%a7%90%e8%a7%86%e9%a2%91"><button id="next">漂亮的小姐姐视频</button></a>
        <a href="/"><button id="next">我也要搭建一个</button>
    </section>
    <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 = 'video.php?_t=' + Math.random();
            player.play();
        }
        bind(get('next'), '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 type="text/css">
.video-container { display: block; position: relative; width: 100%; height: 0; overflow: hidden; box-sizing: border-box } .video-container iframe, .video-container video { position: absolute; top: 0; left: 0; border: none; width: 100%; height: 100% } .video-ratio-16by9 { padding-bottom: 56.25% /* 9/16 */ } .video-ratio-4by3 { padding-bottom: 75% /* 3/4 */ }
</style>
<div class="video-container video-ratio-16by9">
<iframe src="https://tvv.tw/xjj/fuli/video-dm.php" allowfullscreen="" mozallowfullscreen="" msallowfullscreen="" oallowfullscreen="" webkitallowfullscreen="" frameborder="0"></iframe>
</div>

© 版权声明
THE END
点赞0赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容