After analysis, we found that the webpage contains code similar to the following:
Analysis: pay special attention to onerror. When the image does not exist, onerror is triggered, while onerror specifies a NoPic.gif image for img. That is to say, if an image exists, pic.gif is displayed. If the image does not exist, noPic.gif is displayed. However, the problem arises. If noPic.gif does not exist, the onerror will be triggered again, resulting in a loop.
NOTE: If an image exists but the network is not smooth, an onerror may also be triggered.
Solution:
First, remove the onerror code, change the onerror code to another, or make sure that the image in the onerror is small enough and exists.
Second:
Copy codeThe Code is as follows:
<Script type = "text/javascript">
<! -
Function nofind (){
Var img = event. srcElement;
Img. src = ".../../sys/common/image/fileoperation/icon/default.gif ";
Img. onerror = null; do not keep beating
}
//->
</Script>
<Td align = "center"> $ {file. name} </td>