• metality

    (@metality)


    Thank you for this good plugin. Can you add looping functionality please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    You can add looping functionality by doing the following:

    – Edit the image-slideshow.js (\logo-slideshow\scripts) and change the gallerySlide() function as given below:

    function gallerySlide()
    	{
    		if(slideSpeed!=0){
    			var leftPos = imageGalleryObj.offsetLeft;
    			leftPos = leftPos/1 + slideSpeed;
    			if(leftPos>maxGalleryXPos){
    				leftPos = maxGalleryXPos;
    				slideSpeed = -1;
    
    			}
    			if(leftPos<minGalleryXPos){
    				leftPos = minGalleryXPos;
    				slideSpeed=1;
    			}
    
    			imageGalleryObj.style.left = leftPos + 'px';
    		}
    		setTimeout('gallerySlide()',50);
    
    	}

    – Actually changing the slideSpeed value will create a looping functionality.

    Enjoy!

    Thread Starter metality

    (@metality)

    thank you for your solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Logo Slideshow] Looping Functionality’ is closed to new replies.