Changeset 7014 for extensions/sobre


Ignore:
Timestamp:
09/24/10 19:28:52 (9 years ago)
Author:
Gotcha
Message:

Scroll to top / RV Maps & Earth
bug:1873
Thanks to cljosse

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/sobre/template/footer.tpl

    r6302 r7014  
    33{literal} 
    44<script type="text/javascript"> 
    5 $().ready(function($){ 
    6   stt = $('#scrolltotop'); 
    7   $(window).scroll(function(){ 
    8     scrollTop = $(window).scrollTop(); 
    9     $('#scrolltotop a').click(function(){ 
    10         $('html,body').stop().scrollTop(0); 
     5jQuery().ready(function(jQuery){ 
     6  stt = jQuery('#scrolltotop'); 
     7  jQuery(window).scroll(function(){ 
     8    scrollTop = jQuery(window).scrollTop(); 
     9    jQuery('#scrolltotop a').click(function(){ 
     10        jQuery('html,body').stop().scrollTop(0); 
    1111    }); 
    1212    if(scrollTop >= 300){ 
     
    2020    } 
    2121  }); 
    22   $(window).scroll(); 
     22  jQuery(window).scroll(); 
    2323}); 
    2424</script> 
Note: See TracChangeset for help on using the changeset viewer.