Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/02/2011, 21:10
walterdevel
 
Fecha de Ingreso: diciembre-2010
Mensajes: 788
Antigüedad: 13 años, 4 meses
Puntos: 51
Respuesta: Como mostrar elemento si el mosue se mueve por encima de él yOcultarlo si

Perdón, mala interpretación del problema XD:

con jquery:


Código HTML:
Ver original
  1. <div id="midiv1" style="width: 200px;height:200px;background:#ff1188"></div>
  2. <div id="midiv2" style="display:none;width: 200px;height:200px;background:#ff0044"></div>


Código Javascript:
Ver original
  1. <script type="text/javascript">
  2. $(document).ready(function(){
  3.     unbindAndBind($("#midiv1"), $("#midiv2"));
  4. });
  5.  
  6.  
  7. function unbindAndBind(obj1, obj2) {
  8.     $(obj1).unbind("mouseover");
  9.     setTimeout(function(){
  10.          $(obj1).mouseover(function(){
  11.            $(this).hide();
  12.            $(obj2).show();
  13.            unbindAndBind(obj2, obj1);
  14.          });
  15.      }, 2000);
  16. }
  17. </script>