Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Display original images in Slideshow web part (SharePoint 2010)
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]; //display original image instead of web image
//change picture & container size to auto instead of fixed (by default web image size is used)
var cell = ssObj.cell; = 'auto'; = 'auto'; = '';
var pcell = ssObj.cell.parentNode; = 'auto'; = 'auto';
ExecuteOrDelayUntilScriptLoaded(SlideshowObjectInitializer, 'imglib.js');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment