タイトルが示すように.. IE で動作させる方法はありますか?
私は使用しています:
document.getElementById('loadingImage').style.visibility='visible';
為に
<img id="loadingImage" src="images/25.gif" style="padding:0px;margin-bottom:-7px;visibility:hidden;">
しかし、それは機能していません。ありがとう。
編集: このアラートのリストで呼び出され、 ページをリロードして、ファイル拡張子のアップロードスクリプトを検出します:
function TestFileType( fileName, fileTypes ) {
if (!fileName) return;
dots = fileName.split(".")
//get the part AFTER the LAST period.
fileType = "." + dots[dots.length-1];
if (fileTypes.join(".").indexOf(fileType) != -1) {
document.getElementById('loadingImage').style.visibility='visible';
return true;
} else {
alert('Please select (.w3g) file only!');
return false;
}
}
と
<input name="replay_file" id="replay_file" type="file" accept=".w3g*"/>
<input type="submit" id="upload_file" value="Upload" name="uploadReplay" onClick="return TestFileType(this.form.replay_file.value, ['w3g','.w3g']);" />
<img id="loadingImage" src="images/25.gif" style="padding:0px;margin-bottom:-7px;visibility:hidden;">
PS: 他の質問はあまり関係がなかったので、これは重複した質問ではありません。