Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/08/2009, 22:53
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 17 años, 5 meses
Puntos: 101
Respuesta: Caja flotante al estilo de Hotmail

Podrias hacer algo haci:
Código html:
Ver original
  1. <style type="text/css">
  2. <!--
  3. #cont {
  4.     background-color: #CCC;
  5.     height: 100px;
  6.     width: 200px;
  7.     position: absolute;
  8. }
  9. -->
  10. <script type="text/javascript">
  11. <!--
  12. var posisionarAbajo=function(dom,obj){
  13.     var dom=typeof dom=="string"?document.getElementById(dom):dom,obj=typeof obj=="string"?document.getElementById(obj):obj,valueT=0,valueL=0,elm=dom; // Definimos algunas cosas
  14.     if(!dom || !obj)
  15.         return;
  16.     do{
  17.         valueL+=parseInt(elm.offsetLeft); // Sumamos
  18.         valueT+=parseInt(elm.offsetTop); // Sumamos
  19.         elm=elm.offsetParent; // Definimos
  20.     }while(elm); // Si sigue true, volvemos a ejecutar
  21.     valueT+=dom.offsetHeight; // Sumamos el alto del boton
  22.     if(obj.style.position=='') // Si no tiene position
  23.         obj.style.position='absolute'; // Le definimos absolute
  24.     obj.style.display=obj.style.display=='none'?'block':'none'; // Si esta oculta la desocultamos y viseversa
  25.     obj.style.top=valueT+"px"; // Posisionamos
  26.     obj.style.left=valueL+"px"; // Posisionamos
  27. }
  28. -->
  29.  
  30. <a href="#" onclick="posisionarAbajo(this,'cont');">Mas +</a>
  31. <div id="cont" style="display: none;">Producto 1
  32. Prducto 2</div>
Suerte
Salu2
__________________
Half Music - www.halfmusic.com