Document.exe ccommand ("backgroundimagecache", false, true)

Source: Internet
Author: User

The background image in IE6 will re-send the request instead of using the local cache every time it is used. In particular, the hover background image can obviously feel flickering. Some people have solved this problem by using the following methods:

CSS method:

HTML {filter: expression(document.exe ccommand ("backgroundimagecache", false, true ));}

JS method:

Window. isie = navigator. appname. indexof ("Microsoft") = 0;
If (isie ){
Document.doc umentelement. addbehavior ("# default # userdata ");
Document.exe ccommand ("backgroundimagecache", false, true );
}

But in fact, this bug is conditional, that is, the cache of IE is set to every visit to the page, rather than the default automatically. Basically, only developers can set the cache to update each access check, so this bug does not affect real users (according to the test in IE6 of WINXP SP2, although a network access API may still be called, there is no actual request. The symptom is that the mouse shakes for a very short period of time, but the image does not flash.

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.