Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. To work around this behavior and display the fifth
thumbnail when both the cell width and the combined width of the thumbnails and
space between them is equal, change the JavaScript. To do this, open your Web
in FrontPage, and then follow these steps:
- In the Folder List, expand (click the plus sign next to) the PhotoGallery folder.
- Expand the PhotoNNNN folder (where NNNN is a unique number).
- Double-click the Sldshow.js file. The file will open in
Notepad.
- On the Edit menu, click Replace.
- In the Find box, type the following:
if (count < widthLength)
- In the Replace box, type the following:
if (count <= widthLength)
- Click Replace All.
- On the File menu, click Save.
- Preview the page in your browser. In the browser, click Refresh to make sure you are looking at the latest version of the
page.
NOTE: If you make any changes to the photo gallery component either by
double-clicking it to edit the page or by right-clicking the photo gallery page
and then clicking
Properties on the shortcut menu, any changes you made to the Sldshow.js file
will be overwritten.