When we placed this team strategy into action, it paid immediate benefits.
First, we reduced the size of the graphic from 54K to 35K without suffering
loss of image quality. Second, while we told DRAW to use the bounding
boxnot the object shapefor the hotspot, it didnt really
listen to it. It created little bounding boxes for each of the objects
in the group. The thumbtack alone had seven!
We took the file into FrontPage and used one simple rectangle for each
of the hotspots. The HTML file went from over 4KB to barely 1KB. We made
a mental note to ourselves that were we to create image maps in DRAW,
we would create a rectangle with no outline or fill and cover the hotspot
objects. Then we would assign the URL to that rectangle.
DRAW is fine for quick-and-dirty image maps. But when you want clean
image maps, think like the coach of a basketball or football team and
match up the skills of the players with the jobs that need to be done.
Use DRAW for the graphics and a Web page editor for the HTML part.
|
| WARNING Image
maps tend to involve large graphics, and testing the graphic that
DRAW creates can be very misleading. Please dont think that
a graphic that loads swiftly from your hard drive will load just fine
from a Web site. That thinking is akin to the belief that (warning,
another sports analogy coming) because you can hit a golf ball 250
yards off the tee on a nice summer day, you could also do it in a
rainstorm with a 30-mile-per-hour wind in your face.
|
From DRAW Straight to
the Web
Image mapping is just one example of CorelDRAWs ability to produce
HTML files. In fact, DRAW can create complete Web pages and even sets
of Web pages, with all hyperlinks in place. Before this section is out,
we will debate the usefulness and application of this, but not DRAWs
ability to do it. For a drawing program, its skills in this department
are without peer.
The engine for all of this is the Publish to Internet command introduced
in the previous section. It acts like a one-stop shop for Web content
creation. From it, you can publish image maps or complete pages created
one of three distinct ways: tables, layers, or styles.
Figure 22.4 shows a replica of our lead authors home page at altman.com.
We have replicated the background, the logo, and the positioning and typeface
of the main text. (Not hard to do, since he created the graphics in DRAW
to begin with.) There are a few things to know about this screen:
- We removed the Standard toolbar to have sufficient
working room.
- The background image was not imported and
placed on the page; it was loaded through Page Setup, as described in
Chapter 21.
- All of the artistic text strings underneath
the logo are hyperlinked.
- The text in the body of the page is paragraph
text and has been made HTML compatible. Well discuss
that in this section.
- The date is centered.
- Two hyperlinks are assigned to selected words
in the body of the text.
- A white square is dropped behind the text.
FIGURE
22.4 This page in DRAW can be sent out as one
complete Web page.
The steps to creating this Web page are the same as for the image map,
and if you want to follow along with us, you can download altman-dot-com.cdr
from the companion page of the Sybex Web site.
- 1. Go to File Ø
Publish to Internet. This time, we will navigate through the single
dialog, instead of the Wizard; to get there, click Use Internet Dialog.
- 2. Choose HTML Table for the HTML Layout.
- 3. Pick a drive, a folder, and optionally, a location
underneath that for images.

- 4. Decide for yourself on the three check boxes,
and if you feel like it, snoop around behind the Options button. Well
cover it next.
- 5. Click OK to create the page in the folder you
specified.
By opening the HTML file in a browser, you can see how DRAW performed
in Figure 22.5.
FIGURE
22.5 On the surface, DRAW seems to have successfully
created this Web page. The whole story, however, requires that you dig
below the surface.
Well analyze and comment on this image in the section called A
Question of Purpose. But first, well discuss some of the options
and factors to consider when you are creating HTML pages.
What Is HTML
Compatible Text?
For text in DRAW to be treated as text in a Web page, you must do two
things:
- Set it as paragraph text.
- Make it HTML compatible by going to Text
Ø Make HTML Compatible (or use the
command on the context menu).
When you do this, DRAW treats it as other Web page editors would, by
offering formatting options that are distinctly HTMLesque. Text sizes
are measured on a scale of 1 to 7; spacing, leading, and kerning controls
are unavailable; and only the most basic of styles can be used.
But the payoff occurs when you open the page in a browser and encounter
real text that can be selected and saved off. The alternative would be
for all text to be treated as graphic imagesimposing potentially
crippling slowdowns on the display of the page.
Options has a page that controls the handling of text, and you can see
the three choices in the dialog below. The third choice, TrueDoc, is an
exciting technology that is not quite ready for prime time yet, in our
view.

Warning,
Warning...Danger...Conflict
DRAW has a funny way of telling you about problems that it encounters
in creating HTML. First it notifies you of a conflict, offering you the
choice of ignoring the conflict or fixing it. If you answer no, DRAW creates
the page, and youll never know what the conflict was. If you answer
yes, DRAW halts the creation operation and opens the Conflict docker.
To resume, you have to start over in the Publish to Internet dialogs.
Nine out of 10 times, the conflict arises when DRAW cannot make a string
of text HTML compatible, and most of the time, it is text that you had
no intention of converting in the first place (like an artistic headline
or text that is part of a logo).
You can tell DRAW not to be so persnickety about this by clicking Options
during the Publish to Internet process and clicking off the check box
for HTML compatibility, as shown below.

DRAW will still convert paragraph text into HTML text, but it will no
longer notify you if (when) it encounters a string of artistic text or
a frame of paragraph text that has not been made HTML compatible.
|