Centrar .swf en .html

08/10/2006 - 22:40 por Antivirus | Informe spam
Saludos al foro, tengo un problema con el siguiente codigo:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xht...">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Perpectiva</title>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/...,0,0" width="550" height="400" id="Perpectiva" align="bottom">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Imagenes/Perpectiva.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="Imagenes/Perpectiva.swf" quality="high" bgcolor="#ffffff"
width="550" height="400" name="Perpectiva" align="bottom"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>

Pero como hago por que al mirarlo en el browser me sale centrado pero pegado
al dorde superior.
Gracias

Preguntas similare

Leer las respuestas

#1 ¥-- Lombar --¥
09/10/2006 - 13:08 | Informe spam
Prueba con esto

<head>
<title>Perpectiva</title>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"
marginwidth="0" marginheight="0" bgcolor="#FFFFFF">
<table border="0" width="100%" cellspacing="0" cellpadding="0"
height="100%">
<tr>
<td align="center">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1"
codebase="http://download.macromedia.com/pub/...,0,0"
width="550" height="400" id="Perpectiva
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Imagenes/Perpectiva.swf" />
<param name="quality" value="High">
<param name="loop" value="false">
<param name="menu" value="false">
<embed src="Imagenes/Perpectiva.swf"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" name="obj1" width="550" height="400"
name="Perpectiva" quality="High" loop="false" menu="false"
allowScriptAccess="sameDomain"> </object>
</td>
</tr>
</table>
</body>

¥-- Lombar --¥
EchMotor 69
Jose Lombardia

"Antivirus" escribió en el mensaje
news:
Saludos al foro, tengo un problema con el siguiente codigo:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xht...">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Perpectiva</title>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/...,0,0"
width="550" height="400" id="Perpectiva" align="bottom">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Imagenes/Perpectiva.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="Imagenes/Perpectiva.swf" quality="high" bgcolor="#ffffff"
width="550" height="400" name="Perpectiva" align="bottom"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>

Pero como hago por que al mirarlo en el browser me sale centrado pero
pegado
al dorde superior.
Gracias

Respuesta Responder a este mensaje
#2 Jose A. Fernandez
15/10/2006 - 00:08 | Informe spam
Hola... en tu codigo deberias sacar la primer linea y funcionaba,
deberias eliminar esta linea
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xht...">
y tambien modificar esta linea
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en">
por simplemente
<html>


Te doy unas opciones

Opcion 1: Parrafo centrado
Centar el contenido de la pagina asi
<BODY>
<p align="center">
[..tu pelicula flash...]
</p>
<BODY>


Opcion 2: Tabla con una celda que ocupe toda tu pagina (esto es lo que
quieres)
Coloca en tu pagina una tabla de una celda por una columna que ocupe
100% x 100% (tanto de alto como ancho) luego en la celda que tienes (la

unica) pones la alineacion vertical: Middle y horizonatal: Center
y el flash lo colocas dentro de esta celda.
<body>
<table width="100%" height="100%">
<tr>
<td align="center" valign="middle" >
[..tu pelicula flash...]
</td>
</tr>
</table>
</body>


Opcion 3: Con contenedor DIV (idem de la tabla)


Espero que te sirva de ayuda o guia
____________________
Jose A. Fernandez



Antivirus ha escrito:

Saludos al foro, tengo un problema con el siguiente codigo:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xht...">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Perpectiva</title>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/...,0,0" width="550" height="400" id="Perpectiva" align="bottom">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Imagenes/Perpectiva.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="Imagenes/Perpectiva.swf" quality="high" bgcolor="#ffffff"
width="550" height="400" name="Perpectiva" align="bottom"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>

Pero como hago por que al mirarlo en el browser me sale centrado pero pegado
al dorde superior.
Gracias
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida