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 (293910)



The information in this article applies to:

  • Microsoft Office FrontPage 2003
  • Microsoft FrontPage 2002

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:
  1. In the Folder List, expand (click the plus sign next to) the PhotoGallery folder.
  2. Expand the PhotoNNNN folder (where NNNN is a unique number).
  3. Double-click the Sldshow.js file. The file will open in Notepad.
  4. On the Edit menu, click Replace.
  5. In the Find box, type the following:

    if (count < widthLength)

  6. In the Replace box, type the following:

    if (count <= widthLength)

  7. Click Replace All.
  8. On the File menu, click Save.
  9. 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.

STATUS

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

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.

Modification Type:MajorLast Reviewed:6/18/2005
Keywords:kbprb kbweb kbProgramming KB293910