Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/12/2010, 08:10
quimfv
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Sabadell
Mensajes: 4.897
Antigüedad: 16 años, 1 mes
Puntos: 574
Respuesta: perdida del foco en celda al mostrar div

Código HTML:
Ver original
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <title>Documento sin t&iacute;tulo</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  4. <script language="JavaScript" type="text/JavaScript">
  5.  
  6. function showdiv(id){
  7.    div=document.getElementById('flotante');
  8.    detalle=document.getElementById(id);
  9.    div.innerHTML=detalle.innerHTML
  10.    div.style.display='';
  11. }
  12. function hidediv() {
  13.     div = document.getElementById('flotante');
  14.     div.style.display='none';
  15. }  
  16.  
  17.   </script>
  18. <style type="text/css">
  19. <!--
  20. #flotante {
  21.     background-color: #FF0000;
  22.     position: absolute;
  23.     left: 0px;
  24.     top: 0px;
  25.     right: 0px;
  26.     bottom: 0px;
  27.    
  28. }
  29. -->
  30. </head>
  31.  
  32.   <tr>
  33.     <td id="c1" onmouseover="showdiv(this.id)" onmouseout="hidediv()">1</td>
  34.     <td id="c2"  onmouseover="showdiv(this.id)" onmouseout="hidediv()">2</td>
  35.   </tr>
  36.   <tr>
  37.     <td id="c3"  onmouseover="showdiv(this.id)" onmouseout="hidediv()">3</td>
  38.     <td id="c4"  onmouseover="showdiv(this.id)" onmouseout="hidediv()">4</td>
  39.   </tr>
  40. <div id="flotante" style="display:none" >123</div>
  41. </body>
  42. </html>

A mi no me desaparece en firefox!!!...
__________________
Quim
--------------------------------------------------
Ayudar a ayudar es una buena práctica!!! Y da buenos resultados.