you may wan to try
http://stackoverflow.com/a/11356501/1055987
On Jul 8, 1:35 pm, Knaufi <
knaufi1...@googlemail.com> wrote:
> I had all the time watched in any forums but i didnt found anything about
> sharebuttons on fancybox.....
>
> i have a bad option to realize....
>
> You must type all input code in title of fancybox.
> like this (for Facebook and Foldename + Count from Images):
>
> *index.php*
> *
> *
>
> *
> *
> *
>
> *
> *
>
> *
> *
> $(document).ready(function() {
> *
> *
> *$(".fancybox-thumbs").fancybox({
> *
> beforeShow : function() {
> *
> *
> this.title = '<a href="' + this.href + '"
> class="addthis_button_facebook_like" addthis:url="' + this.href + '"
> addthis:title="' + this.title + '"></a><br>' + (this.title ? ' ' +
> this.title : '');
> *
> *
> },
> *
> *
> afterShow : function() {
> *
> *
> addthis.button(
> *
> *
> $(".addthis_button_facebook_like").get()
> *
> *
> );
> *
> *
> },
> *
> *
> closeBtn : false,
> *
> *
> *prevEffect : 'none',
> *
> *nextEffect : 'none',
> *
> *helpers : {
> *
> buttons : {},
> *
> *
> *title : {
> *
> *type: 'outside'
> *
> *},
> *
> *overlay : {
> *
> *opacity : 0.8,
> *
> *css : {
> *
> *'background-color' : '#000'
> *
> *}
> *
> *},
> *
> *thumbs : {
> *
> *width : 50,
> *
> *height : 50
> *
> *}
> *
> *}
> *
> *});
> *});
>
> *
>
> *galeri2.php*
>
> *<?*
> *$pic_amount = count($pixlie_table_file); //Gesamtanzahl der Bilder
> feststellen*
> *foreach ($pixlie_table_file as $key => $picture){ ?>*
> *
> *
> * <a*
> * title="*
> * <table id=galeri-fb valign=center align=center
> style=background-color:#000000;>*
> * <tr>*
> * <td align=left style=background-color:#000000;>*
> * <li>Bild: <?php echo ($key + 1)." von ".$pic_amount?></li>*
> * <li>Bezeichnung: <?php echo $picture['name']; ?></li>*
> * <?php *
> * If ( $Albumtag != "")*
> * { ?>*
> * <li>Album: <?echo $Albumtag; ?></li>*
> * <?*
> * }*
> * ?>*
> * </td>*
> * </tr>*
> * <tr>*
> * <td id=galeritd2-fb> //here is a facebook like plugin as iframe*
>
> * ** <iframe src=//
www.facebook.com/plugins/like.php?href=<?php echo
> $pixlie_table_env['path_pixlie'].$picture['link_get']; ?>_b<?php echo
> $picture['extension']; ? >&send=false&layout=standard&width=450&show_faces=true&action=like&colorscheme=dark&font=segoe+ui&height=80
>
> scrolling=no frameborder=0 style=border:none; overflow:hidden; width:450px;
> height:80px; allowTransparency=true></iframe>*
>
> * </td>*
> * </tr>*
> * </table>"*
> * rel="group"*
> * class="fancybox-effects-d"*
> * id="#myDivID"*
> * href="<?php echo
> $pixlie_table_env['path_pixlie'].$picture['link_get']; ?>_b<?php echo
> $picture['extension']; ?>">*
>
> * <img src="<?php echo
> $pixlie_table_env['path_pixlie'].$picture['link_get']; ?>_s<?php echo
> $picture['extension']; ?>" alt="<?php echo $picture['name']; ?>" />*
> * </a>*
> *
> *
> *
> *
> *
> *
> *<?php } ?>*
>
> *
> *