PageSourceSearch

https://member.wjthinkbig.com:448/Resources/scripts/UIscript.js

js wjthinkbig.com collected 2026-09-26 07:04:54 UTC 18,021 bytes, 518 lines download raw bytes

1$(function(){
2
3	/* skip navigation */
4	$("#skipToContents a").focus(function(){
5		$("#skipToContents").removeClass("skip");
6	});
7	$("#header h1 a").focus(function(){
8		$("#skipToContents").addClass("skip");
9	});
10
11	/*메인-서브 구분*/
12	if($("#wrapper").attr("class")=="main"){
13		pagePart = "main";
14	}else{
15		pagePart = "sub";
16	}
17
18	/* 브랜드보기 */
19	$(".util ul li.brview a").click(function(){
20		var left = parseInt($("#wrapper").css("margin-left"));
21		
22		if($("#container").css("margin-left")!=="51px"){
23			$(".mem,.search").css("z-index","-10");//.css("display","none");
24			$(".mem,.search").css("border-left","0");
25			$("#container,#footer").animate({"margin-left":"51px"},"300");	
26			/* 개발자 수정
27			$(".util li.mview a img").attr("src","/Resources/images/common/Lmenu_02.gif");
28			*/
29			$(".util li.mview a img").attr("src",$(".util li.mview a img").attr("src").replace("_on.gif",".gif"));
30			$(".util li.sview a img").attr("src","/Resources/images/common/Lmenu_03.gif");
31		}
32		if(left == 0){
33			$(".quick").css("position","absolute");
34			$("#wrapper").animate({"margin-left":"472px"}, "300")
35		}else{
36			$("#wrapper").animate({"margin-left":"0px"}, "300",function(){
37
38				$(".quick").css("position","fixed");
39				$(".quick").css("left","1171px;");
40
41			});
42		}
43	});
44    
45    /*2014-04-22 추가- 브랜드보기 닫기*/
46	$("#brand .bmenu a.btClose").click(function(){
47		$(".util ul li.brview a").click();
48		return false;
49	});
50	
51	/* 회원서비스 */
52	$(".util ul li:not(.brview) a").click(function(){
53		var container_m = parseInt($("#container").css("margin-left"));
54		var view_obj = $(this).parent().attr("class");			
55
56		if(container_m==51){ //닫힌상태에서 오픈
57			if(view_obj=="mview")
58			{
59				$(".mem").css("display","block");
60				$(".search").css("display","none");
61				/* 개발자 수정
62				$(".util li.mview a img").attr("src","/Resources/images/common/Lmenu_02_on.gif");
63				*/
64				$(".util li.mview a img").attr("src",$(".util li.mview a img").attr("src").replace(".gif","_on.gif"));
65			}
66//			else if(view_obj=="sview"){
67//				$(".mem").css("display","none");
68//				$(".search").css("display","block");
69//				$(".util li.sview a img").attr("src","/Resources/images/common/Lmenu_03_on.gif");
70//				alert("3");
71//			}
72			if($("#wrapper").css("margin-left")!=="0px"){
73				$(".util ul li.brview a").click();
74			}
75//			$(".mem,.search").css("border-left","solid 1px #e7e7e7");
76
77            if(view_obj=="mview")
78            {
79			    $("#container,#footer").animate({"margin-left":"694px"},"300",function(){
80				    $(".mem,.search").css("z-index","1");
81			    });
82		    }
83		}else if(view_obj=="mview" && $(".mem").css("display")=="block"){ // 회원서비스가 열린 상태에서 회원탭클릭시 닫기
84			
85			$(".mem,.search").css("z-index","-10").css("display","none");
86			$(".mem,.search").css("border-left","0");
87			$("#container,#footer").animate({"margin-left":"51px"},"300");	
88			/* 개발자 수정
89			$(".util li.mview a img").attr("src","/Resources/images/common/Lmenu_02.gif");
90			*/
91			$(".util li.mview a img").attr("src",$(".util li.mview a img").attr("src").replace("_on.gif",".gif"));
92			$(".util li.sview a img").attr("src","/Resources/images/common/Lmenu_03.gif");
93		
94		}else if(view_obj=="sview" && $(".search").css("display")=="block"){ // 검색서비스가 열린 상태에서 검색탭클릭시 닫기
95			
96			$(".mem,.search").css("z-index","-10").css("display","none");
97			$(".mem,.search").css("border-left","0");
98			$("#container,#footer").animate({"margin-left":"51px"},"300");	
99			/* 개발자 수정
100			$(".util li.mview a img").attr("src","/Resources/images/common/Lmenu_02.gif");
101			*/
102			$(".util li.mview a img").attr("src",$(".util li.mview a img").attr("src").replace("_on.gif",".gif"));
103			$(".util li.sview a img").attr("src","/Resources/images/common/Lmenu_03.gif");
104		
105		}else if(view_obj=="sview" && $(".mem").css("display")=="block"){ // 회원서비스가 열린 상태에서 검색탭클릭시 검색레이어 열기(이동x)
106				$(".mem").css("display","none");
107				$(".search").css("display","block");
108				/* 개발자 수정
109				$(".util li.mview a img").attr("src","/Resources/images/common/Lmenu_02.gif");
110				*/
111			    $(".util li.mview a img").attr("src",$(".util li.mview a img").attr("src").replace("_on.gif",".gif"));
112				$(".util li.sview a img").attr("src","/Resources/images/common/Lmenu_03_on.gif");
113		
114		}else if(view_obj=="mview" && $(".search").css("display")=="block"){ // 검색서비스가 열린 상태에서 회원탭클릭시 회원레이어 열기(이동x)
115				$(".search").css("display","none");
116				$(".mem").css("display","block");
117				/* 개발자 수정
118				$(".util li.mview a img").attr("src","/Resources/images/common/Lmenu_02_on.gif");
119				*/
120			    $(".util li.mview a img").attr("src",$(".util li.mview a img").attr("src").replace(".gif","_on.gif"));
121				$(".util li.sview a img").attr("src","/Resources/images/common/Lmenu_03.gif");
122		
123		}
124	});
125
126	/*출판사로고 마우스오버/아웃*/
127	$("#header .pub-list a").mouseenter(function(){
128		pubListIdx = $(this).parent().index()+1;
129		if(pubListIdx < 10) pubListIdx = "0"+pubListIdx;
130		if(pagePart=="main") $(this).find("img").attr("src","/Resources/images/common/pubList_on_"+pubListIdx+".gif");
131		if(pagePart=="sub") $(this).find("img").attr("src","/Resources/images/common/pubList_on_"+pubListIdx+".gif");
132	}).mouseleave(function(){		
133		if(pagePart=="main") $(this).find("img").attr("src","/Resources/images/common/pubList_"+pubListIdx+".gif");
134		if(pagePart=="sub") $(this).find("img").attr("src","/Resources/images/common/pubList_"+pubListIdx+".gif");
135	});
136	
137	/* 회원서비스닫기 2014-04-02 */
138	$("#brand .mem .btn_close").click(function(){
139		$(".mem").css("z-index","-10");
140		$(".mem,.search").css("border-left","0");
141		$("#container,#footer").animate({"margin-left":"51px"},"300");	
142		/* 개발자 수정
143		$(".util li.mview a img").attr("src","/Resources/images/common/Lmenu_02.gif");
144		*/
145	    $(".util li.mview a img").attr("src",$(".util li.mview a img").attr("src").replace("_on.gif",".gif"));
146		$(".util li.sview a img").attr("src","/Resources/images/common/Lmenu_03.gif");
147	});
148
149	/*2depth 메뉴 라운딩요소*/
150	$("#contents .section01 .depth2_nav li").append("<span class=\"bg01\"></span><span class=\"bg02\"></span>");
151
152	/*$("#contents .depth2_nav li:not(.on)").mouseenter(function(){
153		$(this).css("background-color","#bdde7e");
154		$(this).find("a").css("color","#fff");
155	}).mouseleave(function(){
156		$(this).css("background-color","");
157		if($(this).parent().attr("class")=="on" || $(this).parent().attr("class")=="on last"){
158			$(this).find("a").css("color","#59810c");
159		}else{
160			$(this).find("a").css("color","#6a6a6a");
161		}
162	});*/
163
164	/*신간도서/베스트도서 탭(메인페이지)*/
165	view_val = $(".section01 .detail01");
166	$(".main .section01 .tab01 li:nth-child(1) a").click(function(){
167		$(this).parent().find("img").attr("src","/Resources/images/main/tab01_01_on.png");
168		$(this).parent().siblings().find("img").attr("src","/Resources/images/main/tab01_02.png");
169		$(".section01 .detail01").removeClass("hide");
170		$(".section01 .detail02").addClass("hide");
171		$(".section01 .tab02 li:nth-child(1)").removeClass("hide");
172		$(".section01 .tab02 li:nth-child(2)").addClass("hide");
173		view_val = $(".section01 .detail01");
174	});
175	$(".main .section01 .tab01 li:nth-child(2) a").click(function(){
176		$(this).parent().find("img").attr("src","/Resources/images/main/tab01_02_on.png");
177		$(this).parent().siblings().find("img").attr("src","/Resources/images/main/tab01_01.png");
178		$(".section01 .detail02").removeClass("hide");
179		$(".section01 .detail01").addClass("hide");
180		$(".section01 .tab02 li:nth-child(2)").removeClass("hide");
181		$(".section01 .tab02 li:nth-child(1)").addClass("hide");
182		view_val = $(".section01 .detail02");
183	});
184
185	/*신간,베스트도서 좌우이동(메인페이지)*/
186	$(".main .section01 .arr li.f_l a").click(function(){
187		view_val.find(".list li:last-child").css("margin-left","-300px").prependTo(view_val.find(".list"));
188		view_val.find(".list li:first-child").animate({"margin-left":"0"},"100");
189	});
190	$(".main .section01 .arr li.f_r a").click(function(){
191		view_val.find(".list li:first-child").animate({"margin-left":"-245px"},"100",function(){
192			$(this).appendTo(view_val.find(".list")).css("margin-left","0");
193		});
194	});
195
196	/*도서>신간도서 날짜선택 드롭다운*/
197	$(".newbooks .dateSelect > div p a").click(function(){
198		$(this).blur();
199		$(this).parent().next("ul").slideDown("fast");
200	});
201	$(".newbooks .dateSelect >div").mouseleave(function(){
202		$(this).find("ul").slideUp("fast");
203	});
204	$(".newbooks .dateSelect >div li").click(function(){
205		$(this).parent().parent().mouseleave();
206		$(this).parent().prev().find("a").text($(this).text());
207	});
208
209	/*도서상세-구매 드롭다운*/
210	$(".bookInfo .section02 div .info02 dd a").click(function(){
211		if($(this).parent().next("ul").css("display")=="none"){
212			$(this).parent().next("ul").slideDown("fast");
213		}else{
214			$(this).parent().next("ul").slideUp("fast");
215		}
216	}).blur(function(){
217		$(this).parent().next("ul").slideUp("fast");
218	});
219
220	/*도서-전체도서목록,작가소개 드롭다운*/
221	$(".search .search-01 span").click(function(){
222		if($(this).next().css("display")=="none"){
223			$(this).next().slideDown("fast");
224		}else{
225			$(this).next().slideUp("fast");
226		}
227	});
228	$(".search .search-01").mouseleave(function(){
229		$(this).find("ul").slideUp("fast");
230	});
231	$(".search .search-01 li").click(function(){
232	    $(this).parent().prev().find("a").text($(this).text());
233	    $(this).parent().prev().find("a").attr("code", $(this).children().attr("code"));
234		//$(this).parent().prev().text($(this).text());
235		$(this).parent().mouseleave();
236	});
237
238	
239	/*출판사메인-유아 메인도서 비주얼 컨트롤*/
240	$(".pubMain-type01 .book_list li").mouseenter(function(){
241		val_page = $(this).index()+1;
242		$(".book_detail li").fadeOut("fast");
243		$(".book_detail li:nth-child("+val_page+")").fadeIn("fast");
244		
245	});
246
247	/*주니어공모전 드롭다운*/
248	$(".jn_contest01 .section02 .tab li a").mouseover(function(){
249		$(this).next("ul.depth").slideDown("fast");
250	});
251
252	$(".jn_contest01 .section02 .tab li").mouseleave(function(){
253		$(this).find("ul").slideUp("fast");
254	});
255
256	/*주니어공모전 드롭다운*/
257	$(".jn_contest02 .section02 .tab li a").mouseover(function(){
258		$(this).next("ul.depth").slideDown("fast");
259	});
260
261	$(".jn_contest02 .section02 .tab li").mouseleave(function(){
262		$(this).find("ul").slideUp("fast");
263	});
264
265	/*family site list 드롭다운*/
266	$("#footer .rightWrap .linkList p a").click(function(){
267		if($(this).parent().next().css("display")=="none"){
268			if(pagePart=="main") $(this).find("img").attr("src","/Resources/images/common/f_img_list02.gif");
269			if(pagePart=="sub") $(this).find("img").attr("src","/Resources/images/common/f_img_list02.gif");
270			$(this).parent().next().slideDown("fast");
271		}else{
272			if(pagePart=="main") $(this).find("img").attr("src","/Resources/images/common/f_img_list.gif");
273			if(pagePart=="sub") $(this).find("img").attr("src","/Resources/images/common/f_img_list.gif");
274			$(this).parent().next().slideUp("fast");
275		}
276	});
277	$("#footer .rightWrap .linkList").mouseleave(function(){
278		if(pagePart=="main") $("#footer .rightWrap .linkList p a img").attr("src","/Resources/images/common/f_img_list.gif");
279		if(pagePart=="sub") $("#footer .rightWrap .linkList p a img").attr("src","/Resources/images/common/f_img_list.gif");
280		$(this).find("ul").slideUp("fast");
281	});
282	
283	/*2014-03-13 추가*/
284	/* 작가소개 초성검색 */
285	$(".author-list .category1 ul .lang_en a").click(function(){
286		$(".author-list .category1").css("display","none");
287		$(".author-list .category2").css("display","block");
288	});
289	$(".author-list .category2 ul .lang_ko a").click(function(){
290		$(".author-list .category2").css("display","none");
291		$(".author-list .category1").css("display","block");
292	});
293	
294	/* product_slides_layer */
295	$("#product_slides .layer01").addClass("hidden");	
296	$("#product_slides .layer02").addClass("hidden");	
297
298	$("#product_slides .rolling01 .link").mouseover(function(){
299		$("#product_slides .layer01").removeClass("hidden");
300	}).mouseout(function(){
301		$("#product_slides .layer01").addClass("hidden");
302	});
303
304	$("#product_slides .rolling02 .link").mouseover(function(){
305		$("#product_slides .layer02").removeClass("hidden");
306	}).mouseout(function(){
307		$("#product_slides .layer02").addClass("hidden");
308	});
309
310
311	/* product_pic_box01 */
312	$(".pic_box01 .layer").hide();
313	$(".pic_box01 .listbox  li .pic b").hide();
314	
315	$(".pic_box01 .listbox > li > a").mouseover(function(){
316		$(this).find(".on").show();
317	}).mouseout(function(){
318		$(this).find(".on").hide();
319	}).click(function(){
320		$(".pic_box01").addClass("js");
321		$(".pic_box01 .layer").show();
322		return false;
323	});
324
325	$(".pic_box01 .layer a").click(function(){
326		$(".pic_box01 .layer").hide();
327		$(".pic_box01").removeClass("js");
328		return false;
329	});
330
331
332	/* product_pic_box02 */
333	$(".pic_box02 .layer").hide();
334	$(".pic_box02 .pic b").hide();
335	
336	$(".pic_box02 .listbox li .pic > a").mouseover(function(){
337		$(this).find(".on").show();
338	}).mouseout(function(){
339		$(this).find(".on").hide();
340	}).click(function(){
341		$(".pic_box02").addClass("js");
342		$(".pic_box02 .layer").show();
343		return false;
344	});
345
346	$(".pic_box02 .layer a").click(function(){
347		$(".pic_box02 .layer").hide();
348		$(".pic_box02").removeClass("js");
349		return false;
350	});
351
352    
353    /* culum_box01 */
354	$(".culum_box01 .layer").hide();
355	$(".culum_box01 .pic b").hide();
356	
357	$(".culum_box01 .btn01 > a").mouseover(function(){
358		$(this).find(".on").show();
359	}).mouseout(function(){
360		$(this).find(".on").hide();
361	}).click(function(){
362		$(".culum_box01").addClass("js");
363		$(".culum_box01 .layer").show();
364		return false;
365	});
366
367	$(".culum_box01 .layer a").click(function(){
368		$(".culum_box01 .layer").hide();
369		$(".culum_box01").removeClass("js");
370		return false;
371	});
372	
373
374    /* brand_pic_box08 */
375	$(".pic_box08 .layer").hide();
376	$(".pic_box08  b").hide();
377	
378	$(".pic_box08 > a").mouseover(function(){
379		$(this).find(".on").show();
380	}).mouseout(function(){
381		$(this).find(".on").hide();
382	});
383	
384
385	/* list_type05 */
386	$(".list_type05 .layer").hide();
387	$(".list_type05 .picbox b").hide();
388	
389	$(".list_type05 .picbox > a").mouseover(function(){
390		$(this).find(".on").show();
391	}).mouseout(function(){
392		$(this).find(".on").hide();
393	}).click(function(){
394		$(".list_type05").addClass("js");
395		$(".list_type05 .layer").show();
396		return false;
397	});
398
399	$(".list_type05 .layer a").click(function(){
400		$(".list_type05 .layer").hide();
401		$(".list_type05").removeClass("js");
402		return false;
403	});
404
405	/* product_layer  */
406	 picView = function(path, alt){
407	  $(".layer .pic > img").attr("src",path);
408	  $(".layer .pic > img").attr("alt",alt);
409	 }
410
411
412	/* topbox_info */								
413	$(".info_tabbox01").css('display','none');
414	$(".prodbox").hover(function () {
415		$(this).children('.info_tabbox01').css('display','block');
416	},function () {
417		$(this).children('.info_tabbox01').css('display','none');
418	});
419
420
421	/* slidebox01 */			
422	$(".slidebox01 dd").hide();
423
424	$(".slidebox01 dt a").click(function(){
425
426		$(this).parent().toggleClass("on").next().slideToggle("fast").siblings("dd").hide();
427		$(this).parent().siblings("dt").find("a").removeClass("on");
428
429		return false;
430
431	});
432
433	$(".slidebox02 > dd").hide();
434
435	$(".slidebox02 > dt > a").click(function(){
436
437		$(this).parent().toggleClass("on").next().slideToggle("fast").siblings("dd").hide();
438		$(this).parent().siblings("dt").find("a").removeClass("on");
439
440		return false;
441
442	});
443
444	/* layer_btnbox01 */
445	$(".layer_btnbox01 .layer").hide();
446	$(".layer_btnbox01 > a").click(function(){
447		$(".layer_btnbox01 .layer").show();	
448		
449		return false;
450	});
451
452	$(".layer_btnbox01 .layer > a").click(function(){
453		$(".layer_btnbox01 .layer").hide();		
454
455		return false;
456	});
457
458    /* membership_box */
459	$(".membership_box .layer_bookclub").hide();
460	$(".membership_box .btn > a").click(function(){
461		$(".membership_box").addClass("js");
462		$(".membership_box .layer_bookclub").show();	
463
464		return false;
465	});
466
467	$(".membership_box .layer_bookclub > a").click(function(){
468		$(".membership_box").removeClass("js");
469		$(".membership_box .layer_bookclub").hide();		
470
471
472		return false;
473	});
474
475	/* 기타상품 서브 레이어 */
476	$(".depth2_nav .depth2_nav_sub").hide();
477	$(".depth2_nav .age_layer ").hide();
478
479	$(".depth2_nav > li > a").mouseenter(function(){ 
480		$(this).next().show();
481		$(this).parent().css("z-index","999");
482		$(this).parent().siblings().css("z-index","990");
483		$(this).parent().siblings().find('ul').hide();
484	}).click(function(){
485		$(this).next().show();
486		$(this).parent().css("z-index","999");
487		$(this).parent().siblings().css("z-index","990");
488		$(this).parent().siblings().find('ul').hide();
489	}).focus(function(){
490		$(this).click();
491	});
492
493	$(".depth2_nav > li ").mouseleave(function(){ 
494		$(".age_layer").hide();
495	});
496
497	$(".depth2_nav_sub").mouseleave(function(){ 
498		$(".depth2_nav_sub").hide();
499	});
500	
501	
502	/* brand_pic_box08 */
503    $(".pic_box08 .layer").hide();
504    $(".pic_box08 b").hide();
505
506    $(".pic_box08 > a").mouseover(function(){
507        $(this).find(".on").show();
508    }).mouseout(function(){
509        $(this).find(".on").hide();
510    }).click(function(){
511        window.open('/wjdachaek/managerservice/blank_process.html','_blank');
512        return false;
513    });
514});
515	/* 누리과정 - 과학 - 아리보 - 이미지 팝업 닫기 - 20140331 */
516	function Dnone(){
517		$(".imgPop").css("display","none");
518	}

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.