pake
jquery ui dialog, contoh:
<!-- load css jquery ui -->
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/themes/ui-lightness/jquery-ui.css" type="text/css" rel="stylesheet"/>
<!-- load jquery -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<!-- load jquery ui-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
<script type="text/javascript">
function closeDialog(){
$("#div-alert").dialog('close');
$("#div-alert").remove();
}
$(document).ready(function(){
$("#save").click(function(e){
e.preventDefault();
$("body").append('<div id="div-alert">Status Berhasil Diupdate!</div>');
$("#div-alert").dialog();
setTimeout("closeDialog()",3000);
});
});
</script>
<button id="save">Save</button>
pada saat tombol save diklik akan muncul dialog dan akan hilang setelah 3 detik.
ref:
http://jqueryui.com/demos/dialog/