Ver Mensaje Individual
  #6 (permalink)  
Antiguo 19/02/2014, 14:31
rakshaka
 
Fecha de Ingreso: mayo-2009
Mensajes: 166
Antigüedad: 15 años
Puntos: 2
Respuesta: ScrollBottom que desaparece.

Tengo este que igual no me funciona:

Código Javascript:
Ver original
  1. $('#scroll-to-top').hide();
  2.     //Check to see if the window is top if not then display button
  3.     $(window).scroll(function () {
  4.         if ($(this).scrollTop() > 200) {
  5.            //$('#scroll-to-top').fadeIn();
  6.            $('#scroll-to-bottom').fadeOut();
  7.         } else {
  8.             //$('#scroll-to-top').fadeOut();
  9.             $('#scroll-to-bottom').fadeIn();
  10.         }
  11.     });
  12.     //Click event to scroll to top
  13.     $('#scroll-to-top').click(function () {
  14.         $('html, body').animate({ scrollTop: 0 }, 800);
  15.        return false;
  16.     });