Home > Web Front-end > JS Tutorial > body text

I just discovered the solution to the hyperlink js that causes the GIF animation in the web page to stop_javascript skills

WBOY
Release: 2016-05-16 19:08:14
Original
966 people have browsed it

In fact, this was also a problem that gave me a headache. I couldn't find the reason at the time. Later I found out that it was a bug in the IE6 browser, but I didn't pay attention to this problem anymore.
Today I found on Blue Classic that some netizens have encountered the same problem, and the responders below don’t seem to know what caused it. I feel that there are still many friends who will encounter this problem. So here is an explanation of the reason for this bug. I hope it will be useful to everyone!

The code statements that cause GIF to stop are generally in the following form:

Copy code The code is as follows:

If your gif suddenly stops, please check your code Is there a statement call like the one above!
Although it is allowed to write js statements directly on the href attribute of the link, sometimes it will cause all the page gif animation to stop.

Therefore, it is recommended that it is more appropriate to write js on the event of the element, such as
Copy code The code is as follows:

That’s it Avoid the problem of gif stopping.​
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template