Ver Mensaje Individual
  #9 (permalink)  
Antiguo 20/01/2013, 13:58
serg_prog
 
Fecha de Ingreso: septiembre-2011
Mensajes: 60
Antigüedad: 12 años, 8 meses
Puntos: 1
Respuesta: ¿Qué está mal aquí?

Cita:
Iniciado por David Ver Mensaje
Revisa esto:
[url]http://api.jquery.com/ready/[/url]
Desgraciadamente para mi sigue sin funcionar. el código que he usado ha sido:

Código:
<script type="text/javascript">

SidebarHeight = $(".sidebar").outerHeight() 
PostHeight = $(".post").outerHeight()

$(document).ready(function() {
if (SidebarHeight > PostHeight) {
	   $(".sidebar").css({ border-right: "1px solid #CCC" });
} else {
	   $(".post").css({ border-left: "1px solid #CCC" });
}
});

</script>