Foros del Web » Creando para Internet » HTML »

[SOLUCIONADO] Musica en web

Estas en el tema de Musica en web en el foro de HTML en Foros del Web. Hola, tengo una web con html y quería que la música continuara sonando al cambiar de pagina, lo he probado con un iframe pero con ...
  #1 (permalink)  
Antiguo 11/10/2015, 09:38
 
Fecha de Ingreso: mayo-2015
Ubicación: Lleida
Mensajes: 11
Antigüedad: 8 años, 11 meses
Puntos: 0
Exclamación Musica en web

Hola, tengo una web con html y quería que la música continuara sonando al cambiar de pagina, lo he probado con un iframe pero con lo de scrolling es un lió, he visto alguna paginas que tienen el archivo principal con .swf
  #2 (permalink)  
Antiguo 11/10/2015, 13:14
Avatar de AngelKrak  
Fecha de Ingreso: noviembre-2014
Mensajes: 917
Antigüedad: 9 años, 5 meses
Puntos: 91
Respuesta: Musica en web

puedes probar con AJAX amigo, busca algun tutorial que te enseñe a no cargar un div aun que se recargue toda la pagina ;)
  #3 (permalink)  
Antiguo 12/10/2015, 06:28
 
Fecha de Ingreso: mayo-2015
Ubicación: Lleida
Mensajes: 11
Antigüedad: 8 años, 11 meses
Puntos: 0
Respuesta: Musica en web

Hola, he hecho lo que me han dicho pero me sale esto les dejo a continuacion el error i el codigo que tengo:
Cita:
HTTP Error 405.0 - Method Not Allowed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.

Most likely causes:
The request sent to the Web server used an HTTP verb that is not allowed by the module configured to handle the request.
A request was sent to the server that contained an invalid HTTP verb.
The request is for static content and contains an HTTP verb other than GET or HEAD.
A request was sent to a virtual directory using the HTTP verb POST and the default document is a static file that does not support HTTP verbs other than GET or HEAD.

Things you can try:
Verify the list of verbs enabled for the module handler this request was sent to, and ensure that this verb should be allowed for the Web site.
Check the IIS log file to see which verb is not allowed for the request.
Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.

Detailed Error Information:
Module StaticFileModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x80070001
Requested URL http://2e3043af3.hostnd:80/web/inici.html
Physical Path \\WAGNER\wwwrootnom$\2e3043af3.hostnd\htdocs\www\w eb\inici.html
Logon Method Anonymous
Logon User Anonymous

More Information:
This error means that the request sent to the Web server contained an HTTP verb that is not allowed by the configured module handler for the request.
View more information >>>
Código HTML:
Ver original
  1. <script type="text/javascript">
  2. function ajaxFunction() {
  3.   var xmlHttp;
  4.  
  5.   try {
  6.    
  7.     xmlHttp=new XMLHttpRequest();
  8.     return xmlHttp;
  9.   } catch (e) {
  10.    
  11.     try {
  12.       xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  13.       return xmlHttp;
  14.     } catch (e) {
  15.      
  16.       try {
  17.         xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  18.         return xmlHttp;
  19.       } catch (e) {
  20.         alert("Tu navegador no soporta AJAX!");
  21.         return false;
  22.       }}}
  23. }
  24.  
  25.  
  26.  
  27.  
  28. function Enviar(_pagina,capa) {
  29.     var ajax;
  30.     ajax = ajaxFunction();
  31.     ajax.open("POST", _pagina, true);
  32.     ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  33.  
  34.     ajax.onreadystatechange = function() {
  35.         if (ajax.readyState==1){
  36.             document.getElementById(capa).innerHTML = " Aguarde por favor...";
  37.                  }
  38.         if (ajax.readyState == 4) {
  39.            
  40.                 document.getElementById(capa).innerHTML=ajax.responseText;
  41.              }}
  42.              
  43.     ajax.send(null);
  44. }
  45.  
  46.  
  47.  
  48. </script>  
  49.   <ul id="enlaces" style="position:absolute;top:200px;left:130px;">
  50.            
  51.             <li><a href="javascript:Enviar('inici.html','contenido')" title="Inici">INICIO</a></li>
  52.             <li><a href="javascript:Enviar('services.html','contenido')" title="Serveis">SERVICIOS</a></li>
  53.             <li><a href="javascript:Enviar('galery.html','contenido')" title="Galeria">GALERIA</a></li>
  54.             <li><a href="javascript:Enviar('contact.html','contenido')" title="Contacte">CONTACTO</a></li>
  55.             </ul>
  56.      
  57. <div id="contenido">
  58. PAGINA PRINCIPAL
  59. </div>
  60. </body>
  61. </html>

Etiquetas: musica
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 10:49.