/home/mjc1/public_html/manage/alditor/view_img.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<html>
<head>
        <title>?</title>
        <meta http-equiv=Content-Type content=text/html; charset=EUC-KR>
        <META http-equiv=imagetoolbar content=no>
</head>

<script language="javascript"> 
function processKey() 

        if( (event.ctrlKey == true && (event.keyCode == 78 || event.keyCode == 82)) || 
        (event.keyCode >= 112 && event.keyCode <= 123) || event.keyCode == 8) 
            { 
        event.keyCode = 0; 
        event.cancelBubble = true; 
        event.returnValue = false; 
            } 


document.onkeydown = processKey;
</script>

<script LANGUAGE=JavaScript>

var isNav4, isIE4;
var windowX, windowY;
var bLargeImage = 0;
var x,y;

if (parseInt(navigator.appVersion.charAt(0)) >= 4)
{
    isNav4 = (navigator.appName == "Netscape") ? 1 : 0;
    isIE4 = (navigator.appName.indexOf("Microsoft") != -1) ? 1 : 0;
}

function fitWindowSize()
{
    if (isNav4) {
        window.innerWidth = document.layers[0].document.images[0].width;
        window.innerHeight = document.layers[0].document.images[0].height;
    }
    if (isIE4) {
        window.resizeTo(500, 500);
        width = 500 - (document.body.clientWidth -  document.images[0].width);
        height = 500 - (document.body.clientHeight -  document.images[0].height)
        windowX = (window.screen.width-width)/2;
        windowY = (window.screen.height-height)/2;
        if(width>screen.width){
            width = screen.width;
            windowX = 0;
            bLargeImage = 1;
        }
        if(height>screen.height-50){
            height = screen.height-50;
            windowY = 0;
            bLargeImage = 1;
        }
        x = width/2;
        y = height/2;
        window.moveTo(windowX,windowY);
        window.resizeTo(width, height);
    }
}

function move()
{
    if(bLargeImage)
    window.scroll(window.event.clientX - 50,window.event.clientY -50);
}

</script>

<body oncontextmenu="return false" ondragstart="return false">
<body onLoad="fitWindowSize()" leftmargin=0 marginwidth=0 topmargin=0 marginheight=0>
<A href=# onclick=window.close()><img src=<?=$_GET['file']?> border=0></a><br>&nbsp;
</body>
</html>