WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Scroll Gallery
[resolved] Double Thumbnails in IE9 (2 posts)

  1. platzh1rsch
    Member
    Posted 1 year ago #

    Hey there,
    I am using Scrollgallery on a customer website.
    I admit I had to adjust the CSS and even some small parts of the core php so I don't know for sure if the problem occurs with the original source code as well :)
    Anyway: the gallery is looking perfectly on Firefox, Chrome and Safari.
    It also is looking OK in IE7 and IE8, but somehow in IE9 every thumbnail seems to be generated twice.

    You can see the gallery in action here:
    http://www.moanas.ch/honestly/

    Would appreciate any help.

    Thanks in advance.

    http://wordpress.org/extend/plugins/nextgen-scrollgallery/

  2. platzh1rsch
    Member
    Posted 1 year ago #

    Well I resolved it myself (or more exactly: did a workaround) by adding this to nggScrollGallery.php:

    $out .= '
    						});
    						/* remove duplicate thumbnails (IE workaround) */
    						if (parseInt(jQuery(".thumbareaContent img.img-0").length) > 1) {
    							var biggest = jQuery(".thumbareaContent img[class*=\'img-\']").last().attr("class");
    							var num = parseInt(biggest.substring(4))+1;
    							for (var i = 1; i <= num; i++) {
    								jQuery(".thumbareaContent img:nth-child("+i+")").hide();
    							}
    						}

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic