PageSourceSearch

https://www.kolb-hk.com/js/product_mover.js

js kolb-hk.com collected 2026-10-09 04:25:15 UTC 3,354 bytes, 103 lines download raw bytes

1// JavaScript Document
2
3
4
5	$(".banner_box_bg").css("position","fixed").css("z-index","1");
6	$("#equipment_box").css("position","relative").css("z-index","2");;
7	$("#Coffee_box").css("position","relative").css("z-index","3");;
8	$("#Baking_box").css("position","relative").css("z-index","4");;
9	$("#Service_box").css("position","relative").css("z-index","5");;
10	$("#Foot_box").css("position","relative").css("z-index","6");
11
12
13	var Nav_Height=$(".nav_box").height();
14	var Banner_Height=$(".banner_box_bg").height();
15	var equ_Height=$("#equipment_box").height();
16	var coffee_Height=$("#Coffee_box").height();
17	var baking_Height=$("#Baking_box").height();
18	var Service_Height=$("#Service_box").height();
19	var width=$("body").width();
20	
21	
22	$("#equipment_box").css("margin-top",Banner_Height+80);
23	$("#Coffee_box").css("margin-top",0);
24
25	$(window).scroll(function(){
26		Banner_Height=$(".banner_box_bg").height();
27		$("#equipment_box").css("margin-top",Banner_Height+Nav_Height);
28
29
30		//控制浮动子级nav的位置
31		Nav_Height = $(".nav_box").height();
32		$(".Team_anniu").css("top", Nav_Height);
33		this_scrollTop = $(this).scrollTop();
34		var NNDD = menuBox(this_scrollTop);
35	});
36	
37	
38
39	function menuBox(this_scrollTop){
40		if( width > 1024){ //导航WEB变化
41			
42				var this_scrollTop = $(this).scrollTop();
43				var Zong_Height=Nav_Height+Banner_Height+80;
44				var Zong_Height_1=Nav_Height+Banner_Height+equ_Height;
45				var Zong_Height_2=Nav_Height+Banner_Height+equ_Height+coffee_Height;
46				var Zong_Height_3=Nav_Height+Banner_Height+equ_Height+coffee_Height+baking_Height;
47				
48				if(this_scrollTop < Zong_Height ){
49					$(".nav_box").removeClass("Nav");
50					$("#equipment_box").css("position","relative").css("margin-top",Banner_Height+Nav_Height);
51					$("#Coffee_box").css("margin-top",0);
52					
53				}
54				if(this_scrollTop >= Zong_Height-Nav_Height*1.5){
55					$(".nav_box").addClass("Nav");
56					$("#equipment_box").css("position","fixed").css("margin-top",Nav_Height/2);
57					$("#Coffee_box").css("position","relative").css("margin-top",equ_Height+Banner_Height);
58					$("#Baking_box").css("margin-top",0);
59					
60					
61				}
62				if( this_scrollTop >= Zong_Height_1-Nav_Height*1.5 ){
63					
64					$("#Coffee_box").css("position","fixed").css("margin-top",Nav_Height/2);
65					$("#Baking_box").css("position","relative").css("margin-top",equ_Height+Banner_Height+coffee_Height);
66					$("#Service_box").css("margin-top",0);
67					
68					
69					
70				}
71				if( this_scrollTop >= Zong_Height_2-Nav_Height*1.5  ){
72					
73					$("#Baking_box").css("position","fixed").css("margin-top",Nav_Height/2);
74					$("#Service_box").css("position","relative").css("margin-top",equ_Height+Banner_Height+coffee_Height+baking_Height);
75					$("#Foot_box").css("position","relative").css("margin-top",0);
76					
77					
78				}
79				if( this_scrollTop >= Zong_Height_3-Nav_Height*1.5 ){
80					$("#Service_box").css("position","fixed").css("margin-top",Nav_Height/2);
81					$("#Foot_box").css("position","relative").css("z-index","6").css("margin-top",equ_Height+Banner_Height+coffee_Height+baking_Height+Service_Height);
82				}
83			
84			
85				
86		
87		}else{
88			$(".banner_box_bg").css("position","relative");
89			$("#equipment_box").css("margin-top",0);
90		}
91	
92	};
93
94	$(window).scroll(
95		function(){
96			this_scrollTop = $(this).scrollTop();
97			var NNDD = menuBox(this_scrollTop);
98		}
99		
100	);
101	
102	
103

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.