หน้า 1 จากทั้งหมด 1

การใช้ indicator jquery ครับ

โพสต์แล้ว: 03/10/2012 3:49 am
โดย 333822

โค้ด: เลือกทั้งหมด

<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<meta charset="utf-8">

<img id="indicator" src="progressbar_green.gif" border="1" alt="Loading. . ." style="display:none"/>
<script>
$(function(){
$("#btn1").click(function(){
$("#indicator").show();
$("#div1").load("test_num.php");

});
});
</script>
</head>

<body>
<div id="div1"></div>
<input type="button" value="Click" id="btn1">
</body>
</html>
หลังจากเรียกข้อมูลจากไฟล์ test_num.php มาที่ div1 แล้ว ผมเขียนให้ indicator หายไปไม่ได้อะครับ

รบกวนด้วยนะครับ