카테고리 없음2013. 6. 14. 11:09
javascript의 alert 효과를 jQuery의 Dialog를 사용하여 띄우는 예제입니다.

<!doctype html>

 

<html lang="ko">

<head>

<meta charset="euc-kr" />

<title>jQuery UI Dialog - Default functionality</title>

<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />

<script src="http://code.jquery.com/jquery-1.9.1.js"></script>

<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>

<script>

$(function() {

$( "#dialog" ).dialog();

});

</script>

</head>

<body>


<div id="dialog" title="Basic dialog">

<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>

</div>

 

</body>

</html>

 

 

실행결과

Posted by 아이맥스