[script] 이미지 크게 보기 script
/**
* 이미지 크게 보기
*/
function pop(img) {
var win = window.open('', 'Detail', 'width=0, height=0, menubar=0, toolbar=0, directories=0, scrollbars=1, status=0, location=0, resizable=1');
op="<html><head><title>크게 보기</title></head>";
op+="<body leftmargin='0' topmargin='0'>";
op+="<img src='"+ img.src +"' border='0' style='cursor:pointer' onclick='window.close();' onload='window.resizeTo(this.width+30, this.height+90); window.moveTo( (screen.width-this.width)/2 , (screen.height-this.height)/2-50 )'>";
op+="</body></html>";
win.document.write(op);
}
------------------------------------------------ 사용법 ------------------------------------------------
<img id="i1" width="200" height="120" src='/mvis/jsp/mm/JAMM214.do?workType=VP&mldSeq=<bean:write name="record0" property="mldSeq" />&fileSeq=1' onError="this.style.visibility='hidden'" style="cursor:hand" onclick="pop(this)">