Microsoft KB Archive/175171

= FP98: JavaScript Error if Animation Applied Only to Image =

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
 Click the HTML tab at the bottom of the FrontPage Editor window. Add the following tag before the  tag, where "imagename" is the file name of the image you are using:

 Add the following tag after the  tag, where "imagename" is the file name of the image you are using:

 Click the Normal tab.</ol>

<div class="moreinformation_section">

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

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

http://www.microsoft.com/scripting/jscript

Additional query words: dhtml fpedit jscript

Keywords: kbprb KB175171

-

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

© Microsoft Corporation. All rights reserved.