Simple SharePoint Image Rotator

This example shows how to connect a dynamic image rotator Web Part with the SharePoint picture library.

  • Step 1: Ensure the RSSBus Web Part is installed.
  • Step 2: Choose your images and upload them to a Picture Library. The Picture Library should be located within the same site you plan to add the RSSBus Web Part to.
  • Step 3: Add the RSSBus Web Part to your page and paste the following template into its source editor.
<!-- Set the Picture Library that you want to use  -->
<rsb:set attr="list" value="Picture Library" />

<!-- Call the spListItems operation, save the results. -->
<rsb:call op="spListItems" save="pictures" />

<!-- Call the feedRandom operation to randomize the saved spListItems results -->
<rsb:call op="feedRandom?feed=[_feeds.pictures | urlencode]" pagesize="1">
  <!-- Output the image as html -->
  <img src="[sp:url]" width=�150px� border="0" align="right" />
</rsb:call>

Paste the template into the source editor and change "Picture Library� to the name of your library. For best results size the pictures before uploading them to your library and delete the width="150px" setting from the image tag in the HTML.