5 Replies Latest reply on Feb 20, 2014 1:31 AM by Zaxist

    Trigger event on specific scroll location

    basparmak Level 1

      I want to trigger a specific event on a predefined scrollTop value.

      I tried:

       

       

      $(window).scroll(function () {
          sym.$("scrpst").html($(window).scrollTop())
      
      
      var nerde = sym.getVariable("scrpst");
      
      
      if ( nerde == 200 ){
      sym.$("floatmenu").show();
      }else if ( nerde == 400 )
      sym.$("floatmenu").hide();
      }
      
      
      })
      
      

       

      where am I doing wrong?

       

      Thanks in advance.