Ciao a tutti,
Ho un un video di youtube in un iframe, vorrei che nel momento in cui finisse mi si ricaricasse subito un altro video.
Come posso fare ?
Grazie
codice:<html> <head> <title>Prova</title> <script> function loadXMLDoc(){ var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else{// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4 && xmlhttp.status==200){ document.getElementById("myDiv").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","testo.txt",true); xmlhttp.send(); } </script> </head> <body> <center> <table cellpadding='49px' id='Home'> <tr> <td>HOME</td> <td>RICERCA STREAMING</td> <td>SCHEDE FILM</td> <td>PROGRAMMAZIONE</td> <td>ACCEDI/REGISTRATI</td> <td>CONTATTI</td> </tr> </table> <iframe width="1000" height="500" src="https://www.youtube.com/embed/gdamC7jUrjs" frameborder="0" id="frame"></iframe>ù <div id="myDiv"><h2>Let AJAX change this text</h2></div> <button type="button" onclick="loadXMLDoc()">Change Content</button> <form method="POST" action="Home.aspx" style="padding:50px" > <font color="white">Cerca </font><input type="text" name='Cerca' id='Cerca' size='100px' class="Form"> <font color="white">Genere </font><select name="Genere" id="Genere" class="Form"> <option value="Drammatico ">Drammatico</option> <option value="Horror">Horror</option> <option value="Comico">Comico</option> <option value="Fantascienza">Fantascienza</option> <option value="Thriller">Thriller</option> </select> <font color="white">Anno </font><input type="text" name='Anno' id='Anno' class="Form" size='1px' maxlength='4'> <font color="white">Attore/Regista </font><input type="text" name='Persona' id='Persona' class="Form" size='46px'> <input type="submit" value="invia" id="HomeInvia"> </form> </center> </body> </html>

Rispondi quotando