Add files via upload
This commit is contained in:
		
							
								
								
									
										16
									
								
								z_top/js/top.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								z_top/js/top.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
				jQuery(document).ready(function(){
 | 
			
		||||
				    jQuery("#backTop").hide();
 | 
			
		||||
				    jQuery(function () {
 | 
			
		||||
				            jQuery(window).scroll(function(){
 | 
			
		||||
				            if (jQuery(window).scrollTop()>1000){
 | 
			
		||||
				                jQuery("#backTop").fadeIn(1000);
 | 
			
		||||
				                }else{
 | 
			
		||||
				                jQuery("#backTop").fadeOut(1000);
 | 
			
		||||
				                }
 | 
			
		||||
				            });
 | 
			
		||||
				            jQuery("#backTop").click(function(){
 | 
			
		||||
				                jQuery("body,html").animate({scrollTop:0},1000);
 | 
			
		||||
				                return false;
 | 
			
		||||
				                });
 | 
			
		||||
				        });
 | 
			
		||||
				});
 | 
			
		||||
		Reference in New Issue
	
	Block a user