| | |
| | | padding: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | overflow: hidden; |
| | | } |
| | | </style> |
| | | <script> |
| | |
| | | } |
| | | |
| | | function getQueryString(name) { |
| | | let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); |
| | | let r = window.location.search.substr(1).match(reg); |
| | | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); |
| | | var r = window.location.search.substring(1).match(reg); |
| | | if (r != null) { |
| | | return decodeURI(r[2]); |
| | | }; |
| | |
| | | if (!name || !video) return; |
| | | |
| | | video.src = "mp4/" + name; |
| | | //video.play(); |
| | | video.play(); |
| | | } |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <video id="video" controls="controls" loop="loop"> |
| | | <video id="video" width="580" height="450" controls="controls" loop="loop" autoplay="autoplay"> |
| | | <source src="" type="video/mp4"> |
| | | </video> |
| | | </body> |