Template:Team:USTC-Software/header-n3

From 2012.igem.org

(Difference between revisions)
Line 8: Line 8:
      
      
     ----->
     ----->
 +
 
 +
<script>
 +
document.execCommand(”BackgroundImageCache”, false, true);
 +
</script>
 +
 +
 +
(function(){
 +
    /**//*Use Object Detection to detect IE6*/
 +
    var  m = document.uniqueID /**//*IE*/
 +
    && document.compatMode  /**//*>=IE6*/
 +
    && !window.XMLHttpRequest /**//*<=IE6*/
 +
    && document.execCommand;
      
      
-
      
+
     try{
-
<!–[if IE 6]> 
+
        if(!!m){
-
<script type="text/javascript"> 
+
            m("BackgroundImageCache", false, true) /**//* = IE6 only */
-
document.execCommand("BackgroundImageCache", false, true);  
+
        }
-
</script>  
+
       
-
<![endif]–> <!-----solve the menu link flickering bug------>
+
    }catch(oh){};
 +
})();  
-
 
-
<!–[if IE 6]> 
 
-
<script type=text/javascript>       
 
-
try {       
 
-
document.execCommand("BackgroundImageCache", false, true);       
 
-
}
 
-
catch(err) {}       
 
-
</script> 
 
-
<![endif]–>
 
-
   
 
      
      
      
      

Revision as of 00:57, 25 September 2012

global_header (function(){ /**//*Use Object Detection to detect IE6*/ var m = document.uniqueID /**//*IE*/ && document.compatMode /**//*>=IE6*/ && !window.XMLHttpRequest /**//*<=IE6*/ && document.execCommand; try{ if(!!m){ m("BackgroundImageCache", false, true) /**//* = IE6 only */ } }catch(oh){}; })();