Bonjour.
J'ai une fonction javascript comme ceci.
Sous firefox si je lui passe du 100% en width et height tout marche bien, mais sous IE6, de mettre du 100% fait que cela n'affiche plus rien et génère une erreur.
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
18
19
20
21 initialize: function(element, options) { this.options = Object.extend({ width: '300px', height: '200px', changeTransition: Fx.Transitions.Bounce.easeOut, duration: 1000, mouseOverClass: 'active', activateOnLoad: 'first', useAjax: false, ajaxUrl: '', ajaxOptions: {method:'get'}, ajaxLoadingText: 'Loading...' }, options || {}); this.el = $(element); this.elid = element; this.el.setStyles({ height: this.options.height, width: this.options.width });
Comment faire du 100% dans une fonction javascript et sous IE6 donc?
Merci d'avance
Partager