In fact, this is also a problem that once gave me a headache. At that time, I could not find the cause. Later I learned that this was a bug in the Internet Explorer 6, but I did not pay attention to it later.
Today, in the blue classic, I found that some netizens encountered the same problem, and the respondents below seem to be not quite clear about what caused the problem. I still feel that many friends may encounter this problem. So I want to explain the cause of this bug to everyone!
The Code statements that cause the GIF to stop are generally in the following format:
Copy codeThe Code is as follows:
<A href = "javascript: function call or js statement"> hyperlink </a>
If your gif suddenly stops, check whether your code has a class called with the preceding statement!
Although it is allowed to write js statements directly on the href attribute of the link, sometimes the GIF animation on the page stops.
Therefore, it is recommended that js should be written on the element event, as shown in figure
Copy codeThe Code is as follows:
<A onclick = "function call or js statement; return false" href = "#"> hyperlink </a>
In this way, you can avoid the gif stop problem.