Skip to content
Extraits de code Groupes Projets
Valider afe84d48 rédigé par Fil's avatar Fil
Parcourir les fichiers

appliquer aussi le fix MSIE de mister-pixel...

appliquer aussi le fix MSIE de mister-pixel http://www.mister-pixel.com/#Content__state=is_that_simple
parent b7264e9a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -1263,6 +1263,7 @@ function fin_page() ...@@ -1263,6 +1263,7 @@ function fin_page()
AND preg_match('/MSIE /i', $_SERVER['HTTP_USER_AGENT']); AND preg_match('/MSIE /i', $_SERVER['HTTP_USER_AGENT']);
$fix_png = $msie $fix_png = $msie
? "<script type='text/javascript'><!-- ? "<script type='text/javascript'><!--
try { document.execCommand('BackgroundImageCache', false, true); } catch(err) {};
if (window.jQuery && jQuery.browser.msie) jQuery.getScript( '" if (window.jQuery && jQuery.browser.msie) jQuery.getScript( '"
.find_in_path('jquery.iepnghack.1.5.js') .find_in_path('jquery.iepnghack.1.5.js')
."' , function() { jQuery('img').pngfix(); } ); ."' , function() { jQuery('img').pngfix(); } );
......
...@@ -403,16 +403,22 @@ function f_msie ($texte) { ...@@ -403,16 +403,22 @@ function f_msie ($texte) {
AND preg_match('/MSIE /i', $_SERVER['HTTP_USER_AGENT']); AND preg_match('/MSIE /i', $_SERVER['HTTP_USER_AGENT']);
if (!$msie) return $texte; if (!$msie) return $texte;
// Si jQuery n'est pas la on ne fixe pas les PNG // Comme MSIE est goret, on n'a pas honte d'inserer comme un goret
// et comme MSIE est goret, on n'a pas honte d'inserer comme un goret
// en fin de page // en fin de page
// fixer les images background
$texte .= "<script type='text/javascript'><!--
try { document.execCommand('BackgroundImageCache', false, true); } catch(err) {};
// --></script>\n";
// Si jQuery n'est pas la on ne fixe pas les PNG
if (strpos(strtolower($texte), 'jquery.js') if (strpos(strtolower($texte), 'jquery.js')
AND strpos(strtolower($texte), '.png') AND strpos(strtolower($texte), '.png')
AND true /* ... autres tests si on veut affiner ... */) { AND true /* ... autres tests si on veut affiner ... */) {
$texte .= $texte .=
"<script type='text/javascript'><!-- "<script type='text/javascript'><!--
if (window.jQuery && jQuery.browser.msie) jQuery.getScript( '".find_in_path('jquery.iepnghack.1.5.js')."' , function() { jQuery('img').pngfix(); } ); if (window.jQuery && jQuery.browser.msie) jQuery.getScript( '".find_in_path('jquery.iepnghack.1.5.js')."' , function() { jQuery('img').pngfix(); } );
// --></script>"; // --></script>\n";
} }
return $texte; return $texte;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter