[問題]jquery 進度條跑到100%之後 顯示圖片
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>test</title>
<link rel="stylesheet"
href="../jquery-ui-themes-1.11.4/themes/sunny/jquery-ui.css"/>
<script src="../jquery-ui-1.11.4/external/jquery/jquery.js"></script>
<script src="../jquery-ui-1.11.4/jquery-ui.js"></script>
<script>
$(function() {
$( "div#progressbar" ).progressbar ({
change : function (event)
{
var value = $( "div#progressbar").progressbar ("value");
$("#percent").html (value + " %");
}
});
var value = 0;
var timer = setInterval (function ()
{
$( "div#progressbar" ).progressbar ("value", value);
value++;
if (value > 100) clearInterval (timer);
}, 10);
});
</script>
</head>
<body>
<div id="progressbar"></div>
<div id =percent style=text-align:center>0</div>
</body>
</html>
請問一下如果我想要在跑完這個進度條之後
然後在頁面上顯示我想要的圖片
應該加入甚麼語法
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 163.17.133.58
※ 文章網址: https://www.ptt.cc/bbs/Ajax/M.1434943875.A.ECE.html
→
06/22 12:25, , 1F
06/22 12:25, 1F
→
06/22 12:26, , 2F
06/22 12:26, 2F
→
06/22 12:26, , 3F
06/22 12:26, 3F
→
06/22 12:26, , 4F
06/22 12:26, 4F
→
06/22 12:32, , 5F
06/22 12:32, 5F
→
06/22 12:33, , 6F
06/22 12:33, 6F
推
11/01 22:13, , 7F
11/01 22:13, 7F
→
11/01 22:13, , 8F
11/01 22:13, 8F
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章
-10
17