function controlmyticon(storeno){
var w = "400";
var h = "400";
var winl = (screen.width - w)/2; ;
var wint = (screen.height - h)/2; ;
var myname = 'controlmyticon';
var mypage = '';
mypage = 'smsemoticon.asp?temp=temp&storeno='+storeno;
winprops = 'height='+h+',width='+w+',top='+wint+',scrollbars=yes,left='+winl
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
(screen.width - w)/2 : 창 위치를 중간으로
'jQuery & JavaScript*' 카테고리의 다른 글
클릭시 설정값 복사 (2) | 2009.03.19 |
---|---|
input text 클릭 시 value 값 삭제(초기화) (0) | 2009.03.19 |
Checkbox 전체선택/해제 (0) | 2009.01.21 |
자식창 닫을 때 부모창 새로고침 (0) | 2009.01.15 |
첨부파일 폼추가 java script (0) | 2008.11.03 |