You are currently offline, waiting for your internet to reconnect

WD97: Using Relative Paths in HTML Files

This article was previously published under Q162985
This article has been archived. It is offered "as is" and will no longer be updated.
SUMMARY
This article discusses the Use Relative Paths option that is availablewhen inserting a video clip or background sound into an HTML document.Another option, "Copy to Document Folder," can be used in conjunction withthe Use Relative Paths option to get different types of file pathfunctionality when inserting pictures and videos.
MORE INFORMATION
The Use Relative Paths option and the Copy to Document Folder option canbe found by clicking Video on the Insert menu, or by pointing toBackground Sound on the Insert menu and clicking Properties.

Use Relative Path

When the Use Relative Paths option is enabled, the path to the video clipor background sound will contain only information about where the objectis, relative to the HTML document the object is being inserted into.

For example:

Assume the HTML document is located on \\server\share\mydoc.htmland assume the video clip is located one level deeper on\\server\share\videos\myvideo.avi.

Scenerio 1: Use Relative Path is Enabled

If the Use Relative Paths option is enabled, the HTML document will onlycontain path information for the video clip relative to the HTML document.In this case, the HTML code will be:
   Dynsrc="videos\myvideo.avi"				
Scenerio 2: Use Relative Path is Disabled

If the Use Relative Paths option is disabled, the HTML document willcontain complete path information for the video clip. In this case, theHTML code will be
   Dynsrc="\\server\share\videos\myvideo.avi"				
If the HTML document is saved or copied to a new location, the video clipwill not work in Scenerio 1 because the path to the video clip would nowbeincorrect. In Scenerio 2, the video clip would continue to work as long asthe computer on which the HTML file is stored has access to the serverwhere the video clip is located.

Copy to Document Folder

When the Copy to Document Folder option is enabled, the video clip orbackground sound will be copied to the same folder as the HTML file.

For example:

Assume the HTML document is located on \\server\share\mydoc.htmland assume the video clip is located one level deeper on\\server\share\videos\myvideo.avi.

If the "Copy to Document Folder" option is enabled, the video clip will becopied to the \\server\share folder so that it will be in the same folderas the HTML document.

If the Use Relative Paths option is enabled, the HTML code will be
   Dynsrc="myvideo.avi"				


If the Use Relative Paths option is disabled, the HTML code will containthe full path to the video clip:
   Dynsrc="\\server\share\myvideo.avi"				
97
Properties

Article ID: 162985 - Last Review: 01/12/2015 15:54:27 - Revision: 1.1

Microsoft Word 97 Standard Edition

  • kbnosurvey kbarchive KB162985
Feedback