We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21700
    • 42 Posts
    Hi folks!

    I edited my Smoothgallery script to use a transparent background to blend it in the site more easily. Now I do run into one problem: images with an aspect ratio other than 640*428 (&smoothgallery_height=`428` &smoothgallery_width=`640`) will be displayed on top of the previous image, resulting in a bit weird view. Please see http://escape0.net/gallery.esc. Now the amazing thing I discovered is that if you go to the previous image (being the last in the gallery) with a different aspect ratio, it will display correctly!

    Does anyone have an idea how to achieve a complete redraw on a transparent background other than on top of the previous image?

    Thank you in advance!

    (PS: snippet call:
    [tt][!MaxiGallery? &display=`embedded` &embedtype=`smoothgallery` &max_thumb_size=`100` &max_pic_size=`640,480` &max_big_size=`0` &keep_bigimg=`1` &smoothgallery_textShowCarousel=`Pictures` &smoothgallery_height=`428` &smoothgallery_width=`640` &big_img_linkstyle=`external` &order_by=`random` &smoothgallery_carouselMaximizedOpacity=`0.9` &smoothgallery_carouselMinimizedOpacity=`0.4`!][/tt])

    (screenshots:)
    when proceeding, this happens:


    when clicking previous at the first image in the gallery (this is how I’d like it to display)
      • 7923
      • 4,213 Posts
      I guess you would have to modify the javascript to clear the picture element first before changing it’s src attribute to another or something, but I don’t know.. Haven’t done much javascript. You could post your question to SmoothGallery forums.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."