Template:HarvardFancybox

From 2010.igem.org

(Difference between revisions)
Line 72: Line 72:
}
}
</style>
</style>
 +
 +
<script type="text/javascript">
 +
    $(document).ready(function() {
 +
 +
    /* This is basic - uses default settings */
 +
 
 +
    $("a#single_image").fancybox();
 +
 
 +
    /* Using custom settings */
 +
 
 +
    $("a#inline").fancybox({
 +
        'hideOnContentClick': true
 +
    });
 +
 +
    /* Apply fancybox to multiple items */
 +
 
 +
    $("a.group").fancybox({
 +
        'transitionIn'    :    'elastic',
 +
        'transitionOut'    :    'elastic',
 +
        'speedIn'        :    600,
 +
        'speedOut'        :    200,
 +
        'overlayShow'    :    false,
 +
    });
 +
 
 +
});
 +
 +
   
 +
</script> 
 +
</head>
</head>
</html>
</html>

Revision as of 14:49, 13 July 2010