网站添加在线随机小姐姐跳舞视频教程

网站添加在线随机小姐姐跳舞视频教程,将下方代码复制粘贴到你自己的网站需要展示的地方即可,也可以文章页面。视频来自外部网站,失效后自行替换接口

图片[1]|网站添加在线随机小姐姐跳舞视频教程
  1. <div>
  2. <section id=”main”>
  3. <video id=”player” src=”http://v.nrzj.vip/video.php” controls=”controls” width=”100%” height=”400px”></video>
  4. </section>
  5. </div>
  6. <div style=”text-align: center;”>
  7. <section id=”buttons”>
  8. <button id=”switch”>连续: 开</button>
  9. <button id=”next1″>换一个</button>
  10. </section>
  11. </div>
  12. <script src=”https://hm.baidu.com/hm.js?a8569fd6981018f096d774868306a054″></script>
  13. <script>
  14. (function (window, document) {
  15. if (top != self) {
  16. window.top.location.replace(self.location.href);
  17. }
  18. var get = function (id) {
  19. return document.getElementById(id);
  20. }
  21. var bind = function (element, event, callback) {
  22. return element.addEventListener(event, callback);
  23. }
  24. var auto = true;
  25. var player = get(‘player’);
  26. var randomm = function () {
  27. player.src = ‘http://v.nrzj.vip/video.php?_t=’ + Math.random();
  28. player.play();
  29. }
  30. bind(get(‘next1’), ‘click’, randomm);
  31. bind(player, ‘error’, function () {
  32. randomm();
  33. });
  34. bind(get(‘switch’), ‘click’, function () {
  35. auto = !auto;
  36. this.innerText = ‘连续: ‘ + (auto ? ‘开’ : ‘关’);
  37. });
  38. bind(player, ‘ended’, function () {
  39. if (auto) randomm();
  40. });
  41. })(window, document);</script>
  42. <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>
  43. <style>
  44. #switch,#next1{
  45. background: #7F9CCC;
  46. color:#fff;
  47. line-height:40px;
  48. text-align:center;
  49. width:100px;
  50. border:none;
  51. margin:0 6px;
  52. border-radius:6px;
  53. font-weight:bold;
  54. }
  55. </style>
© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容