Comunidad de diseño web y desarrollo en internet online

SWFObject no me funciona

Citar            
MensajeEscrito el 27 Jul 2010 04:06 pm
Estimados señores señores, tengo un gran problema. Recientemente me encontre con esto de usar swfobject para ambeber swf en html, he sigo todos los pasos, creo, correctamente, pero no me resulta, anteriormente usaba el tipico object para insertar los swf, por alguna razón el codigo no me funciona. No se si será correcto que inserte esta duda acá pero la verdad he buscado por toda la web y claro el código es el mismo. No se realmente que estoy haciendo mal, acá, en cristal lab he aprendido mucho. Gracias por toda la ayuda. Adjunto el código:

PD: el contenido no se ve en ningún navegador.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>prueba</title>
<script type="text/javascript" src="js/swfobject.js"></script>
<style type="text/css">
<!--
body {
margin: 0px;
padding: 0px;
background-color: #ffffff;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
overflow-y:hidden;
overflow-x:hidden;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
--></style>
</script>
</head>
<div id="contenedor">texto</div>
<script type="text/javascript">
var so = new SWFObject("Sitio2.swf", "sitio", "100%", "100%", "9");
so.write("contenedor");
</script>
</body>
</html>

Por mauroweb

1 de clabLevel



 

chrome
Citar            
MensajeEscrito el 27 Jul 2010 11:58 pm
no funciona porque esta mal el codigo html , tienes un tag script de mas y te falta el tag body :?

Código HTML :

<html> 
   <head> 
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
      <title>prueba</title> 
      <script type="text/javascript" src="js/swfobject.js"></script>
      <script type="text/javascript"> 
         var so = new SWFObject("Sitio2.swf", "sitio", "100%", "100%", "9"); 
         so.write("contenedor"); 
      </script>
      <style type="text/css"> 
         <!--
         body {
         margin: 0px;
         padding: 0px;
         background-color: #ffffff;   
         }
         html, body {
         height: 100%;
         margin: 0;
         padding: 0;
         overflow-y:hidden;
         overflow-x:hidden;
         margin-left: 0px;
         margin-top: 0px;
         margin-right: 0px;
         margin-bottom: 0px;
         }
         -->
      </style>

   </head> 
   <body>
      <div id="contenedor">texto</div> 
   </body> 
</html>


PD. ese swfobject ya es viejo , hay una nueva version disponible

Jonathan

Por maneuver

243 de clabLevel



Genero:Masculino  

Mexico City

chrome

 

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