Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/12/2012, 05:33
Avatar de joaquinrot
joaquinrot
 
Fecha de Ingreso: diciembre-2012
Ubicación: Córdoba
Mensajes: 11
Antigüedad: 11 años, 4 meses
Puntos: 0
Respuesta: Escalar DIV automaticamente

Ya lo solucioné muchachos, lo hice con un evento toggle. Dejo el codigo

Código Javascript:
Ver original
  1. $(document).ready(function() {
  2.  
  3.     $('#btnSlide').toggle(function() {
  4.         $("#sidebar").animate({width: "toggle"});
  5.         $("#main").animate({width: "95%"});
  6.         },
  7.         function(){
  8.         $("#sidebar").animate({width: "toggle"});
  9.         $("#main").animate({width: "77%"});
  10.     });
  11. });

Última edición por joaquinrot; 15/12/2012 a las 07:54