I have tried this solution but it doesn’t work for me. Where should this additional javascript be inserted?it goes to your js-function
[!MaxiGallery? &pictureTpl=`mgPicture` &display=`pictureview` &js=`mgJsPicture`!]
!MaxiGallery? &galleryPictureTpl=`mgGalleryPicture` &js=`mgJs` &disable_rightclick=`0` &pics_per_row=`3` &max_thumb_size=`36` &max_pic_size=`758` &pic_use_watermark=`1` &pic_watermark_type=`image` &pic_watermark_img=`images/logo.png` &manage_target=`8`!]
You shouldn’t use the &js parameter in both snippet calls.. remove it from the second call.
i use jQuery (in NoConflicht mode) for that setup, therefore the "jq" in the javascript (which replaces jQuerys $-sign), if you haven’t called jQueryin your header, it won’t work
did you check the link i posted above

yes, i already checked..you’re almost there
you can delete the first js-function in your header (you called it twice)