Bonjour à tous,
Le problème que je rencontre se produit sur Windows 8 avec Firefox 15 à 18.
Windows 8 avec chrome : ok
Windows 8 avec ie : ok
Windows 7 avec Firefox : ok
etc ...
Je n'ai pu testé que sur 1 seul poste sous Windows 8.
Voici l'URL de la page ou est le problème :
http://www.languedoc-roussillon-et-l...e#localisation
L'exemple simple, sous la partie de droite en dessous du cadre propriétaire, il y a des pictos, au survol il y a un changement du backgroundpositionY qui passe par l'appel d'une fonction ci-dessous :
Si rapidement au chargement de la page vous survolez les pictos l'appel se passe bien, par contre une fois le chargement fini l'appel renvoi un joli : TypeError: $(...).backgroundPosition is not a function
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 $.fn.backgroundPosition = function() { $.fn.backgroundPosition = function() { if(arguments != null && arguments.length > 0) { if(typeof($(this).css("background-position")) != "undefined") $(this).css("background-position", arguments[0]); else $(this).css("background-position-x", arguments[0].substr(0, arguments.indexOf(" ")-1)).css("background-position-y", arguments[0].substr(arguments.indexOf(" ")+1)); return $(this); } else if(typeof($(this).css("background-position")) != "undefined") return $(this).css("background-position"); else return $(this).css("background-position-x")+" "+$(this).css("background-position-y"); }; };
Et en inspectant $.fn, on s'aperçoit que la fonction "backgroundPosition" n'éxiste plus.
Et il en est de même pour l'appel aux fonctions gmap3, datepicker .... etc
Si quelqu'un à une idée, je suis preneur.
Partager