Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | daniel-mar | 1 | $(function () { |
2 | var thumbs = $('#thumbscarousel'); |
||
3 | $('#carousel').carouFredSel({ |
||
4 | items: 1, |
||
5 | scroll: { |
||
6 | fx: 'crossfade' |
||
7 | }, |
||
8 | auto: { |
||
9 | timeoutDuration: 8000, |
||
10 | duration: 2000 |
||
11 | }, |
||
12 | pagination: { |
||
13 | container: '#pager', |
||
14 | duration: 300 |
||
15 | } |
||
16 | }); |
||
17 | thumbs.carouFredSel({ |
||
18 | circular: false, |
||
19 | auto: false, |
||
20 | width: 115, |
||
21 | height: 75, |
||
22 | scroll: { |
||
23 | duration: 200 |
||
24 | }, |
||
25 | items: { |
||
26 | visible: 1, |
||
27 | width: 115, |
||
28 | height: 75 |
||
29 | } |
||
30 | }); |
||
31 | $('#pager').hover(function () { |
||
32 | var current = $('#carousel').triggerHandler('currentPosition'); |
||
33 | thumbs.trigger('slideTo', [current, 0, true, { fx: 'none' }]); |
||
34 | $('#thumbs').stop().fadeTo(300, 1); |
||
35 | }, function () { |
||
36 | $('#thumbs').stop().fadeTo(300, 0); |
||
37 | }); |
||
38 | $('#pager a').mouseenter(function () { |
||
39 | var index = $('#pager a').index($(this)); |
||
40 | // clear the queue |
||
41 | thumbs.trigger('queue', [[]]); |
||
42 | // scroll |
||
43 | thumbs.trigger('slideTo', [index, { queue: true }]); |
||
44 | }); |
||
45 | }); |
||
46 | |||
47 | function changementType() { |
||
48 | var type = document.getElementById("type"); |
||
49 | var div = document.getElementById("introduction_in_index"); |
||
50 | if (type == "introduction_in_index") { |
||
51 | div.style = "display:block"; |
||
52 | } else { |
||
53 | div.style = "display:none"; |
||
54 | } |
||
55 | } |