웹마스터 팁
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>
제목 | 글쓴이 | 날짜 |
---|---|---|
나만의 미니홈 만들기 ㅡ 메인 기초 설계 .home.php
[12]
![]() | 예뜨락 | 2004.11.17 |
나만의 미니홈 만들기 ㅡ 메인 기초 설계2 .레이아웃 | 예뜨락 | 2004.11.18 |
나만의 미니홈 만들기 ㅡ 메인 기초 설계3 .레이아웃
[2]
![]() | 예뜨락 | 2004.11.19 |
나만의 미니홈 만들기 ㅡ 기초적인 관리 페이지
[3]
![]() | 예뜨락 | 2004.11.20 |
나만의 미니홈 만들기 ㅡ 미니홈 생성 페이지
[3]
![]() | 예뜨락 | 2004.11.20 |
나만의 미니홈 만들기 ㅡ 게시판의 디자인
![]() | 예뜨락 | 2004.11.22 |
나만의 미니홈 만들기 ㅡ 게시판 list.php 파일의 모양새 [6] | 예뜨락 | 2004.11.23 |
나만의 미니홈 만들기 ㅡ list.php , 디비 테이블 생성
[6]
![]() | 예뜨락 | 2004.11.26 |
나만의 미니홈 만들기 ㅡ view.php 파일과 제목링크
[9]
![]() | 예뜨락 | 2004.11.27 |
나만의 미니홈 만들기 ㅡ write.php 파일과 write_ok [5] | 예뜨락 | 2004.11.30 |
실명 진위여부 확인 [10] | piasol | 2004.12.01 |
개판 오분전 라인 그래프 [4] | 미친개 | 2004.12.01 |
'참조'에 관한 간단한 예제 | 플로렐라 | 2004.12.09 |
4. 쿼리문 [6] | 티다 | 2004.12.11 |
나만의 미니홈 만들기 ㅡ메뉴에 게시판 연결
[5]
![]() | 예뜨락 | 2004.12.17 |
IE 에서도 투명 알파값이 적용된 PNG 이미지를 맘껏 활용하자!
[8]
![]() | THE PAPER™ | 2004.12.27 |
"를 그냥 사용하기 [3] | 추천대화상대 | 2005.01.02 |
나만의 미니홈 만들기 ㅡ delete.php 파일 [2] | 예뜨락 | 2005.01.03 |
퍼미션을 보기좋게 구하자! [4] | 플로렐라 | 2005.01.03 |
PHP 왕초보 입문기(총괄)
[4]
![]() | 하나둘 | 2005.01.15 |