Microsoft KB Archive/175171

From BetaArchive Wiki

Article ID: 175171

Article Last Modified on 8/27/2007



APPLIES TO

  • Microsoft FrontPage 98 Standard Edition



This article was previously published under Q175171

SYMPTOMS

When you click the Preview tab at the bottom of the FrontPage Editor window, or when you click Preview In Browser on the File menu, you receive a JavaScript error message.

NOTE: The exact text of the error message varies depending on which Web browser you are using to view the page.

CAUSE

This behavior occurs when you apply the following types of animation to a selected image, but your selection does not contain any text:

  • Fly From Top-Right By Word
  • Fly From Botton-Right By Word
  • Drop In By Word
Animation effects are designed to animate text, not images. When you apply animation to an image or text, FrontPage writes JavaScript code that uses the paragraph tag (

) to determine where to start and stop the animation. You receive the error message if no text is found.

WORKAROUND

To work around this behavior and avoid the error message, use either of the following methods.

NOTE: These methods will not animate the image.

Method 1: Insert a Space before Applying Animation

  1. Click in front of the image.
  2. Press the SPACEBAR one time.
  3. Select the space and the image.
  4. On the Format menu, point to Animation, and then click the effect that you want to use.

Method 2: Put the Image inside a Paragraph Element

  1. Click the HTML tab at the bottom of the FrontPage Editor window.
  2. Add the following tag before the <img src="imagename.jpg"> tag, where "imagename" is the file name of the image you are using:

  3. Add the following tag after the <img src="imagename.jpg"> tag, where "imagename" is the file name of the image you are using:

  4. Click the Normal tab.


MORE INFORMATION

For more information about writing HTML, visit the following Microsoft Web site:

For more information about JavaScript, visit the following Microsoft Web site:


Additional query words: dhtml fpedit jscript

Keywords: kbprb KB175171