PageSourceSearch

https://www.barunsesang.co.kr/amlibrary/script/window.js

js barunsesang.co.kr collected 2026-10-02 15:27:53 UTC 4,122 bytes, 121 lines download raw bytes

1// 아이프래임
2function iframe_autoresize(arg) {
3    arg.height = eval(arg.name+".document.body.scrollHeight");
4}
5
6// 공지 팝업창을 띄운다.
7function popUpWindow(htmlvalue,names, width, Height, top, left, scrollbar,resizable) { 
8	if(top == "") top='0';
9	if(left == "") left='0';
10	if(scrollbar == "") scrollbar='no';
11	if(resizable == "") resizable='no';
12	window.open (htmlvalue, names, "scrollbars="+ scrollbar+", resizable="+ resizable+", width=" + width + ", height=" + Height + ",top=" + top + ",left=" + left + ", toolbar=no, location=no, directories=no, status=no, copyhistory=no, menubar=no");
13}
14
15// Get 방식으로 사이트를 이동 시켜준다.
16function goURL(gURL,message) {
17	
18	if(message != "") {
19		if(confirm(message)) {
20			location.href=gURL;
21			return;
22		} else {
23			return;
24		}
25	}
26	
27	document.location=gURL;
28}
29
30
31// Post 방식으로 사이트를 이동 시켜준다.
32function goURLPost(gURL,message) {
33	
34	if(message != "") {
35		if(confirm(message)) {
36			postFormAction(gURL);
37			return;
38		} else {
39			return;
40		}
41	}
42	postFormAction(gURL);
43}
44
45// Get 방식의 URL 을 분석하여 Post 방식의 Form 으로 전송한다.
46function postFormAction(gURL) {
47	tempgURL_array = gURL.split("?");	// 사이트 URL 과 파라메타변수를 분리한다.
48	tmpURL = tempgURL_array[0];		// 사이트 URL
49	tmpPara = tempgURL_array[1];	// 파라메타변수
50	writeform = "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
51	writeform = writeform + "<form name='autopost_form' action='"+tmpURL+"' method='post'>\n";
52	if(tmpPara != "" && tmpPara != null) {
53		tmpPara_array = tmpPara.split("&");	// 파라메타변수 배열
54		for(i=0;tmpPara_array.length > i;i++) {
55			para = tmpPara_array[i];
56			para_array = para.split("=");	// 파라메타의 이름과 값을 나눈다.
57			writeform = writeform + "<input type='hidden' name='"+para_array[0]+"' value='"+para_array[1]+"'>\n";
58		}
59	}
60	writeform = writeform + "</form>\n";
61	writeform = writeform + "<script>document.autopost_form.submit();</script>\n";
62	
63	document.write(writeform);
64}
65
66
67/*
68이미지를 팝업으로 뛰우고 창보다 이미지가 클경우 드래그하여 보기가 가능하다.
69imgpath : 이미지 경로
70wintitle : 이미지 팝업창의 타이틀 이름
71*/
72function popupImageView(imgpath,wintitle) {
73	// 이미지 정보를 가져오기위한 이미지객체 생성
74	var imageobj = new Image();
75	imageobj.src = imgpath;
76	
77	img_width = imageobj.width;
78	img_height = imageobj.height;
79	
80	
81	winhtml = "<html>";
82	winhtml += "<head>";
83	winhtml += "<title>" + wintitle + "</title>";
84	winhtml += "<script>";
85	winhtml += "function winResize(){";
86	winhtml += "	var bodyobj=document.body;";
87	winhtml += "	var imageobj = document.images[0];";
88	winhtml += "	img_width = imageobj.width;";
89	winhtml += "	img_height = imageobj.height;";
90	winhtml += "	rewidth=img_width-bodyobj.clientWidth;";
91	winhtml += "	reheight=img_height-bodyobj.clientHeight-15;";
92	winhtml += "	window.resizeBy(rewidth,reheight);";
93	winhtml += "}";
94	winhtml += "\n";
95	winhtml += "var sx=0;";
96	winhtml += "var sy=0;";
97	winhtml += "document.onmousedown = dset;";
98	winhtml += "function dset() {";
99	winhtml += "	sx = event.x;";
100	winhtml += "	sy = event.y;";
101	winhtml += "}";
102	winhtml += "\n";
103	winhtml += "function imgmove() {";
104	winhtml += "	dx = event.x;";
105	winhtml += "	dy = event.y;";
106	winhtml += "	mx =  sx - dx;";
107	winhtml += "	my =  sy - dy;";
108	winhtml += "	sx =  dx;";
109	winhtml += "	sy =  dy;";
110	winhtml += "	window.scrollBy(mx,my);";
111	winhtml += "}";
112	winhtml += "</"+"script>";
113	winhtml += "</head>";
114	winhtml += "<body style='margin:0' Onload='winResize()'>";
115	winhtml += "<a style='cursor:move' Ondrag='imgmove();'><img src='" + imgpath + "' border=0 OnClick='window.close();'></a></body></html>";
116	
117	winobj = window.open("about:blank","","scrollbars=yes,status=yes,resizable=yes,width="+img_width+",height="+img_height+"");
118	winobj.document.open("text/html", "replace");
119	winobj.document.write(winhtml);
120	winobj.document.close();
121}

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.