Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <head>
- <script type="text/javascript">
- function przelacz(){
- //var los = Math.floor(Math.random()*2);
- //var filmik = ["https://www.youtube.com/embed/xgrjudvzgaA","https://www.youtube.com/embed/cmRQmsISE34"];
- var adres = document.getElementById("adres").value;
- document.getElementById("yt").src=adres;
- }
- </script>
- </head>
- <body>
- <div class="player">
- <iframe id="yt" width="560" height="315" src="https://www.youtube.com/embed/SbQc_JLUH7k?rel=0" frameborder="0" allowfullscreen></iframe><br><br>
- <input id="adres" type="text" style="width:500px;">
- <input type="submit" value="zmien" onclick="przelacz()"/>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement