PageSourceSearch

https://mbccb.co.kr/rb/_core/js/common.js

js mbccb.co.kr collected 2026-10-02 16:26:00 UTC 12,534 bytes, 483 lines download raw bytes

1// Main Tab List
2$(function(){
3	var mainBdLi = $('.main_bd > ul > li');
4	mainBdLi.mouseover(function(){
5		var $this = $(this);
6		mainBdLi.removeClass('on');
7		mainBdLi.find('> ol').hide();
8		$this.addClass('on');
9		$this.find('> ol').show();
10	});
11
12	var tabLi = $('.tab1 > ul > li');
13	mainBdLi.mouseover(function(){
14		var $this = $(this);
15		mainBdLi.removeClass('on');
16		mainBdLi.find('> ol').hide();
17		$this.addClass('on');
18		$this.find('> ol').show();
19	});
20	$('.main_bd > ul > li:eq(0) > a').trigger('mouseover');
21
22	$('.fam_area .in ul').bxSlider({
23		autoDelay:500,
24		minSlides: 1,
25		maxSlides: 7,
26		moveSlides: 1,
27		pager:false
28	});
29
30
31});
32
33$(document).ready(function(){
34	/* 배너모음 */
35	var bannerAuto=null;
36	var bannerDirect="left"; 
37
38	function rightBanner(){
39		$(".banner_img").stop().animate(   
40			{left:"-130px"},0,function(){
41				var $bannerObj=$(".banner_img li:first").clone(true);
42				$(".banner_img li:first").remove(); 
43				$(".banner_img").css("left","0"); 
44				$(".banner_img").append($bannerObj);
45			} 
46		)
47		if(bannerAuto)clearTimeout(bannerAuto);
48		bannerAuto=setTimeout(rightBanner,3000)
49	}
50
51	function leftBanner(){
52		$(".banner_img").stop().animate(
53			{left:"0px"},0,function(){
54				var $bannerObj=$(".banner_img li:last").clone(true);
55				$(".banner_img li:last").remove(); 
56				$(".banner_img").css("left","0"); 
57				$(".banner_img").prepend($bannerObj);
58			} 
59		)
60		if(bannerAuto)clearTimeout(bannerAuto);
61		bannerAuto=setTimeout(rightBanner,3000) 
62	}
63	
64	bannerAuto=setTimeout(rightBanner,3000) 
65
66	$leftB=$(".banner_control .prev_banner a");
67	$rightB=$(".banner_control .next_banner a");
68	$pauseB=$(".banner_control .pause_banner a");
69	$bannerP_btn=$(".banner_control .pause_banner a img")
70	var bPlay = false;
71
72	$leftB.click(function(){
73		if(bPlay == true){	
74			clearTimeout(bannerAuto); 
75		}else{			
76			bannerDirect="left";
77			clearTimeout(bannerAuto);
78			leftBanner();
79			return false;
80		}
81	});
82
83	$rightB.click(function(){
84		if(bPlay == true){	
85			clearTimeout(bannerAuto); 
86		}else{			
87			bannerDirect="right";
88			clearTimeout(bannerAuto);
89			rightBanner();
90			return false;
91		}
92	});
93
94	$pauseB.click(function(){	
95		if(bPlay == false){	
96			clearTimeout(bannerAuto); 
97			$bannerP_btn.attr("src","img/main/bn_ctrl_play.png");
98			$bannerP_btn.attr("alt","배너재생");
99			bPlay = true;
100		}else{			
101			bPlay = false;
102			$bannerP_btn.attr("src","img/main/bn_ctrl_stop.png");
103			$bannerP_btn.attr("alt","배너일시정지");
104			bannerAuto=setTimeout(rightBanner,1500) 
105		}
106	});
107
108	$(".banner_img li a").bind("mouseover focusin", function(){
109		clearTimeout(bannerAuto);
110		$bannerP_btn.attr("src","img/main/bn_ctrl_play.png");
111		$bannerP_btn.attr("alt","배너재생");
112	});
113	$(".banner_img li a").bind("mouseleave focusout", function(){
114		bPlay = false;
115		bannerAuto=setTimeout(rightBanner,1500) 
116		$bannerP_btn.attr("src","img/main/bn_ctrl_stop.png");
117		$bannerP_btn.attr("alt","배너일시정지");
118	});
119
120});
121
122
123
124$(document).ready(function(){
125	/* 포토갤러리 */
126	var bannerAuto=null;
127	var bannerDirect="left"; 
128
129	function rightBanner(){
130		$(".photo_img").stop().animate(   
131			{left:"-130px"},0,function(){
132				var $bannerObj=$(".photo_img li:first").clone(true);
133				$(".photo_img li:first").remove(); 
134				$(".photo_img").css("left","0"); 
135				$(".photo_img").append($bannerObj);
136			} 
137		)
138		if(bannerAuto)clearTimeout(bannerAuto);
139		bannerAuto=setTimeout(rightBanner,3000)
140	}
141
142	function leftBanner(){
143		$(".photo_img").stop().animate(
144			{left:"0px"},0,function(){
145				var $bannerObj=$(".photo_img li:last").clone(true);
146				$(".photo_img li:last").remove(); 
147				$(".photo_img").css("left","0"); 
148				$(".photo_img").prepend($bannerObj);
149			} 
150		)
151		if(bannerAuto)clearTimeout(bannerAuto);
152		bannerAuto=setTimeout(rightBanner,3000) 
153	}
154	
155	bannerAuto=setTimeout(rightBanner,3000) 
156
157	$leftB=$(".photo_control .prev_bn a");
158	$rightB=$(".photo_control .next_bn a");
159	$pauseB=$(".photo_control .pause_bn a");
160	$bannerP_btn=$(".photo_control .pause_bn a img")
161	var bPlay = false;
162
163	$leftB.click(function(){
164		if(bPlay == true){	
165			clearTimeout(bannerAuto); 
166		}else{			
167			bannerDirect="left";
168			clearTimeout(bannerAuto);
169			leftBanner();
170			return false;
171		}
172	});
173
174	$rightB.click(function(){
175		if(bPlay == true){	
176			clearTimeout(bannerAuto); 
177		}else{			
178			bannerDirect="right";
179			clearTimeout(bannerAuto);
180			rightBanner();
181			return false;
182		}
183	});
184
185	$pauseB.click(function(){	
186		if(bPlay == false){	
187			clearTimeout(bannerAuto); 
188			$bannerP_btn.attr("src","img/main/bn_ctrl_play.png");
189			$bannerP_btn.attr("alt","재생");
190			bPlay = true;
191		}else{			
192			bPlay = false;
193			$bannerP_btn.attr("src","img/main/bn_ctrl_stop.png");
194			$bannerP_btn.attr("alt","일시정지");
195			bannerAuto=setTimeout(rightBanner,1500) 
196		}
197	});
198
199	$(".photo_img li a").bind("mouseover focusin", function(){
200		clearTimeout(bannerAuto);
201		$bannerP_btn.attr("src","img/main/bn_ctrl_play.png");
202		$bannerP_btn.attr("alt","재생");
203	});
204	$(".photo_img li a").bind("mouseleave focusout", function(){
205		bPlay = false;
206		bannerAuto=setTimeout(rightBanner,1500) 
207		$bannerP_btn.attr("src","img/main/bn_ctrl_stop.png");
208		$bannerP_btn.attr("alt","일시정지");
209	});
210
211});
212
213
214
215$(document).ready(function(){
216	/* 포토갤러리2 */
217	var bannerAuto=null;
218	var bannerDirect="left"; 
219
220	function rightBanner(){
221		$(".photo_img2").stop().animate(   
222			{left:"-130px"},0,function(){
223				var $bannerObj=$(".photo_img2 li:first").clone(true);
224				$(".photo_img2 li:first").remove(); 
225				$(".photo_img2").css("left","0"); 
226				$(".photo_img2").append($bannerObj);
227			} 
228		)
229		if(bannerAuto)clearTimeout(bannerAuto);
230		bannerAuto=setTimeout(rightBanner,3000)
231	}
232
233	function leftBanner(){
234		$(".photo_img2").stop().animate(
235			{left:"0px"},0,function(){
236				var $bannerObj=$(".photo_img2 li:last").clone(true);
237				$(".photo_img2 li:last").remove(); 
238				$(".photo_img2").css("left","0"); 
239				$(".photo_img2").prepend($bannerObj);
240			} 
241		)
242		if(bannerAuto)clearTimeout(bannerAuto);
243		bannerAuto=setTimeout(rightBanner,3000) 
244	}
245	
246	bannerAuto=setTimeout(rightBanner,3000) 
247
248	$leftB=$(".photo_control2 .prev_bn a");
249	$rightB=$(".photo_control2 .next_bn a");
250	$pauseB=$(".photo_control2 .pause_bn a");
251	$bannerP_btn=$(".photo_control2 .pause_bn a img")
252	var bPlay = false;
253
254	$leftB.click(function(){
255		if(bPlay == true){	
256			clearTimeout(bannerAuto); 
257		}else{			
258			bannerDirect="left";
259			clearTimeout(bannerAuto);
260			leftBanner();
261			return false;
262		}
263	});
264
265	$rightB.click(function(){
266		if(bPlay == true){	
267			clearTimeout(bannerAuto); 
268		}else{			
269			bannerDirect="right";
270			clearTimeout(bannerAuto);
271			rightBanner();
272			return false;
273		}
274	});
275
276	$pauseB.click(function(){	
277		if(bPlay == false){	
278			clearTimeout(bannerAuto); 
279			$bannerP_btn.attr("src","img/main/bn_ctrl_play.png");
280			$bannerP_btn.attr("alt","재생");
281			bPlay = true;
282		}else{			
283			bPlay = false;
284			$bannerP_btn.attr("src","img/main/bn_ctrl_stop.png");
285			$bannerP_btn.attr("alt","일시정지");
286			bannerAuto=setTimeout(rightBanner,1500) 
287		}
288	});
289
290	$(".photo_img2 li a").bind("mouseover focusin", function(){
291		clearTimeout(bannerAuto);
292		$bannerP_btn.attr("src","img/main/bn_ctrl_play.png");
293		$bannerP_btn.attr("alt","재생");
294	});
295	$(".photo_img2 li a").bind("mouseleave focusout", function(){
296		bPlay = false;
297		bannerAuto=setTimeout(rightBanner,1500) 
298		$bannerP_btn.attr("src","img/main/bn_ctrl_stop.png");
299		$bannerP_btn.attr("alt","일시정지");
300	});
301
302});
303
304
305
306$(document).ready(function(){
307	/* 메인 하단 이미지 롤링배너 */
308	var bannerAuto=null;
309	var bannerDirect="left"; 
310
311	function rightBanner(){
312		$(".mbanner_img").stop().animate(   
313			{left:"-130px"},0,function(){
314				var $bannerObj=$(".mbanner_img li:first").clone(true);
315				$(".mbanner_img li:first").remove(); 
316				$(".mbanner_img").css("left","0"); 
317				$(".mbanner_img").append($bannerObj);
318			} 
319		)
320		if(bannerAuto)clearTimeout(bannerAuto);
321		bannerAuto=setTimeout(rightBanner,3000)
322	}
323
324	function leftBanner(){
325		$(".mbanner_img").stop().animate(
326			{left:"0px"},0,function(){
327				var $bannerObj=$(".mbanner_img li:last").clone(true);
328				$(".mbanner_img li:last").remove(); 
329				$(".mbanner_img").css("left","0"); 
330				$(".mbanner_img").prepend($bannerObj);
331			} 
332		)
333		if(bannerAuto)clearTimeout(bannerAuto);
334		bannerAuto=setTimeout(rightBanner,3000) 
335	}
336	
337	bannerAuto=setTimeout(rightBanner,3000) 
338
339	$leftB=$(".mbanner_control .prev_bn a");
340	$rightB=$(".mbanner_control .next_bn a");
341	$pauseB=$(".mbanner_control .pause_bn a");
342	$bannerP_btn=$(".mbanner_control .pause_bn a img")
343	var bPlay = false;
344
345	$leftB.click(function(){
346		if(bPlay == true){	
347			clearTimeout(bannerAuto); 
348		}else{			
349			bannerDirect="left";
350			clearTimeout(bannerAuto);
351			leftBanner();
352			return false;
353		}
354	});
355
356	$rightB.click(function(){
357		if(bPlay == true){	
358			clearTimeout(bannerAuto); 
359		}else{			
360			bannerDirect="right";
361			clearTimeout(bannerAuto);
362			rightBanner();
363			return false;
364		}
365	});
366
367	$pauseB.click(function(){	
368		if(bPlay == false){	
369			clearTimeout(bannerAuto); 
370			$bannerP_btn.attr("src","img/main/bn_ctrl_play.png");
371			$bannerP_btn.attr("alt","재생");
372			bPlay = true;
373		}else{			
374			bPlay = false;
375			$bannerP_btn.attr("src","img/main/bn_ctrl_stop.png");
376			$bannerP_btn.attr("alt","일시정지");
377			bannerAuto=setTimeout(rightBanner,1500) 
378		}
379	});
380
381	$(".mbanner_img li a").bind("mouseover focusin", function(){
382		clearTimeout(bannerAuto);
383		$bannerP_btn.attr("src","img/main/bn_ctrl_play.png");
384		$bannerP_btn.attr("alt","재생");
385	});
386	$(".mbanner_img li a").bind("mouseleave focusout", function(){
387		bPlay = false;
388		bannerAuto=setTimeout(rightBanner,1500) 
389		$bannerP_btn.attr("src","img/main/bn_ctrl_stop.png");
390		$bannerP_btn.attr("alt","일시정지");
391	});
392
393});
394
395
396$(document).ready(function(){
397	/* 메인 하단 이미지 롤링배너 */
398	var bannerAuto=null;
399	var bannerDirect="left"; 
400
401	function rightBanner(){
402		$(".mbanner_img2").stop().animate(   
403			{left:"-130px"},0,function(){
404				var $bannerObj=$(".mbanner_img2 li:first").clone(true);
405				$(".mbanner_img2 li:first").remove(); 
406				$(".mbanner_img2").css("left","0"); 
407				$(".mbanner_img2").append($bannerObj);
408			} 
409		)
410		if(bannerAuto)clearTimeout(bannerAuto);
411		bannerAuto=setTimeout(rightBanner,3000)
412	}
413
414	function leftBanner(){
415		$(".mbanner_img2").stop().animate(
416			{left:"0px"},0,function(){
417				var $bannerObj=$(".mbanner_img2 li:last").clone(true);
418				$(".mbanner_img2 li:last").remove(); 
419				$(".mbanner_img2").css("left","0"); 
420				$(".mbanner_img2").prepend($bannerObj);
421			} 
422		)
423		if(bannerAuto)clearTimeout(bannerAuto);
424		bannerAuto=setTimeout(rightBanner,3000) 
425	}
426	
427	bannerAuto=setTimeout(rightBanner,3000) 
428
429	$leftB=$(".mbanner_control .prev_bn a");
430	$rightB=$(".mbanner_control .next_bn a");
431	$pauseB=$(".mbanner_control .pause_bn a");
432	$bannerP_btn=$(".mbanner_control .pause_bn a img")
433	var bPlay = false;
434
435	$leftB.click(function(){
436		if(bPlay == true){	
437			clearTimeout(bannerAuto); 
438		}else{			
439			bannerDirect="left";
440			clearTimeout(bannerAuto);
441			leftBanner();
442			return false;
443		}
444	});
445
446	$rightB.click(function(){
447		if(bPlay == true){	
448			clearTimeout(bannerAuto); 
449		}else{			
450			bannerDirect="right";
451			clearTimeout(bannerAuto);
452			rightBanner();
453			return false;
454		}
455	});
456
457	$pauseB.click(function(){	
458		if(bPlay == false){	
459			clearTimeout(bannerAuto); 
460			$bannerP_btn.attr("src","img/main/bn_ctrl_play.png");
461			$bannerP_btn.attr("alt","재생");
462			bPlay = true;
463		}else{			
464			bPlay = false;
465			$bannerP_btn.attr("src","img/main/bn_ctrl_stop.png");
466			$bannerP_btn.attr("alt","일시정지");
467			bannerAuto=setTimeout(rightBanner,1500) 
468		}
469	});
470
471	$(".mbanner_img2 li a").bind("mouseover focusin", function(){
472		clearTimeout(bannerAuto);
473		$bannerP_btn.attr("src","img/main/bn_ctrl_play.png");
474		$bannerP_btn.attr("alt","재생");
475	});
476	$(".mbanner_img2 li a").bind("mouseleave focusout", function(){
477		bPlay = false;
478		bannerAuto=setTimeout(rightBanner,1500) 
479		$bannerP_btn.attr("src","img/main/bn_ctrl_stop.png");
480		$bannerP_btn.attr("alt","일시정지");
481	});
482
483});

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.