Skip to main content

Posts

Showing posts from September, 2019

Resize Picture Slideshow Web part in SharePoint 2013 without resizing the original images

The JavaScript code described below allows to display original images (without re-sizing) in Slideshow Web Part. In order to display original image the technique is to override the ShowPic function. For embedding JavaScript on page, use Content Editor web part (CEWP) on the same page where you have also inserted your SlideShow web part. <script type="text/javascript"> function SlideshowObjectInitializer() {   ShowPic = (function(ShowPicOrig) {       return function() {            var ssObj = arguments[0];  //SlideShow object            var curPicIdx=ssObj.index; //current picture index            ShowPicOrig.apply(this, arguments); //call original ShowPic            //apply some changes to display original picture in SlideShow control            ssObj.image.src = ssObj.linkArray[curPicIdx]; ...