Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/08/2009, 16:38
natig
 
Fecha de Ingreso: enero-2007
Mensajes: 323
Antigüedad: 17 años, 3 meses
Puntos: 9
Respuesta: posición peli flash

A ver...pongo dos ejemplos. La peli flash es lo naranja y azul, que en realidad tiene un tamaño de 1039x720. En una resolución de 1440x900 se ve así:



que es el tamaño q tiene en realidad.

En una resolución de 1280x1024 se ve así:



más pequeña, estupendo, pero arriba queda un espacio en blanco mucho mayor que en el caso anterior.

Lo que quiero es q en ambas resoluciones la peli este arriba del todo de la ventana.

La peli está dentro de un div contenedor. Os pongo la declaración de estilos:

body {
font-family: Tahoma, Verdana, sans-serif;
background-image:url(http://img219.imageshack.us/img219/9...202copia.png);
background-color: #E9E9E9;
background-attachment: fixed;
background-repeat:repeat-y;
background-position:center;
margin: 0;
padding: 0;
color:#000000;
text-align:center;
height: 100%;
}

#contenedor{
text-align: left;
width: 73%;
background-color:#FFFFFF;
margin:auto;
}

Y luego en el html:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<link rel="STYLESHEET" type="text/css" href="estilos.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style type="text/css">
</style></head>

<body>
<div id="contenedor">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">
<param name="movie" value="Photoflow/prueba.swf">
<param name="quality" value="high">

<embed src="Photoflow/prueba.swf" width="100%" height="100%" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object></div>
</body>
</html>

Muchas gracias por vuestro interés!