PageSourceSearch

https://lovealba.co.kr/js/happy_job.js

js lovealba.co.kr collected 2026-09-26 02:21:50 UTC 19,973 bytes, 611 lines download raw bytes

1	var html,total_area=0,wait_flag=true;
2	var bMouseOver = 1;
3	var scrollspeed =2;
4	var scrollerheight=20;
5	var waitingtime = 3000;
6	var scroll_content = new Array();
7	
8	function startscroll(msg){
9		scroll_content = msg.split("--");
10		for(i in scroll_content)insert_area(total_area++); 
11		window.setTimeout("scrolling()",waitingtime);
12	}
13	function scrolling(){
14		if( bMouseOver && wait_flag ){ 
15			for( i=0; i<total_area; i++){
16				tmp = document.getElementById('scroll_area'+i).style;
17				tmp.top = parseInt(tmp.top) - scrollspeed;
18				if(parseInt(tmp.top) <= -scrollerheight){
19					tmp.top = scrollerheight * (total_area-1);
20					wait_flag = false;
21					window.setTimeout("wait_flag=true;",waitingtime);
22				}
23			}
24		}
25		window.setTimeout("scrolling()",1);
26		
27	}
28	function insert_area(n){
29		html='<div style="font-size:11px;left: 0px; width: 100%; position: absolute; top: '+(scrollerheight*n)+'px" id="scroll_area'+n+'">';
30			html+=scroll_content[n]+'';
31			html+='</div>';
32			document.write(html);
33	}
34
35
36
37
38
39
40
41
42
43var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4"); 
44var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4"); 
45function CheckUIElements(){ 
46        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck; 
47
48        if ( bNetscape4plus ) { 
49                yMenuFrom   = document["divMenu"].top; 
50                yMenuTo     = top.pageYOffset + 71; 
51				//415 숫자를 고치면 스크롤위치가 바뀝니다.
52        } 
53        else if ( bExplorer4plus ) { 
54                yMenuFrom   = parseInt (divMenu.style.top, 10); 
55                yMenuTo     = document.body.scrollTop + 71; 
56				//415 숫자를 고치면 스크롤위치가 바뀝니다.
57
58        } 
59
60        timeoutNextCheck = 1; 
61
62        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) { 
63                setTimeout ("CheckUIElements()", timeoutNextCheck); 
64                return; 
65        } 
66
67        if ( yButtonFrom != yButtonTo ) { 
68                yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 1 ); 
69                if ( yButtonTo < yButtonFrom ) 
70                        yOffset = -yOffset; 
71
72                if ( bNetscape4plus ) 
73                        document["divLinkButton"].top += yOffset; 
74                else if ( bExplorer4plus ) 
75                        divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset; 
76
77                timeoutNextCheck = 10; 
78        } 
79        if ( yMenuFrom != yMenuTo ) { 
80                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 1 ); 
81                if ( yMenuTo < yMenuFrom ) 
82                        yOffset = -yOffset; 
83
84                if ( bNetscape4plus ) 
85                        document["divMenu"].top += yOffset; 
86                else if ( bExplorer4plus ) 
87                        divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset; 
88
89                timeoutNextCheck = 10; 
90        } 
91
92        setTimeout ("CheckUIElements()", timeoutNextCheck); 
93} 
94
95function OnLoad() 
96{ 
97        var y; 
98        if ( top.frames.length ) 
99        if ( bNetscape4plus ) { 
100                document["divMenu"].top = top.pageYOffset + 27; 
101                document["divMenu"].visibility = "visible"; 
102        } 
103        else if ( bExplorer4plus ) { 
104                divMenu.style.top = document.body.scrollTop + 27; 
105                divMenu.style.visibility = "visible"; 
106        } 
107        CheckUIElements(); 
108        return true; 
109} 
110
111
112var offsetxpoint=-60 //Customize x offset of tooltip
113var offsetypoint=20 //Customize y offset of tooltip
114var ie=document.all
115var ns6=document.getElementById && !document.all
116var enabletip=false
117if (ie||ns6)
118var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""
119
120function ietruebody(){
121return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
122}
123
124function ddrivetip(thetext, thecolor, thewidth){
125if (ns6||ie){
126if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
127if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
128tipobj.innerHTML=thetext
129enabletip=true
130return false
131}
132}
133
134function positiontip(e){
135if (enabletip){
136var curX=(ns6)?e.pageX : event.x+ietruebody().scrollLeft;
137var curY=(ns6)?e.pageY : event.y+ietruebody().scrollTop;
138//Find out how close the mouse is to the corner of the window
139var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
140var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
141
142var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000
143
144//if the horizontal distance isn't enough to accomodate the width of the context menu
145if (rightedge<tipobj.offsetWidth)
146//move the horizontal position of the menu to the left by it's width
147tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
148else if (curX<leftedge)
149tipobj.style.left="5px"
150else
151//position the horizontal position of the menu where the mouse is positioned
152tipobj.style.left=curX+offsetxpoint+"px"
153
154//same concept with the vertical position
155if (bottomedge<tipobj.offsetHeight)
156tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
157else
158tipobj.style.top=curY+offsetypoint+"px"
159tipobj.style.visibility="visible"
160}
161}
162
163function hideddrivetip(){
164if (ns6||ie){
165enabletip=false
166tipobj.style.visibility="hidden"
167tipobj.style.left="-1000px"
168tipobj.style.backgroundColor=''
169tipobj.style.width=''
170}
171}
172document.onmousemove=positiontip
173
174
175//비밀번호찾기 부분
176function open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
177{
178 toolbar_str = toolbar ? 'yes' : 'no';
179 menubar_str = menubar ? 'yes' : 'no';
180 statusbar_str = statusbar ? 'yes' : 'no';
181 scrollbar_str = scrollbar ? 'yes' : 'no';
182 resizable_str = resizable ? 'yes' : 'no';
183 window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
184}
185
186
187//게시판스크롤 부분
188function Marq(kind)
189{
190	switch(kind) {
191	case 1:
192	mq_notice.stop();
193	break;
194	}
195	switch(kind) {
196	case 2:
197	mq_notice.start();
198	break;
199	}
200}
201
202
203
204//플래쉬 메뉴 링크
205function mainmenu(menuName){
206	var main_url = '';
207	if(menuName=="m1"){ //플래쉬에서 입력된 변수값
208		location.href="guin_list.php"; //이동할 페이지 주소
209		}else if(menuName=="m1_1"){ //플래쉬에서 입력된 변수값
210		location.href= "html_file.php?file=guin_tasklist.html"; //이동할 페이지 주소
211		}else if(menuName=="m1_2"){ //플래쉬에서 입력된 변수값
212		location.href= "html_file.php?file=guin_arealist.html"; //이동할 페이지 주소
213		}else if(menuName=="m1_3"){ //플래쉬에서 입력된 변수값
214		location.href= "html_file.php?file=guin_woodae.html"; //이동할 페이지 주소
215		}else if(menuName=="m1_4"){ //플래쉬에서 입력된 변수값
216		location.href= "html_file.php?file=guin_premium.html"; //이동할 페이지 주소
217		}else if(menuName=="m1_5"){ //플래쉬에서 입력된 변수값
218		location.href= "html_file.php?file=guin_speed.html"; //이동할 페이지 주소
219		}else if(menuName=="m1_6"){ //플래쉬에서 입력된 변수값
220		location.href= "html_file.php?file=guin_pick.html"; //이동할 페이지 주소
221		}else if(menuName=="m1_7"){ //플래쉬에서 입력된 변수값
222		location.href= "html_file.php?file=guin_special.html"; //이동할 페이지 주소
223		}else if(menuName=="m1_8"){ //플래쉬에서 입력된 변수값
224		location.href= "html_file.php?file=guin_underground.html&underground1=1"; //이동할 페이지 주소
225
226	}else if(menuName=="m2"){ //플래쉬에서 입력된 변수값
227		location.href= "guzic_list.php"; //이동할 페이지 주소
228		}else if(menuName=="m2_1"){ //플래쉬에서 입력된 변수값
229		location.href= "html_file.php?file=guzic_tasklist.html"; //이동할 페이지 주소
230		}else if(menuName=="m2_2"){ //플래쉬에서 입력된 변수값
231		location.href= "html_file.php?file=guzic_arealist.html"; //이동할 페이지 주소
232		}else if(menuName=="m2_3"){ //플래쉬에서 입력된 변수값
233		location.href= "html_file.php?file=guzic_special.html"; //이동할 페이지 주소
234		}else if(menuName=="m2_4"){ //플래쉬에서 입력된 변수값
235		location.href= "html_file.php?file=guzic_focus.html"; //이동할 페이지 주소
236		}else if(menuName=="m2_5"){ //플래쉬에서 입력된 변수값
237		location.href= "html_file.php?file=guzic_power.html"; //이동할 페이지 주소
238
239	}else if(menuName=="m3"){ //플래쉬에서 입력된 변수값
240		location.href= "guin_regist.php"; //이동할 페이지 주소
241
242
243	}else if(menuName=="m4"){ //플래쉬에서 입력된 변수값
244		location.href="document.php?mode=add"; //이동할 페이지 주소
245
246
247	}else if(menuName=="m5"){ //플래쉬에서 입력된 변수값
248		location.href="html_file.php?file=bbs_index.html&file2=bbs_default.html"; //이동할 페이지 주소
249		}else if(menuName=="m5_1"){ //플래쉬에서 입력된 변수값
250		location.href= "bbs_list.php?tb=board_news"; //이동할 페이지 주소
251		}else if(menuName=="m5_2"){ //플래쉬에서 입력된 변수값
252		location.href= "bbs_list.php?tb=board_photo"; //이동할 페이지 주소
253		}else if(menuName=="m5_3"){ //플래쉬에서 입력된 변수값
254		location.href= "bbs_list.php?tb=board_knowhow"; //이동할 페이지 주소
255		}else if(menuName=="m5_4"){ //플래쉬에서 입력된 변수값
256		location.href= "bbs_list.php?tb=board_ucc"; //이동할 페이지 주소
257
258	}else{
259		alert('페이지를 찾을 수 없습니다.'); //해당변수가 없을시 메시지출력
260	}
261}
262
263
264
265
266
267
268function field_space_check( objId , fieldCheck , outText , outColor)
269{
270 var obj  = document.getElementById(objId);
271
272 objValue = obj.value;
273
274 if ( objValue == fieldCheck )
275 {
276  obj.value  = outText;
277  obj.style.color = outColor;
278
279
280 }
281}
282
283
284
285
286
287function FlashMainbody(Ftrans,wid,hei) {
288	
289	mainbody = "<embed src='"+ Ftrans +"' quality='high' align='middle' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+ wid +"' height='"+ hei +"' wmode='Transparent'></embed>"
290	
291
292	//document.body.innerHTML = mainbody;
293	document.write(mainbody);
294	return;
295}
296
297
298function FlashXmlbody(Ftrans,wid,hei) {
299 
300 mainbody = "<embed src='"+ Ftrans +"' quality='high' align='middle' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+ wid +"' height='"+ hei +"' wmode='Transparent'></embed>"
301
302
303 document.write(mainbody);
304 return;
305}
306
307//<SCRIPT LANGUAGE="JavaScript">FlashMainbody("img/banner.swf","680","140",'Transparent');</SCRIPT>
308
309
310function albumopen(link){
311	window.open(link,'minialbum','width=900,height=700');
312}
313
314
315//온라인입사지원 삭제함수
316
317function OnlineDel(num)
318{
319	TmpUrl = '';
320	if ( confirm("온라인입사지원건이 확인전이므로 취소하실수 있습니다.\n\n취소하시겠습니까?") )
321	{
322		TmpUrl = './guin_join_del.php?mode=del';
323		TmpUrl += '&number='+num;
324
325		document.location.href = TmpUrl;
326
327	}
328}
329
330
331
332
333function change_stats(bNumber)
334{
335	//alert(bNumber);
336	selName = "online_stats_"+bNumber;
337	selObj = document.getElementById(selName);
338	
339	url = "./online_doc_change.php?";
340	url+= "bNumber="+bNumber;
341	url+= "&online_stats="+selObj.value;
342
343	//window.open(url);
344	document.getElementById('change_online').src = url;
345}
346
347
348
349//png
350function setPng24(obj) {
351    obj.width=obj.height=1;
352    obj.className=obj.className.replace(/\bPng24\b/i,'');
353    obj.style.filter =
354    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
355    obj.src='';
356    return '';
357}
358
359// 2011-05-27 HYO 스크립트 추가 start
360function ExecuteCommand( commandName, comment)
361{
362	// Get the editor instance that we want to interact with.
363	var oEditor = FCKeditorAPI.GetInstance( comment ) ;
364
365	// Execute the command.
366	oEditor.Commands.GetCommand( commandName ).Execute() ;
367}
368// 2011-05-27 HYO 스크립트 추가 end
369
370
371function startPopup( Obj_Name )
372{
373	Obj = document.getElementById(Obj_Name);
374
375	if ( Obj.style.display == "none" )
376	{
377		Obj.style.display = "";
378	}
379	else
380	{
381		Obj.style.display = "none";
382	}
383}
384
385
386function guin_jump(number)
387{
388	msg = "해당 구인정보를 점프하시겠습니까?";
389	if ( confirm(msg) )
390	{
391		window.location.href = "guin_jump.php?guin_number="+number;
392	}
393}
394
395
396function view(what) {
397var imgwin = window.open("",'WIN','scrollbars=yes,status=no,toolbar=no,resizable=0,location=no,menu=no,width=30,height=30,scrollbars=no');
398imgwin.focus();
399imgwin.document.open();
400imgwin.document.write("<html>\n");
401imgwin.document.write("<head><meta http-equiv='Content-Type' content='text/html; charset=utf-8'>\n");
402
403imgwin.document.write("<sc"+"ript>\n");
404
405imgwin.document.write("function closeWin(){\n");
406imgwin.document.write("window.close();\n");
407imgwin.document.write("}\n");
408
409imgwin.document.write("function resize() {\n");
410imgwin.document.write("pic = document.il;\n");
411//imgwin.document.write("alert(eval(pic).height);\n");
412imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n");
413imgwin.document.write("  if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height + 50; myWidth = eval(pic).width + 12;\n");
414imgwin.document.write("  } else { myHeight = eval(pic).height + 9; myWidth = eval(pic).width; }\n");
415imgwin.document.write("   if( myHeight > 600 ){ \n");
416imgwin.document.write("    kwak = myHeight/600; \n");
417imgwin.document.write("    myWidth = myWidth / kwak \n");
418imgwin.document.write("    myHeight=600;\n");
419imgwin.document.write("    pic.style.height=myHeight-35; \n");
420imgwin.document.write("    pic.style.width=myWidth-10; }\n");
421imgwin.document.write("   if( myWidth > 800 ){ \n");
422imgwin.document.write("    kwak = myWidth/800; \n");
423imgwin.document.write("    myHeight = myHeight / kwak \n");
424imgwin.document.write("    myWidth=800;\n");
425imgwin.document.write("    pic.style.height=myHeight-35; ");
426imgwin.document.write("    pic.style.width=myWidth-10; }\n");
427imgwin.document.write("  clearTimeout();\n");
428imgwin.document.write("  var height = screen.height;\n");
429imgwin.document.write("  var width = screen.width;\n");
430imgwin.document.write("  var leftpos = width / 2 - myWidth / 2;\n");
431imgwin.document.write("  var toppos = height / 2 - myHeight / 2; \n");
432imgwin.document.write("  self.moveTo(leftpos, toppos);\n");
433imgwin.document.write("  self.resizeTo(myWidth, myHeight+60);\n");
434imgwin.document.write("}else setTimeOut(resize(), 100);}\n");
435imgwin.document.write("</sc"+"ript>\n");
436
437imgwin.document.write("</head>\n");
438imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">\n');
439
440imgwin.document.write("<a href='javascript:closeWin()' onfocus='this.blur()' title='이미지를 클릭하시면 창이 닫힙니다.'>\n");
441imgwin.document.write("<img border=0 src="+what+" xwidth=100 xheight=9 name=il onload='resize();'>\n");
442imgwin.document.write("</a>\n");
443imgwin.document.write("<center><a href='#1' onClick=\"document.all.cooponimg.style.display='';print()\"><img id='cooponimg' src='img/print_button.gif' border='0' alt='print' style='margin-top:7px;'></div></a>\n");
444imgwin.document.write("</body>\n");
445imgwin.document.close();
446}
447
448function add_bookmark_click()
449{
450	try
451	{
452		window.external.AddFavorite(parent.location.href, document.title);
453	}
454	catch (e)
455	{
456		alert("Ctrl+D 키를 누르면 즐겨찾기에 추가하실수 있습니다.");
457	}
458}
459
460
461
462
463/* 날씨 */
464var cValue	= '';
465var gCount	= 0;
466function happy_weather_area_selectbox_view(count)
467{
468	$("#wthr_area_opt__box_" + count).toggle();
469}
470function happy_weather_area_change_start(count)
471{
472	var cOpt	= document.getElementById("wthr_area_opt_" + count);
473	var cName	= "wthr_city" + count;
474	cValue	= cOpt.options[cOpt.options.selectedIndex].value;
475	var cDay	= 30;
476
477	var expire = new Date();
478	expire.setDate(expire.getDate() + cDay);
479	cookies = cName + '=' + escape(cValue) + '; path=/ '; // 한글 깨짐을 막기위해 escape(cValue)를 합니다.
480	if(typeof cDay != 'undefined') cookies += ';expires=' + expire.toGMTString() + ';';
481	document.cookie = cookies;
482
483	gCount	= count;
484
485	happy_weather_area_change_end();
486}
487function happy_weather_area_change_end()
488{
489	var file	= document.getElementById("happy_weather_template_" + gCount).value;
490	var css		= document.getElementById("happy_weather_template_css_" + gCount).value;
491	var count	= document.getElementById("happy_weather_template_count_" + gCount).value;
492	var imc_c	= document.getElementById("happy_weather_template_img_c_" + gCount).value;
493	var img_h	= document.getElementById("happy_weather_template_img_h_" + gCount).value;
494
495	$.ajax({
496		type: "GET",
497		url: "./ajax_weather.php",
498		data: {
499			is_ajax		: "ajax",
500			file		: file,
501			city		: cValue,
502			stylecss	: css,
503			wthr_count	: count,
504			img_c		: imc_c,
505			img_h		: img_h
506		},
507		success:function( respons ) {
508			var responses	= respons.split("___cut___");
509
510			if ( responses[0] == "ok" )
511			{
512				$("#happy_weather_layer_" + gCount).html( responses[1] );
513			}
514		}
515	});
516}
517
518
519
520
521
522function happy_scrap_change(userType,mode,cNumber)
523{
524	$.ajax({
525		type: "GET",
526		url: "./scrap.php",
527		data: {
528			is_ajax		: "ajax",
529			userType	: userType,
530			mode		: mode,
531			cNumber		: cNumber
532		},
533		success:function( respons ) {
534			var responses	= respons.split("___cut___");
535
536			var result_val		= responses[0];		//ê²°ê³¼
537			var img_val			= responses[1];		//변경할 이미지
538
539			var scrap_msg		= "";
540
541			switch(mode)
542			{
543				case "per":		scrap_msg	= "스크랩완료";break;
544				case "per_del":	scrap_msg	= "스크랩삭제";break;
545			}
546
547			if ( result_val == "ok" )
548			{
549				switch(userType)
550				{
551					case "per":	$("#per_scrap_img_" + cNumber).html(img_val);
552								$("#per_scrap_msg_" + cNumber).html(scrap_msg);
553								$("#per_scrap_msg_" + cNumber).css('display','');
554								$("#per_scrap_msg_" + cNumber).fadeOut(2000);
555								break;
556				}
557			}
558		}
559	});
560}
561
562
563
564// 탭메뉴 자바스크립트
565happy_tab_menu_now  = new Array();
566function happy_tab_menu(layer, nowNumber)
567{
568	if ( happy_tab_menu_now[layer] == undefined )
569	{
570		happy_tab_menu_now[layer]	= 1;
571	}
572
573	if ( happy_tab_menu_now[layer] == nowNumber )
574	{
575		return false;
576	}
577
578	var obj						= document.getElementById(layer+'_'+ nowNumber);
579	var obj_layer				= document.getElementById(layer+'_layer_'+ nowNumber);
580	var obj_old					= document.getElementById(layer+'_'+ happy_tab_menu_now[layer]);
581	var obj_old_layer			= document.getElementById(layer+'_layer_'+ happy_tab_menu_now[layer]);
582
583	if ( obj.getAttribute("oversrc") != undefined && obj.getAttribute("outsrc") != undefined && obj.src != undefined && obj_old.src != undefined )
584	{
585		obj.src						= obj.getAttribute("oversrc");
586		obj_old.src					= obj_old.getAttribute("outsrc");
587	}
588	else if ( obj.getAttribute("overClass") != undefined && obj.getAttribute("outClass") != undefined && obj.className != undefined && obj_old.className != undefined )
589	{
590		obj.className				= obj.getAttribute("overClass");
591		obj_old.className			= obj_old.getAttribute("outClass");
592	}
593	else
594	{
595		obj_layer.innerHTML			= obj_layer.innerHTML + '<br><font color=red>happy_tab_menu() 함수 구동 오류</font>';
596	}
597
598
599	obj_layer.style.display		= '';
600	obj_old_layer.style.display	= 'none';
601
602	happy_tab_menu_now[layer]	= nowNumber;
603}
604// 탭메뉴 자바스크립트
605
606
607function view_layer( layer_id ) //beancan_UI개편후 디자인을 위한 추가
608{
609	Obj						= document.getElementById(layer_id);
610	Obj.style.display		= Obj.style.display == ''? 'none' : '';
611}

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.