Subversion Repositories My Stuff

Rev

Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

$(document).ready(function() {
        $("a.group").each(function(){
                var $link = $(this);
                $link.click(function(){
                        $.fancybox({
                                'speedIn':      300,
                                'speedOut':     300,
                                'overlayColor': '#000',
                                'overlayOpacity': 0.7,'centerOnScroll': true,
                                'padding': 0,
                                'title': $(this).find('div.link_title:first').html(),
                                'href': $(this).attr('href'),
                                'titlePosition': 'over',
                                'transitionIn':  'elastic',
                                'transitionOut': 'elastic'
                        });
                        return false;
                });
        });
        $("a.pages").each(function(){
                var $link = $(this);
                $link.click(function(){
                        $.fancybox({
                                'width' : '75%',
                                'height' : '75%',
                            'autoScale' : false,
                            'padding': 0,
                            'overlayOpacity': 0.7,'centerOnScroll': true,
                            'transitionIn' : 'elastic',
                                'transitionOut' : 'elastic',
                                'type' : 'iframe',
                                'href': $(this).attr('href'),
                                'titleShow': false
                        });
                        return false;
                });
        });
});