PageSourceSearch

https://www.en-journal.org/journal/js/script.js

js en-journal.org collected 2026-10-06 09:26:29 UTC 4,949 bytes, 179 lines download raw bytes

1function Journal_Frm(f, vol, num, sm)
2{
3	f.action = "list.html";
4	if (f.pn.value) {
5		if (vol != undefined) f.s_v.value = vol;
6		if (num != undefined) f.s_n.value = num;
7		if (sm) f.sm.value = sm;
8		f.submit();
9	}
10}
11
12function Select_check()
13{
14	var multi = document.getElementsByName("multi[]");
15
16	for(var i = 0; i < multi.length; i++)
17	{
18		if(multi[i].checked == true) break;
19	}
20
21	if(i == multi.length)
22	{
23		alert("리스트선택을 하지 않으셨습니다.");
24		return;
25	}
26	else
27	{
28		document.Journal_form.action="view.html";
29		document.Journal_form.submit();
30	}
31}
32
33function popen(url,name,w,h,scroll,pos,res) { // (경로,이름,가로,세로,스크롤유무,위치,리사이즈)
34
35	if (!scroll) scroll = "yes";
36	if (!pos) pos = "center";
37	if (!res) res = "no";
38
39	switch (pos) {
40		case 'topleft' :
41			LeftPosition = 0;
42			TopPosition = 0;
43			break;
44		case 'center' :
45			LeftPosition = (screen.width) ? (screen.width - w) / 2 : 100;
46			TopPosition = (screen.height) ? (screen.height - h - 100) / 2 : 100;
47			break;
48		case 'bcenter' :
49			if (!!(window.attachEvent && navigator.userAgent.indexOf('Opera') === -1)) { //hacked together for IE browsers
50				TopPosition = (window.screenTop - 120) + ((((document.documentElement.clientHeight + 120) / 2) - (h / 2)));
51				LeftPosition = window.screenLeft + ((((document.body.offsetWidth + 20) / 2) - (w / 2)));
52			} else {
53				TopPosition = window.screenY + (((window.outerHeight / 2) - (h / 2)));
54				LeftPosition = window.screenX + (((window.outerWidth / 2) - (w / 2)));
55			}
56			break;
57		case "random" :
58			LeftPosition = (screen.width) ? Math.floor(Math.random() * (screen.width - w)) : 100;
59			TopPosition = (screen.height) ? Math.floor(Math.random() * ((screen.height - h) - 75)) : 100;
60			break;
61		default :
62			LeftPosition=0;
63			TopPosition=0;
64			break;
65	}
66	var settings = 'width=' + w + ',height=' + h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scroll + ',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=' + res;
67	win = window.open(url,name,settings);
68	if (win.focus) win.focus();
69}
70
71
72// 컨펌메세지 출력 후 이동
73function conf_url(msg,murl) {
74	if(confirm(msg)) window.location = murl;
75}
76
77
78//-----------------------E-mail 주소확인----------------------------
79function isEmail(str) {
80	var reg = /^[A-Za-z0-9_\-]+([.][A-Za-z0-9_\-]+)*[@][A-Za-z0-9_\-]+([.][A-Za-z0-9_\-]+)+$/;
81	if (reg.test(str) == true) {
82		return true;
83	} else {
84		return false;
85	}
86}
87
88
89// 2014-04-29 메인화면 메일링 등록시 사용
90function milling_SendChk() {
91	var milling_Name = document.getElementById("milling_Name");
92	var milling_Email = document.getElementById("milling_Email");
93
94	if (milling_Name.value == '') {
95		alert('Please enter your Name.');
96		milling_Name.focus();
97		return false;
98	}
99
100	if(!milling_Email.value) {
101		alert("Please enter your e-mail address.");
102		milling_Email.focus();
103		return false;
104	} else {
105		chk = isEmail(milling_Email.value);
106
107		if (chk == false)
108		{
109			alert("You did not enter a valid e-mail address.");
110			milling_Email.select();
111			return false;
112		}
113	}
114
115	var sd_name = milling_Name.value;
116	var sd_email = milling_Email.value;
117
118	//jQuery
119	jQuery.ajax({
120		type:"get",
121		url:"/mailling/milling_update.rang?sd_name=" + sd_name + "&sd_email="+ sd_email,
122		success:function(msg){
123			var el = msg.split("||");
124			if(!el[1]) el[1] = '';
125			val = el[0];
126
127			switch (val) {
128				case "Y":
129					msg = "success!";
130
131					milling_Name.value = "";
132					milling_Email.value = "";
133				break;
134
135				case "D":
136					msg = "The email address has already been registered!";
137				break;
138
139				default:
140					msg = "failure!";
141			}
142
143			alert(msg);
144
145		}, error: function(xhr,status,error){
146			alert(error);
147		}
148	});
149}
150
151jQuery(document).ready(function() {
152	jQuery('.tooltip-img').hover(function(){ 
153		var fn_no = jQuery(this).attr("href");
154		if (fn_no.substring(0,2)=="#B"){ // 테이블
155				//브라우저가 title속성의 값을 기본적 툴팁으로 보여주기 때문에 방지를 위해 값을 공백으로 처리
156                jQuery(this).attr("title","");                 
157               
158                var tempTitle = jQuery(fn_no).html();
159
160                //영역 생성				
161                jQuery("body").append("<div id='tooltip_reference'></div>");
162                jQuery("#tooltip_reference").html(tempTitle);
163                
164                //위치 구하기
165                var pagex = jQuery(this).offset().left - 0;
166                var pagey = jQuery(this).offset().top - jQuery("#tooltip_reference").innerHeight();
167                           
168                jQuery("#tooltip_reference").css({left:pagex+"px", top:pagey+"px"}).fadeIn(500);
169		}		
170	 },function(){
171		  jQuery('#tooltip_reference').hover(function(){ 
172		  },function(){
173			  tempTitle ="";
174			  jQuery(this).attr("title",tempTitle);                
175			  jQuery("#tooltip_reference").remove(); //마우스커서가 떠나면 툴팁영역 제거
176
177		  })		
178	 })
179});

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.