Subversion Repositories My Stuff

Rev

Rev 15 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15 Rev 16
Line 1... Line 1...
1
$(document).ready(function() {
1
$(document).ready(function() {
2
        $("a.group").each(function(){
2
        $("a.group").fancybox({
3
                var $link = $(this);
-
 
4
                $link.click(function(){
-
 
5
                        $.fancybox({
-
 
6
                                'speedIn':      300,
3
                'speedIn':      300,
7
                                'speedOut':     300,
4
                'speedOut':     300,
8
                                'overlayColor': '#000',
5
                'overlayColor': '#000',
9
                                'overlayOpacity': 0.7,'centerOnScroll': true,
6
                'overlayOpacity': 0.7,'centerOnScroll': true,
10
                                'padding': 0,
7
                'padding': 0,
11
                                'title': $(this).find('div.link_title:first').html(),
-
 
12
                                'href': $(this).attr('href'),
8
                'href': $(this).attr('href'),
13
                                'titlePosition': 'over',
9
                'titlePosition': 'over',
14
                                'transitionIn':  'elastic',
10
                'transitionIn':  'elastic',
15
                                'transitionOut': 'elastic'
11
                'transitionOut': 'elastic',
16
                        });
-
 
17
                        return false;
12
                'titleShow': false
18
                });
13
        });
19
        });
-
 
20
        $("a.pages").each(function(){
14
        $("a.pages").fancybox({
21
                var $link = $(this);
-
 
22
                $link.click(function(){
-
 
23
                        $.fancybox({
-
 
24
                                'width' : '75%',
15
                'width' : '75%',
25
                                'height' : '75%',
16
                'height' : '75%',
26
                            'autoScale' : false,
17
                'autoScale' : false,
27
                            'padding': 0,
18
                'padding': 0,
28
                            'overlayOpacity': 0.7,'centerOnScroll': true,
19
                'overlayOpacity': 0.7,'centerOnScroll': true,
Line 30... Line 21...
30
                                'transitionOut' : 'elastic',
21
                'transitionOut' : 'elastic',
31
                                'type' : 'iframe',
22
                'type' : 'iframe',
32
                                'href': $(this).attr('href'),
23
                'href': $(this).attr('href'),
33
                                'titleShow': false
24
                'titleShow': false
34
                        });
25
        });
-
 
26
       
-
 
27
        $("a.specification").fancybox({
-
 
28
                'scrolling'             : 'no',
35
                        return false;
29
                'titleShow'             : false,
-
 
30
                'overlayOpacity': 0.7,'centerOnScroll': true,
36
                });
31
                'padding' : 0,
-
 
32
                'transitionIn' : 'elastic',
-
 
33
                'transitionOut' : 'elastic'
37
        });
34
        }).tooltip({
-
 
35
                effect: 'slide',
-
 
36
                tipClass : 'imgtooltip',
-
 
37
                opacity : 0.7
-
 
38
        }).dynamic({ bottom: { direction: 'down', bounce: true } });
38
});
39
});