웹마스터 팁
page_full_width">
HTML경고창 [수정#2]
2003.07.26 16:02
설명
자바스크립트 경고창을 html화 한것.
미리보기
테스트
사용방법
로딩
<script language="JavaScript">
window.showModalDialog("경로","이름","옵션");
</script>
링크
@a onclick='JavaScript:window.showModalDialog('경로','이름','옵션');'@새창테스트@/a@
양끝의 @@를 <>로 변경해주세요.
옵션
사용방법예제 ('경로','이름','dialogHeight=200px; dialogWidth=200px')
dialogHeight:sHeight Sets the height of the dialog window (see Remarks for default unit of measure).
세로 길이 // 단위에는 px이나 %가 사용가능하다 // 기본값 %
dialogWidth:sWidth Sets the width of the dialog window (see Remarks for default unit of measure).
가로 길이 // 단위에는 px이나 %가 사용가능하다 // 기본값 %
dialogLeft:sXPos Sets the left position of the dialog window relative to the upper-left corner of the desktop.
가로 너비 위치 // 단위에는 px이나 %가 사용가능하다 // 기본값 %
dialogTop:sYPos Sets the top position of the dialog window relative to the upper-left corner of the desktop.
창의 높이 위치 // 단위에는 px이나 %가 사용가능하다 // 기본값 %
center:{ yes | no | 1 | 0 | on | off } Specifies whether to center the dialog window within the desktop. The default is yes.
창의 중앙 위치 여부 // 기본값 Yes
dialogHide:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window is hidden when printing or using print preview. This feature is only available when a dialog box is opened from a trusted application. The default is no.
인쇄나 미리보기시 표시 여부 // 기본값 No
edge:{ sunken | raised } Specifies the edge style of the dialog window. The default is raised.
안쪽 공간 여부 // sunken=있음, raised=없음 // 기본 값 raised
help:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays the context-sensitive Help icon. The default is yes.
도움말표시 여부 // 기본 값 Yes
resizable:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window has fixed dimensions. The default is no.
창 넓이 조정 여부 // 기본 값 No
scroll:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays scrollbars. The default is yes.
스크롤바 여부 // 기본 값 Yes
status:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays a status bar. The default is yes for untrusted dialog windows and no for trusted dialog windows.
상태표시줄 여부 // 기본 값 Yes
unadorned:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays the border window chrome. This feature is only available when a dialog box is opened from a trusted application. The default is no.
창틀 여부 // 기본 값 No // 웹브라우져에선 적용안됨.
자바스크립트 경고창을 html화 한것.
미리보기
테스트
사용방법
로딩
<script language="JavaScript">
window.showModalDialog("경로","이름","옵션");
</script>
링크
@a onclick='JavaScript:window.showModalDialog('경로','이름','옵션');'@새창테스트@/a@
양끝의 @@를 <>로 변경해주세요.
옵션
사용방법예제 ('경로','이름','dialogHeight=200px; dialogWidth=200px')
dialogHeight:sHeight Sets the height of the dialog window (see Remarks for default unit of measure).
세로 길이 // 단위에는 px이나 %가 사용가능하다 // 기본값 %
dialogWidth:sWidth Sets the width of the dialog window (see Remarks for default unit of measure).
가로 길이 // 단위에는 px이나 %가 사용가능하다 // 기본값 %
dialogLeft:sXPos Sets the left position of the dialog window relative to the upper-left corner of the desktop.
가로 너비 위치 // 단위에는 px이나 %가 사용가능하다 // 기본값 %
dialogTop:sYPos Sets the top position of the dialog window relative to the upper-left corner of the desktop.
창의 높이 위치 // 단위에는 px이나 %가 사용가능하다 // 기본값 %
center:{ yes | no | 1 | 0 | on | off } Specifies whether to center the dialog window within the desktop. The default is yes.
창의 중앙 위치 여부 // 기본값 Yes
dialogHide:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window is hidden when printing or using print preview. This feature is only available when a dialog box is opened from a trusted application. The default is no.
인쇄나 미리보기시 표시 여부 // 기본값 No
edge:{ sunken | raised } Specifies the edge style of the dialog window. The default is raised.
안쪽 공간 여부 // sunken=있음, raised=없음 // 기본 값 raised
help:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays the context-sensitive Help icon. The default is yes.
도움말표시 여부 // 기본 값 Yes
resizable:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window has fixed dimensions. The default is no.
창 넓이 조정 여부 // 기본 값 No
scroll:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays scrollbars. The default is yes.
스크롤바 여부 // 기본 값 Yes
status:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays a status bar. The default is yes for untrusted dialog windows and no for trusted dialog windows.
상태표시줄 여부 // 기본 값 Yes
unadorned:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays the border window chrome. This feature is only available when a dialog box is opened from a trusted application. The default is no.
창틀 여부 // 기본 값 No // 웹브라우져에선 적용안됨.
댓글 14
-
holies
2003.07.26 20:36
이거... IE만 되나요...? 지원되는 브라우저가...? -
stylebiz
2003.07.26 20:40
우와 이거 정말 좋은데... 지원되는 브라우저가? -
술도짱
2003.07.26 21:55
showModalDialog 를 showModelessDialog 로 바꿔주면 부모창을 사용할수도 있죠. -
뒹굴리스트
2003.07.28 00:29
편의상 제가 태그 임의 수정하였습니다 :) -
[포터]아렌티
2003.07.27 15:26
익스플로러 4.0이상입니다. -
[포터]아렌티
2003.07.28 11:45
뒹굴리스트 // 정말 고맙습니다.
그런데 밑의 테스트 테그는.. -__-;
미리보기 입니다.; -
TheMics
2003.07.29 15:00
하나포스 홈페이지에서 쓰이고 있죠;ㅁ; -
[pro]인재
2003.07.29 15:01
앗 대화상자는 http://v4.windowsupdate.microsoft.com/ko/default.asp에서 사용되는거;;(패치 받을때);; -
뒹굴리스트
2003.07.30 23:40
수정하였습니다 :D -
밤바
2003.07.30 13:22
움.. ie에만 되는군여.. -
[아틀]아렌티
2003.07.30 16:07
뒹굴리스트 // 수정했어요 한번만 더.. 수정좀 해주세요. -
마지막성지
2003.10.21 21:16
안되는데요요욧--
이상하네요 -
[락위듀]아렌티
2004.07.21 18:05
지금 보니까 테스트가 잘 안되는데 태그연습장이나 HTML로 저장해서 보셔도 됩니다 ^^% -
나준혁
2004.09.26 18:53
<b>사랑합니다.</b>