Web Design Features
133
Copying and pasting from a Fireworks
HTML file
When copying HTML exported from Fireworks, it is
important to paste it to the correct place within the
destination HTML document.
When copying and pasting Fireworks HTML into
other HTML documents, you do not have to copy the
<HTML> or <BODY> tags. Those tags should already be
included in the destination HTML document.
Note:
Exporting as a Dreamweaver 2 library (.lbi) file
makes copying and pasting HTML unnecessary when
inserted in Dreamweaver.
JavaScript
When Fireworks exports HTML with JavaScript
behaviors, the exported HTML includes JavaScript
code for executing behaviors, as well as all other
necessary HTML. When pasting JavaScript into other
HTML documents, be sure to do the following:
◆
Paste the entire <SCRIPT> section between the
<HEAD> and </HEAD> tags. Be sure that the
script section begins with a <SCRIPT> and ends
with a </SCRIPT>. If a script section already exists
in the destination HTML document, do not copy
the <SCRIPT> tags. Copy the code from the source
script and paste it at the end of the destination
<SCRIPT> section before the </SCRIPT> tag.
◆
Paste the image's link in the <BODY> section where
you want the image to appear on the page.
Client-side image maps
HTML exported by Fireworks for client-side image
maps includes a link to the graphic and <MAP>
information to define the image map's hotspot areas.
When pasting image maps into other HTML
documents, be sure to do the following:
◆
Paste the image's link into the <BODY> section of
the destination HTML document where you want
the image map to appear on the page.
◆
Paste everything in the <MAP> section immediately
after the link to the graphic.
Sliced images
When exporting slices of an image, the HTML
exported by Fireworks includes a table that reassembles
slices on a web page. If you export JavaScript rollovers or
image maps with your slices, then the HTML will also
include JavaScript code and a <MAP> section. When
pasting a sliced graphic into other HTML documents,
be sure to do the following:
◆
Paste all of the <TABLE> section, including the tags,
where you want the sliced graphic to appear on the
page.
◆
Paste any JavaScript into the <SCRIPT> section, or
paste the entire <SCRIPT> section between the </
HEAD> and <BODY> tags.
◆
Paste any <MAP> sections immediately after the </
TABLE> tag for the sliced graphic.
Summary of Contents for FIREWORKS 2
Page 1: ...macromedia macromedia Using Fireworks FIREWORKS 2...
Page 9: ...9 1 CHAPTER 1 Getting Your Bearings...
Page 43: ...43 2 CHAPTER 2 Creating and Editing a Graphic...
Page 85: ...85 3 CHAPTER 3 Importing and Exporting...
Page 113: ...113 4 CHAPTER 4 Web Design Features...
Page 134: ...Chapter 4 134...