Article ID: 175171 - Last Review: August 27, 2007 - Revision: 2.4

FP98: JavaScript Error if Animation Applied Only to Image

This article was previously published under Q175171

On This Page

Expand all | Collapse all

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 (<P>) 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:
    <p>
  3. Add the following tag after the <img src="imagename.jpg"> tag, where "imagename" is the file name of the image you are using:
    </p>
  4. Click the Normal tab.

MORE INFORMATION

For more information about writing HTML, visit the following Microsoft Web site:
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarhtmau/html/beghtml.asp (http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarhtmau/html/beghtml.asp)
For more information about JavaScript, visit the following Microsoft Web site:
http://www.microsoft.com/scripting/jscript (http://www.microsoft.com/scripting/jscript)

APPLIES TO
  • Microsoft FrontPage 98 Standard Edition
Keywords: 
kbprb KB175171
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations