Ver Mensaje Individual
  #7 (permalink)  
Antiguo 07/07/2012, 21:51
yavierre
 
Fecha de Ingreso: mayo-2012
Mensajes: 7
Antigüedad: 11 años, 11 meses
Puntos: 0
De acuerdo Respuesta: Cómo calculo height de un div y se lo pongo al css?

Cita:
Iniciado por furoya Ver Mensaje
Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<title>AJJJJ.</title>
<script type="text/javascript">

var charly, eco;

function hovering0(){
charly = document.getElementById("descripcion"); 
charly.style.height = "auto"; //alert(charly.outerHTML)
setTimeout(hovering1, 1250)
}

function hovering1(){
eco = charly.offsetHeight; //alert(eco)
charly.removeAttribute("style",false); //alert(charly.outerHTML)
var delta = document.getElementById("bravo").innerHTML; //alert(delta)
delta = delta.replace(/666/g,eco); //alert(delta)
document.getElementById("bravo").innerHTML = delta;
}

onload = hovering0;

...
P.D. : Por favor, quiero el emoticón del chanchito.
Furoya..

GRACIAS.. GRACIAS.. GRACIAS.

Gracias por darte tu tiempo y .. hacer todo ese codigo
FUNCIONÓ PERFECTAMENTE

Cuál emoticón del chanchito? ahora yo te debo un favor