User Guide
Exporting from Fireworks 257
Copying and pasting HTML from an exported Fireworks file
You can open exported Fireworks HTML in an HTML editor and copy and paste sections of
code into another HTML file.
To copy code from an exported Fireworks file and paste it into another HTML document:
1 Open the Fireworks HTML file you exported in an HTML editor.
2 Highlight the necessary code and copy it to the Clipboard.
3 Open an existing HTML document or create a new one.
4 Paste the code from the Clipboard at the desired location in the new HTML file. You do not
have to copy the <HTML> and <BODY> tags, because these should already be included in the
destination HTML document.
If you chose Include HTML Comments in the HTML Setup dialog box in Fireworks, follow
the instructions in the comments to copy and paste the code into the appropriate location.
5 If your Fireworks document contains interactive elements, you’ll need to copy the JavaScript
code as well.
JavaScript code is surrounded by
<SCRIPT> tags and is located in the <HEAD> section of the
document. Copy and paste the entire
<SCRIPT> section, unless your destination document
already has a
<SCRIPT> section. In this case you should copy and paste only the contents of the
<SCRIPT> section into the existing <SCRIPT> section, being careful not to overwrite the
contents of the existing section. Also ensure there are no duplicate JavaScript functions in the
<SCRIPT> section after you paste the code.
Updating exported HTML
The Update HTML command allows you to make changes to a Fireworks HTML document
you’ve previously exported. This feature is useful if you want to update only a portion of
a document.
Note: Update HTML works differently with Macromedia Dreamweaver documents than it does with
other HTML documents. For more information, see “Working with Macromedia Dreamweaver MX
2004” in Working with Other Applications on the Fireworks Support Center at
www.macromedia.com/support/fireworks/.
When updating Fireworks HTML, you can choose to replace just the images that changed, or
overwrite all code and images. If you choose to replace only the images that changed, any changes
you made to the HTML file outside of Fireworks are preserved.
Note: For considerable changes to document layout, make your changes in Fireworks and re-export
the HTML file.