preLoad的图片在长时间不使用后会被IE踢出缓存
看看下面这个
<script>
function show(obj) {
arr = ["inline","none"];
if(event.type=="mouseover") {
obj.children[0].style.display=arr[1];
obj.children[1].style.display=arr[0];
} else {
obj.children[0].style.display=arr[0];
obj.children[1].style.display=arr[1];
}
}
</script>
<span onmouseover="show(this)" onmouseout="show(this)"><img src="http://expert.csdn.net/images/jspd_wdzx_flgg.gif" width="50" height="50"><img src="http://expert.csdn.net/images/jspd_wdzx_sqgg_ad.gif" style="display:'none'" width="50" height="50"></span>