Microsoft KB Archive/293910

= Slide show thumbnails are not displayed correctly when you use a browser to view a FrontPage 2002 Web page or a FrontPage 2003 Web page =

Article ID: 293910

Article Last Modified on 1/31/2007

-

APPLIES TO


 * Microsoft Office FrontPage 2003
 * Microsoft FrontPage 2002 Standard Edition

-



This article was previously published under Q293910



SYMPTOMS
When you use a browser to preview a Microsoft FrontPage 2002 Web page or a Microsoft Office FrontPage 2003 Web page that contains a FrontPage slide show photo gallery, you may see five thumbnails initially. However, when you click the right arrow, you may see only four thumbnails; when you click the left arrow to go back, you see five thumbnails.



CAUSE
The width of the thumbnails combined with the width of the space between the thumbnails exactly equals the width of the table cell in which the thumbnails are placed. The JavaScript that determines how many thumbnails need to be displayed does not display the fifth thumbnail if they are equal.



WORKAROUND
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)

</li> Click Replace All.</li> On the File menu, click Save.</li> Preview the page in your browser. In the browser, click Refresh to make sure you are looking at the latest version of the page.</li></ol>

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.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

<div class="moreinformation_section">

MORE INFORMATION
For more information about photo galleries, click Microsoft FrontPage Help on the Help menu, type photo gallery in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

Keywords: kbprb kbweb kbprogramming KB293910

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.