PUB98: Movie Doesn't Play or Opens in Another Window in Web Site (189681)



The information in this article applies to:

  • Microsoft Publisher 98

This article was previously published under Q189681

SYMPTOMS

If you insert a movie clip into a Microsoft Publisher Web site, the movie file may not play as expected. For example, you may be prompted to download a file or the movie may play in a separate window.

CAUSE

Microsoft Publisher inserts the Anchor (<A>) tag for a movie link. When you attempt to play the movie, the Web browser starts a "helper application" to interpret the date. Results may differ depending on your browser and software configuration.

RESOLUTION

You can work around this functionality and embed the movie by replacing the anchor (<A>) tag with an image (<IMG>) tag and adding a dynamic source attribute (DYNSRC) to the image tag. To do this, follow these steps.

NOTE: The following steps assume you are using Microsoft Internet Explorer, version 4.0.
  1. Insert the movie file. To do this, follow these steps:
    1. On the Insert menu, click Object.
    2. Click Create From File. Type the path for the movie file in the File box. Or, click Browse, select the file, and then click Open.
    3. Click OK.
  2. Publish your Web site. To do this, click Save As HTML on the File menu. Close the file.
  3. Start Windows Explorer. To do this, point to Programs on the Windows Start menu, and then click Windows Explorer. Open the folder that contains your Publisher Web site. By default, Publisher stores these files in the \My Documents\Publish folder. If you saved your Publisher Web site in a different folder, open that folder instead.
  4. Double-click the page that contains the movie file. The page will open in Internet Explorer.
  5. On the View menu, click Source. Find the following code and note any attributes (such as height and width) that you want to retain.
          <a href="moviefile.qt">
          <img width=555 height=417 border=0 src="img0.gif"></a>
    						
    Delete the code and replace it with the following code:

    <img dynsrc="mymovie.avi">

    To specify the height and width for the movie object, use the following syntax:

    <img dynsrc="mymovie.avi" width="20" height="20">

    NOTE: To preserve the size of the movie object, use the same attribute settings that were used in the original code.

    If you want to play the movie continuously, use the following syntax:

    <img dynsrc="mymovie.avi" loop="infinite">

    If you want the movie to play when the mouse pointer passes over the object, use the following syntax:

    <img dynsrc="mymovie.avi" start="mouseover">

  6. On the File menu, click Save.

Modification Type:MajorLast Reviewed:11/9/1999
Keywords:kbhtml kbprb KB189681