Sidehistorik
Confluence also uses Fancybox, this can give issues.
Name | include-lightbox fancybox |
---|---|
Macro Body Processing | No macro body |
Output format | HTML |
Usage | {include-lightbox} fancybox} |
This should actualle be called "attach-fancybox" as is attaches the build in fancybox (bundled with Confluence in the Advanced Macros) to object with id "single_image"
I use it i conjunction with me-image - Image lightbox with fancybox
Code
Kodeblok |
---|
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <script type="text/javascript" src="/fancybox/fancybox/jquery.fancybox-1.3.4.pack.js"></script> <script type="text/javascript" src="/fancybox/jquery.mousewheel-3.0.4.pack.js"></script> <link rel="stylesheet" href="/fancybox/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />> AJS.toInit(function () { jQuery('a#single_image').fancybox({ 'width' : '80%', 'height' : '80%', 'speedIn' : 600, 'speedOut' : 200, 'overlayShow' : false }); }); </script> |