Comunidad de diseño web y desarrollo en internet online

Ajax + SWF en Firefox y Safari

Citar            
MensajeEscrito el 26 Ene 2009 01:53 pm
Buenas y santas...
Quería hacer una consulta... Hice una web que contiene un flash, al entrar en una sección específica del sitio este ejecuta una acción que llama a una función javaScript, esta misma lo que hace es llamar a "include.php", para introducirlo dentro de un div; include.php contiene <? include "galeria.php" ?>, este galería.php contiene otro flash. Resultado de esto abre galeria.swf arriba del swf madre.

En IE funciona hermoso... pero probandolo en Firefox y Safari no... por qué puede ser?
Ni siquiera funcionan los botones del flash??? :shock:

El code del index que contiene todo:

Código :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Danonino</title>
<link rel="stylesheet" href="estilos.css" type="text/css" media="screen" />
<!-- JavaScript -->
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript" src="javascript/swfobject.js"></script>
<script type="text/javascript">
function nuevoAjax(){
   var xmlhttp=false;
    try {
       xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
       try {
          xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
       } catch (E) {
          xmlhttp = false;
       }
     }

   if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
       xmlhttp = new XMLHttpRequest();
   }
   return xmlhttp;
}

function cargarContenido(){
   var contenedor;
   contenedor = document.getElementById('MiDiv');
   ajax=nuevoAjax();
   ajax.open("POST", "include.php",true);
   ajax.onreadystatechange=function() {
      if (ajax.readyState==4) {
         var x = document.getElementById("miDiv");
         contenedor.innerHTML = ajax.responseText
      }
   }
    ajax.send(null)
}

function vaciarContenido(){
   var contenedor;
   contenedor = document.getElementById('MiDiv');
   ajax=nuevoAjax();
   ajax.open("POST", "blank.php",true);
   ajax.onreadystatechange=function() {
      if (ajax.readyState==4) {
         var x = document.getElementById("miDiv");
         contenedor.innerHTML = ajax.responseText
      }
   }
    ajax.send(null)
}

</script>


</head>

<body>
<div id="contenedor">
    <div id="miDiv" style="position:absolute; z-index:99; width:480px; height:370px; top:210px; left:300px;">
    
    </div>
    
    <div id="flashcontent">
    Debes tener la versión 9.0 de FlashPlayer
    </div>
    <script type="text/javascript">
      var so = new SWFObject("00_base.swf", "mymovie", "1008", "655", "9", "#AE0011");
      so.addParam("quality", "high");
      so.addParam("wmode", "transparent");
      so.write("flashcontent");
   </script>
   
</div>
</body>
</html>


qué puede ser?
Abrazos, gracias

Por boratlon

Claber

139 de clabLevel



 

msie7
Citar            
MensajeEscrito el 26 Ene 2009 02:44 pm
Debes quitar el wmode transparent, Firefox (y parece que safari tambien) no renderizan bien el wmode transparent y si tienes botones casi no se pueden dar click para que funcionen.

Por drarock

Claber

705 de clabLevel

3 tutoriales

Genero:Femenino  

Lima, Peru

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.