Home >Web Front-end >HTML Tutorial >网页图片刷新闪烁解决办法_html/css_WEB-ITnose

网页图片刷新闪烁解决办法_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:31:122866browse

近日, 修改公司设备的应用固件, 发现视频以图片刷新方式显示的时候在IE下会闪烁。

经查阅资料, 修改后不再闪烁,附上代码

 1 <script> 2   function onloadImage() 3     { 4       var bufferImage = new Image(); 5       bufferImage.src = "这里是图片的地址"; 6       document.getElementById("image").src = bufferImage.src; 7       window.setTimeout(onloadImage(),100); 8     } 9 </script>10 11     <td>12       <img  id="image" alt="网页图片刷新闪烁解决办法_html/css_WEB-ITnose" >13     </td>

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn