웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->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>
제목 | 글쓴이 | 날짜 |
---|---|---|
자동 스크롤 메뉴 (끄기 기능, 무한 스크롤 X) [6] | ☺심심 | 2004.05.02 |
아이프레임 가로스크롤바 없애기 [3] | 백승창 | 2004.05.28 |
어쩌다 나온 깔끔한 그레이 스크롤바.. 흠흠.. [11] | ☺심심 | 2004.06.06 |
페이지 회색스크롤바로 바꾸기 | 편입성공기 | 2004.12.06 |
무지 짧은 소스로 스크롤바를 왼쪽으로 옮겨보자 [4] | 한용 | 2005.11.10 |
아이프레임 스크롤바를 투명하게 | wwolf | 2008.09.21 |
css 정리 파일(한글)
[3]
![]() | 미곰탱 | 2009.01.22 |
[JavaScript] 전체화면으로 페이지 열기 [2] | SM | 2002.02.24 |
[JavaScript] 채널모드로 윈도우 열기 | SM | 2002.02.24 |
[JavaScript] 일반적인 형태의 전체크기 윈도우 열기 | SM | 2002.02.24 |
스크롤바색상바꿔주는프로그램(수정) [3] | 이슈™ | 2002.03.13 |
자동 팝업창띠우기 소스 [4] | 이슈™ | 2002.03.13 |
부드럽게 스크롤바를 따라다니는..+_+ [6] | 키르(絶對) | 2002.06.13 |
개판 오분전 넷 오디오 최종 수정판
[6]
![]() | 미친개 | 2002.07.28 |
원하는 위치에서 스크롤바를 부드럽게 따라다님 [10] | ▩윤미 | 2002.08.20 |
엔지오같은 메뉴 만들기 #2 - Error 수정판 -_-;; [13] | Eccen | 2002.11.12 |
iframe 내용에 맞게 자동으로 크기 조절하기 [36] | 행복한고니 | 2002.11.21 |
요청해오신 레이어 무조건 중앙에 열리기 와 클릭하는 곳에 열리기 두가지 소스입니다. [4] | 모라미 | 2003.02.25 |
메뉴이동입니다. [5] | 데빌스텔스 | 2003.04.20 |
HTML경고창 [수정#2] [14] | [락위듀]아렌티 | 2003.07.26 |