Subversion Repositories My Stuff

Compare Revisions

Ignore whitespace Rev 15 → Rev 16

/trunk/JavaScripts/fancybox_add_cv.js
1,38 → 1,39
$(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.group").fancybox({
'speedIn': 300,
'speedOut': 300,
'overlayColor': '#000',
'overlayOpacity': 0.7,'centerOnScroll': true,
'padding': 0,
'href': $(this).attr('href'),
'titlePosition': 'over',
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'titleShow': 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;
});
$("a.pages").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
});
$("a.specification").fancybox({
'scrolling' : 'no',
'titleShow' : false,
'overlayOpacity': 0.7,'centerOnScroll': true,
'padding' : 0,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic'
}).tooltip({
effect: 'slide',
tipClass : 'imgtooltip',
opacity : 0.7
}).dynamic({ bottom: { direction: 'down', bounce: true } });
});