bonjour voila j 'ai un prob je veux chnager le click to hover merci pour votre
aide voila le code ligne 435 :

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
addPlayerControls: function (b, a, d) {
        if (!d) {
            d = 'click'
        }
        for (var c = 0; c < a.length; c++) {
            a[c].addEvent(d, this[b].bind(this, [false]))
        }
    },
    addItemWalkers: function (b, a) {
        if (!a) {
            a = 'click'
        }
        for (var d = 0; d < b.length; d++) {
            b[d].addEvent(a, this.walk.pass([d, false, false], this))
        }
    },
j'ai chnager click par onmouseover ça donne rien

voila tous le code

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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
var slideshow_sp2 = new Class({
    Implements: [Options, Events],
    options: {
        transition: 'cover-inplace-fade',
        size: {
            width: 640,
            height: 360
        },
        interval: 5000,
        fxOptions: {},
        walkers: {
            container: false,
            depth: 100,
            wmode: 'vertical',
            mouse_wheel: true,
            display: 3
        },
        descriptions: {
            items: false,
            position: 1,
            duration: 400,
            descmode: 'vertical'
        }
    },
    initialize: function (b, a) {
        this.setOptions(a);
        this.container = $(b);
        this.items = this.container.getChildren();
        if (this.items.length > 1) {
            this.current_item_index = 0;
            this.preceding_item_index = false;
            this.play_timer = false;
            this.play_right_running = false;
            this.play_left_running = false;
            this.transition = false;
            this.fx = false;
            this.fxs = [];
            this.fxs_mix = {};
            this.ready = [];
            this.build();
            this.fireEvent('onInitialized')
        }
    },
    build: function () {
        var b = {
            display: 'block',
            margin: 0,
            padding: 0
        }, a;
        this.container.setStyles($merge(b, {
            overflow: 'hidden'
        }));
        if (this.container.getStyle('position') != 'absolute') {
            this.container.setStyle('position', 'relative')
        }
        for (a = 0; a < this.items.length; a++) {
            this.items[a].setStyles(b);
            this.fxs[a] = false;
            this.ready[a] = true
        }
        this.hidePrecedingitem = function () {
            if (this.preceding_item_index !== false) {
                this.items[this.preceding_item_index].setStyle('display', 'none')
            }
        }.bind(this);
        this.setTransition(this.options.transition);
        if (this.options.walkers.container) {
            this.walkers = {};
            this.walkers.items = this.options.walkers.container.getChildren();
            this.walkers.container = new Element('div').adopt(this.walkers.items).inject(this.options.walkers.container);
            this.walkers.depth = this.options.walkers.wmode == 'horizontal' ? this.options.walkers.container.getWidth() : this.options.walkers.container.getHeight();
            if (this.options.walkers.mouse_wheel) this.options.walkers.container.addEvent('mousewheel', this.mouseWheelListener.bindWithEvent(this));
            if (this.options.walkers.wmode == 'horizontal') {
                this.options.walkers.container.setStyles({
                    'width': (this.options.walkers.depth * this.options.walkers.display) + 'px',
                    'overflow': 'hidden'
                });
                this.walkers.container.setStyles({
                    'position': 'absolute',
                    'left': '0'
                })
            } else {
                this.options.walkers.container.setStyles({
                    'height': (this.options.walkers.depth * this.options.walkers.display) + 'px',
                    'overflow': 'hidden'
                });
                this.walkers.container.setStyles({
                    'position': 'absolute',
                    'top': '0'
                })
            }
            this.wheel_index = false;
            this.addItemWalkers(this.walkers.items)
        }
        if (this.options.descriptions.items) {
            this.descriptions_fxs = [];
            if (this.options.descriptions.descmode == 'horizontal') {
                this.depth1 = this.options.size.width;
                this.depth2 = this.options.descriptions.items[0].getWidth();
                this.orientation = 'right'
            } else {
                this.depth1 = this.options.size.height;
                this.depth2 = this.options.descriptions.items[0].getHeight();
                this.orientation = 'top'
            }
            for (a = 0; a < this.options.descriptions.items.length; a++) {
                if (this.options.descriptions.descmode == 'horizontal') {
                    this.options.descriptions.items[a].setStyles({
                        'position': 'absolute',
                        'right': this.depth1 + 'px',
                        'z-index': this.items.length + a
                    }).inject(this.container)
                } else {
                    this.options.descriptions.items[a].setStyles({
                        'position': 'absolute',
                        'top': this.depth1 + 'px',
                        'z-index': this.items.length + a
                    }).inject(this.container)
                }
                this.descriptions_fxs[a] = new Fx.Tween(this.options.descriptions.items[a], {
                    duration: this.options.descriptions.duration,
                    property: this.orientation
                })
            }
            if (this.options.descriptions.position == 3) {
                this.depth2 = this.depth1
            } else if (this.options.descriptions.position == 2) {
                this.depth2 = (this.depth1 + this.depth2) / 2
            }
            this.descriptions_fxs[0].start(this.depth1 - this.depth2)
        }
    },
    setSize: function (b) {
        var a = {
            width: 'horizontal',
            height: 'vertical'
        }, d, c, e;
        if (this.fx) {
            this.fx.cancel()
        }
        for (d in b) {
            c = b[d];
            for (e = 0; e < this.items.length; e++) {
                this.items[e].setStyle(d, c + 'px')
            }
            this.container.setStyle(d, c + 'px');
            if (this.transition.type == 'slide') {
                if (this.transition.direction == a[d]) {
                    c *= this.items.length
                }
                this.subcontainer.setStyle(d, c + 'px')
            }
        }
        this.options.size = b;
        this.displayItem(this.current_item_index, this.preceding_item_index, true)
    },
    setTransition: function (b) {
        var a;
        b = b.split('-').associate(['type', 'direction', 'additional']);
        if (!b.additional) {
            b.additional = ''
        }
        if (this.transition === false || this.transition.type != b.type || this.transition.direction != b.direction || this.transition.additional != b.additional) {
            if (b.type == 'slide') {
                if (!this.subcontainer) {
                    this.subcontainer = new Element('div');
                    for (a = 0; a < this.items.length; a++) {
                        this.items[a].setStyles({
                            'display': 'block',
                            'position': 'static',
                            'left': 0,
                            'top': 0,
                            'opacity': 1,
                            'float': 'none'
                        }).inject(this.subcontainer)
                    }
                    this.subcontainer.inject(this.container);
                    this.subcontainer.setStyles({
                        position: 'absolute',
                        margin: 0,
                        padding: 0,
                        left: 0,
                        top: 0
                    });
                    this.fx = new Fx.Tween(this.subcontainer)
                } else if (this.fx) {
                    this.fx.cancel()
                }
                if (b.direction == 'horizontal') {
                    this.subcontainer.setStyle('top', 0)
                } else {
                    this.subcontainer.setStyle('left', 0)
                }
                if (b.direction == 'horizontal') {
                    for (a = 0; a < this.items.length; a++) {
                        this.items[a].setStyle('float', 'left')
                    }
                }
            } else {
                if (this.subcontainer) {
                    for (a = 0; a < this.items.length; a++) {
                        this.items[a].inject(this.container)
                    }
                    this.subcontainer.dispose();
                    this.subcontainer = false
                }
                for (a = 0; a < this.items.length; a++) {
                    this.items[a].setStyles({
                        'opacity': 1,
                        'position': 'absolute',
                        'float': 'none'
                    })
                }
            }
            this.transition = b;
            this.setSize(this.options.size)
        }
    },
    displayItem: function (b, a, d) {
        var c, e, f, g, k = {
            horizontal: ['left', 'width'],
            vertical: ['top', 'height']
        }, h = k[this.transition.direction],
            l, i, j;
        if (this.transition.type == 'slide') {
            l = this.options.size[h[1]] * a * -1;
            i = this.options.size[h[1]] * b * -1;
            if (d) {
                this.subcontainer.setStyle(h[0], i + 'px')
            } else {
                f = this.getSlideFx().cancel();
                f.start(h[0], l, i)
            }
        } else {
            c = this.items[b];
            e = this.items[a];
            for (j = 0; j < this.items.length; j++) {
                if (b === j) {
                    this.items[j].setStyles({
                        'display': 'block',
                        'z-index': 1,
                        'left': 0,
                        'top': 0
                    });
                    if (this.transition.direction == 'inplace' && this.transition.additional == 'fade') {
                        this.items[j].setOpacity(0)
                    }
                } else if (a === j) {
                    this.items[j].setStyles({
                        'display': 'block',
                        'z-index': 0,
                        'left': 0,
                        'top': 0
                    })
                } else {
                    this.items[j].setStyle('display', 'none')
                }
            }
            if (this.transition.direction == 'inplace') {
                if (this.transition.additional == 'fade') {
                    f = this.getItemFx(b).cancel();
                    if (d) {
                        c.setOpacity(1)
                    } else {
                        f.addEvent('complete', this.hidePrecedingitem);
                        f.start({
                            opacity: [0, 1]
                        })
                    }
                } else {
                    if (a !== false) {
                        this.items[a].setStyle('display', 'none')
                    }
                }
            } else {
                l = this.options.size[h[1]];
                i = 0;
                if (b < a) {
                    l *= -1
                }
                if (d) {
                    c.setStyle(h[0], i)
                } else {
                    c.setStyle(h[0], l + 'px');
                    e.setStyle(h[0], i);
                    if (this.transition.additional == 'push') {
                        f = this.getItemsFx([b, a]).cancel();
                        g = {
                            '0': {}
                        };
                        g['0'][h[0]] = [l, i];
                        if (e) {
                            g['1'] = {};
                            g['1'][h[0]] = [i, l * -1]
                        }
                        f.start(g)
                    } else {
                        f = this.getItemFx(b).cancel();
                        f.addEvent('complete', this.hidePrecedingitem);
                        g = {};
                        g[h[0]] = [l, i];
                        if (this.transition.additional == 'fade') {
                            c.setOpacity(0);
                            g.opacity = [0, 1]
                        }
                        f.start(g)
                    }
                }
            }
        }
    },
    getItemFx: function (b) {
        if (!this.fxs[b]) {
            this.fxs[b] = new Fx.Morph(this.items[b])
        }
        this.fxs[b].removeEvent('complete', this.hidePrecedingitem).setOptions(this.options.fxOptions);
        return this.fxs[b]
    },
    getItemsFx: function (b) {
        var a = b.join('_'),
            d = [],
            c;
        if (!this.fxs_mix[a]) {
            for (c = 0; c < b.length; c++) {
                if (b[c] !== false) {
                    d.push(this.items[b[c]])
                }
            }
            this.fxs_mix[a] = new Fx.Elements(new Elements(d))
        }
        this.fxs_mix[a].setOptions(this.options.fxOptions);
        return this.fxs_mix[a]
    },
    getSlideFx: function (b) {
        this.fx.setOptions(this.options.fxOptions);
        return this.fx
    },
    walk: function (b, a, d) {
        if (b !== this.current_item_index && this.ready[b]) {
            this.preceding_item_index = this.current_item_index;
            this.current_item_index = b;
            var c = false;
            if (d !== true) {
                if (this.play_right_running) {
                    c = 'play'
                } else if (this.play_left_running) {
                    c = 'playback'
                }
                if (c) {
                    this.stop()
                }
            }
            this.fireEvent('onBeforeDisplayItem', [this.current_item_index, this.preceding_item_index]);
            this.displayItem(b, this.preceding_item_index, a);
            if (c) {
                this[c]()
            }
            if (this.options.walkers.container) {
                var e = this.options.walkers.depth * (-1 * this.current_item_index + this.options.walkers.display / 2 - (this.options.walkers.display % 2 ? .5 : 0));
                var f = -1 * this.options.walkers.depth * (this.walkers.items.length - this.options.walkers.display);
                var g = 0;
                if (e < f) {
                    e = f
                } else if (e > g) {
                    e = g
                }
                if (this.options.walkers.wmode == 'vertical') {
                    this.walkers.container.tween('top', e)
                } else {
                    this.walkers.container.tween('left', e)
                }
            }
            if (this.options.descriptions.items) {
                for (var k = 0; k < this.items.length; k++) {
                    this.descriptions_fxs[k].cancel();
                    if (k === this.preceding_item_index) {
                        this.options.descriptions.items[k].setStyle(this.orientation, (this.depth1 - this.depth2) + 'px')
                    } else {
                        this.options.descriptions.items[k].setStyle(this.orientation, this.depth1 + 'px')
                    }
                }
                this.descriptions_fxs[this.preceding_item_index].start(this.depth1).chain(function () {
                    this.descriptions_fxs[this.current_item_index].start(this.depth1 - this.depth2)
                }.bind(this))
            }
            this.fireEvent('onWalk', [this.current_item_index, this.preceding_item_index])
        }
    },
    next: function (b) {
        var a = this.current_item_index + 1;
        if (a === this.items.length) {
            a = 0
        }
        this.walk(a, false, b)
    },
    previous: function (b) {
        var a = this.current_item_index - 1;
        if (a < 0) {
            a = this.items.length - 1
        }
        this.walk(a, false, b)
    },
    play: function (b) {
        this.stop();
        if (b && $type(b) == 'number') {
            this.options.interval = b
        }
        this.play_right_running = true;
        this.play_timer = this.next.periodical(this.options.interval, this, [true]);
        this.fireEvent('onStartPlay', ['play'])
    },
    playback: function (b) {
        this.stop();
        if (b && $type(b) == 'number') {
            this.options.interval = b
        }
        this.play_left_running = true;
        this.play_timer = this.previous.periodical(this.options.interval, this, [true]);
        this.fireEvent('onStartPlayback', ['playback'])
    },
    stop: function () {
        $clear(this.play_timer);
        this.play_right_running = false;
        this.play_left_running = false;
        this.fireEvent('onStop', ['stop'])
    },
    addPlayerControls: function (b, a, d) {
        if (!d) {
            d = 'click'
        }
        for (var c = 0; c < a.length; c++) {
            a[c].addEvent(d, this[b].bind(this, [false]))
        }
    },
    addItemWalkers: function (b, a) {
        if (!a) {
            a = 'click'
        }
        for (var d = 0; d < b.length; d++) {
            b[d].addEvent(a, this.walk.pass([d, false, false], this))
        }
    },
    mouseWheelListener: function (b) {
        var a = new Event(b).stop();
        if (this.wheel_index === false) {
            this.wheel_index = this.current_item_index
        }
        this.wheel_index += a.wheel < 0 ? 1 : -1;
        if (this.wheel_index < 0) {
            this.wheel_index = this.items.length - 1
        } else if (this.wheel_index >= this.items.length) {
            this.wheel_index = 0
        }
        this.walk(this.wheel_index);
        this.wheel_index = false
    }
 
 
});