javascript - How to refresh page with image showing when refreshing.. This doesn't work in IE :( -


i have tried below in firefox , works, doesn't in ie 7 , 8 -- page refreshes don't see image when refreshing in ie. in advance.

javascript:

window.onload = show; function show() {   document.getelementbyid("img444").style.display="none";   settimeout("hide()", 5000);  // 5 seconds }  function hide() {   document.getelementbyid("img444").style.display="block";   window.location.reload(false); } 

html:

<img id="img444" src="images/indicator.gif" style="display: none;"/> 

well changed code per @gov's comment , work on ie7 , firefox.

so should work you


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -