[pmwiki-users] New recipe: Mini with Fancybox (jQuery)

Oliver Betz list_ob at gmx.net
Mon Feb 21 05:48:53 CST 2011


Petko Yotov wrote:

>> As far as I see, I get only the resized version without the
>> possibility to see the 1:1 picture on demand?
>
>You get the real 1:1 picture, the browser resizes it down. You can right-click 
>near the middle of the picture, and select "View image" or something similar 
>from the context menu of your browser.

of course, please excuse my unwise question.

I forgot this option because Firefox shows a convenient magnifying
glass cursor for resized images, but it didn't for the pictures
displayed by Fancybox unless I used "view image".

>Alternatively, you can disable the automatic resizing with something like this 
>in config.php :
>
>  $Mini['FbOpts']['autoScale'] = "false"; 

no, the resizing is great IMO.

>Alternatively, you can add to config.php such a snippet :
>
>  $Mini['FbOpts']['onComplete'] = "function(a,i,o){
>    $('#fancybox-img').click(function(){open(a[i].href,'_self');});}"; 
>
>Then, clicking near the middle of the picture, away from the prev/next arrows, 
>will open it in the browser window. Then you have to use the "Back" button of 
>your browser to return to the gallery.

I will try it.

Thanks again,

Oliver




More information about the pmwiki-users mailing list