Javascript et IE6
Posté : 05 sept. 2008, 14:29
Bonjour, j'ai un code javascript qui fonctionne parfaitement sous Mozilla, Opera et Safari, à 50% sou IE7 (il ne gère pas le reload sur un onclick) et carrement pas sous IE6 
Le voici :
si quelqu'un pouvait bien m'aiguiller sur la fonction qui n'est pa géré par I6, ce serait super.
J'ai deja regardé du côté du getElementById que je devrais remplacer par getObjectById mais ça ne change rien...
Le voici :
Code : Tout sélectionner
Fx.Properties = Fx.Styles.extend({
increase: function(){for ( var p in this.now) this.element[p] = this.now[p]; }
});
Fx.FlyingScroller = Fx.Properties.extend({
initialize: function(el, options){
this.parent(el, options);
this.options = Object.extend(this.options || {}, Object.extend({
paddingLeft: 0,
paddingTop: 0
}, options || {}));
},
toElement: function(el, paddingLeft, paddingTop){
this.goTo(el.offsetLeft - (paddingLeft || this.options.paddingLeft || 0), el.offsetTop - (paddingTop || this.options.paddingTop || 0));
},
goTo: function(x, y){
this.custom({
'scrollTop': [this.element.scrollTop, y]
})
}
});
window.onload=function(){
var objet = document.getElementById(\"tile-inner\");
}si quelqu'un pouvait bien m'aiguiller sur la fonction qui n'est pa géré par I6, ce serait super.
J'ai deja regardé du côté du getElementById que je devrais remplacer par getObjectById mais ça ne change rien...