|
±Û¾´ÀÌ :
¶ó³ëºñ¾Æ
|
| À°¾Æ »ó½Ä ÄûÁî <script> // À̹ÌÁöÀÇ Å©±â¿¡ µû¶ó »õâÀÇ Å©±â°¡ º¯°æµË´Ï´Ù. Ãâó: ±×´©º¸µå function image_window(img) { var w = img.tmp_width; var h = img.tmp_height; var winl = (screen.width-w)/2; var wint = (screen.height-h)/3; if (w >= screen.width) { winl = 0; h = (parseInt)(w * (h / w)); } if (h >= screen.height) { wint = 0; w = (parseInt)(h * (w / h)); } var js_url = "<script language='JavaScript1.2'> \\n"; js_url += " \\n"; js_url += ""+"script> \\n"; var settings; if (!document.all) { settings ='width='+(w+10)+','; settings +='height='+(h+10)+','; } else { settings ='width='+w+','; settings +='height='+h+','; } settings +='top='+wint+','; settings +='left='+winl+','; settings +='scrollbars=no,'; settings +='resizable=yes,'; settings +='status=no'; win=window.open("","image_window",settings); win.document.open(); win.document.write (" \\n \\n\\n"); var size = "À̹ÌÁö »çÀÌÁî : "+w+" x "+h; win.document.write (""+size+" \\n"); if(w >= screen.width || h >= screen.height) { win.document.write (js_url); var click = "ondblclick='window.close();' style='cursor:move' title=' "+size+" \\n\\n À̹ÌÁö »çÀÌÁî°¡ ȸ麸´Ù Å®´Ï´Ù. \\n ¿ÞÂÊ ¹öÆ°À» Ŭ¸¯ÇÑ ÈÄ ¸¶¿ì½º¸¦ ¿òÁ÷¿©¼ º¸¼¼¿ä. \\n\\n ´õºí Ŭ¸¯ÇÏ¸é ´ÝÇô¿ä. '"; } else var click = "onclick='window.close();' style='cursor:pointer' title=' "+size+" \\n\\n Ŭ¸¯ÇÏ¸é ´ÝÇô¿ä. '"; win.document.write (" \\n"); win.document.write (" \\n\\n"); win.document.write (" \\n"); win.document.write (""); win.document.write (""); win.document.close(); if(parseInt(navigator.appVersion) >= 4){win.window.focus();} } function win_open(url, name, option) { var popup = window.open(url, name, option); popup.focus(); }</script> |
|
|
| | |