💼 정보 ver1.0
모달창
James Wetzel
2011. 9. 2. 19:57
728x90
반응형
응용편]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>모달 팝업창</title>
<script src="http://code.jquery.com/jquery-1.6.2.min.js" type="text/javascript"></script>
//자신의 환경에 맞게 "jQuery-ModalPOP.js"파일 경로를 수정하세요.
<script src="../../Scripts/jQuery-ModalPOP.js" type="text/javascript"></script>
<style type="text/css">
.dialogCss
{
position:absolute;
left:0;
top:0;
width:440px;
height:200px;
display:none;
z-index:9999;
padding:20px;
background-color:#ffffff;
border:solid thin silver;
border:solid thin silver;
}
</style>
</head>
<body>
<div id="dialog" class="dialogCss">
Simple Modal Window |
<a href="#" id="modalCloseButton" />Close it</a>
</div>
<div id="mask"></div>
<script type="text/javascript">
//마스크 아이디, z-index, 배경색, 배경색 투명도(1~0,1 사이값), 모달창, 모달창 닫기 버튼 아이디)
$.modalStart('mask', '9000', '#fff', '0.6', 'dialog', 'modalCloseButton');
</script>
</body>
</html>
728x90
반응형