Welcome to MSDN Blogs Sign in | Join | Help

"This week in Pictures" web part in Sharepoint 2007 and Time Interval

In case if you are looking for how to set the time interval between image slideshow, you will find this blog helpful.

The “This week in Pictures” [TWIP] web part uses a java script for the slideshow (STARTSlideShow() method).

 Basically in the OnPreRender() method (TWIP) web part from Microsoft.SharePoint.Portal.WebControls.ThisWeekInPicturesWebPart registers the client script

This week in Pictures

This refers to the JAVA script file (IMGLIB.js) in the layouts/1033 (or lang specific folder), that has a StartSlideShow()method that uses the timerId=setTimeout("AutoRun()", slideshowInterval); and slideshowInterval is set to 5000 (milli seconds), I changed this value to 2000 and it works for me (But I am sure we don’t want to do it this way J).

 

But we can override the StartSlideShow() method then we can change it the way we want J.

 

<UPDATE 13th Aug 2009> 

 

Mak Rowshan (my buddy) just updated me that he was able to add the following script to SlideShow.aspx, and it modified the time interval for slideshow.

 

<script language="Javascript">if (IsImgLibJssLoaded())  slideshowInterval = 2000;

</script>

 

 

 

Published Wednesday, August 12, 2009 8:34 PM by ketaanhs

Comments

Anonymous comments are disabled
 
Page view tracker