的JS腳本:jQuery文檔()和Internet Explorer問題
function ShowUploadingAnimation()
{
$('#info_msg').html("<div style=\"padding-top: 15px; height: 50px;\" align=\"center\"><img id=\"uploading-img\" /></div>");
$("#uploading-img").attr({ src: "images/uploading.gif", alt: "Uploading" });
}
和HTML用法:
<input type="submit" value="Upload" onclick="ShowUploadingAnimation();">
<div id="info_msg"></div>
所以我的問題是:這種方法在Firefox中工作正常,但在Internet Explorer的gif文件被加載,但它不是動畫,只是靜態的...每次點擊按鈕時只顯示一個隨機幀。有什麼建議麼?
這是使用火箭筒殺死蒼蠅 – 2009-07-06 09:33:21