About absolute and relative URLs
When you enter a URL in the URL panel, you can enter an absolute or relative URL:
•
If you are linking to a web page that is beyond your own website, you must use an
absolute URL.
•
If you are linking to a web page within your website, you can use an absolute URL or a
relative URL.
Absolute URLs are complete URLs that include the server protocol, which is usually http:// for
web pages. For example, http://www.macromedia.com/support/fireworks is the absolute URL for
the Macromedia Fireworks Support web page. Absolute URLs remain accurate regardless of the
location of the source document, but they do not link correctly if the target document is moved.
Relative URLs are relative to the folder containing the source document. These examples show
the navigation syntax of relative URLs:
•
file.htm links to a file located in the same folder as the source document.
•
../../file.htm links to a file located in the folder two levels above the folder containing the
source document. Each ../ represents one level.
•
htmldocs/file.htm links to a file located in a folder named htmldocs, which is in the folder
containing the source document.
Relative URLs are usually the simplest ones to use for links to files that will always remain in the
same folder as the current document.
Importing and exporting URLs
If the URL panel contains URLs that you want to use again in other Fireworks documents, you
can export them for later use. You can then easily import them into any of your other Fireworks
documents for easy access.
You can also import all URLs referenced in any existing HTML document.
To export URLs:
Choose Export URLs from the URL panel Options menu.
1
Enter a filename and click Save.
2
An HTML file is created. This file contains the URLs you have exported.
To import URLs:
Choose Import URLs from the URL panel Options menu.
1
Select an HTML file and click Open.
2
All URLs in this file are imported.
166
Chapter 8: Using Styles, Symbols, and URLs
Need help?
Do you have a question about the FIREWORKS MX 2004-USING FIREWORKS and is the answer not in the manual?
Questions and answers