First of all, the occurrence of this bug, the page has
Copy Code code as follows:
<a href= "javascript:void (0)" onclick= "document.getElementById (' current '). src= ' images/001.jpg '; >
So a label, onclick in the JS code is to change the ID of the IMG tag of the SRC attribute, to achieve the dynamic switch picture effect. But unfortunately: IE is dynamically changing the path of the picture, but the picture is not displayed, the right button "display picture" to see the change after the picture, I do not know what the reason, but it is said to be <a href= "javascript:void (0)" > or <a href= "#" > Using a label like this does not prevent a tag from finally triggering a behavior, cause IE6 will mistakenly think that the page is refreshed or redirected, and that all current connections are interrupted, so that the load of the new picture is aborted (not true or false), whether the reason is true or false, Let's talk about the solution here.
Easy way to fix it:
Copy Code code as follows:
<a href= "javascript:void (0)" onclick= "document.getElementById (' current '). src= ' images/001.jpg '; return false; >;
is to add return false after the code;