Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/11/2004, 21:51
Avatar de orochies
orochies
 
Fecha de Ingreso: septiembre-2003
Ubicación: Guatemala
Mensajes: 260
Antigüedad: 20 años, 7 meses
Puntos: 2
Tengo esto pero necesito ayuda

Hola pues yo me meti a ver que podia hacer para solucionar este problema pues a my tambien me han pasado pero apenas llevo esto y la verdad solo me a funcionado el script en opera 7.23 y IE6 con SP2 aunque con explorer habria que hacerle unos cambios de posicionamiento que se pueden resolver mas facilmente eh probado tambien en Mozilla firefox 1.0 pero no me hacepto el script...

Esto es lo que tengo espero que lo puedan comprender:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
<title>prueba de pocicion de capas en dos resoluciones(800x600 y 1024x768)</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">

<script type="text/javascript">

function posicion() {
if ((screen.width == 800) && (screen.height == 600)){
document.getElementById('posiciono').className='cl ase2'
}

}
</script>

<style type="text/css">
body {
margin: 0px;
padding: 0px;
}


#contenedor {
width: 700px;
height: 300px;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
border: none;
background-color: Blue;
}

div.clase1 {
position: absolute;
top: 20px;
left: 161px;
border: none;
background-color: red;
width: 200px;
height: 200px;
}

div.clase2 {
position: absolute;
top: 20px;
left: 39px;
border: none;
background-color: teal;
width: 200px;
height: 200px;
}
</style>

</head>

<body onload="posicion()">
<div id="contenedor">

<div class="clase1" id="posiciono">

</div>

</div>
</body>
</html>


Espero que alguien mas pueda aportar para solucionar el problema...

_saludos...
__________________
QMD...