PageSourceSearch

https://www.coppjournal.org/journal/js/script.js

js coppjournal.org collected 2026-10-08 03:05:17 UTC 4,887 bytes, 180 lines download raw bytes

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

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.