How to stop GIF animation in Webpage due to hyperlink js discovered

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.