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

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: การใช้ indicator jquery ครับ

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

โดย 333822 » 03/10/2012 3:49 am

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

<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 หายไปไม่ได้อะครับ

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

ข้างบน