
12
I
Creating and Using Objects
The temporary unknown object image appears only if the object is stored in one of the
main categories of the Insert panel, such as Common, Layout, Forms, and so on. If you
save your object in a folder that corresponds to an Insert panel menu—such as Images, Media, or
Frames—you’ll see the broken image symbol instead.
FIGURE 1-4
You can create custom objects such as the qtMovie object shown here.
Building an object button
Object buttons are GIF files, ideally sized at 18 pixels square. To make the object button, you can
use any graphics-creation program that can save GIF files. If your button image file is not 18 pixels
by 18 pixels, Dreamweaver resizes it to those dimensions. Your button can be as colorful as you
want—as long as it can still fit in an 18-pixel square.
To create an object button, you can open and modify any of the existing GIF files for
the standard buttons. Just be sure to use the Save As command from your graphics pro-
gram—and not the Save command—to save the modified version.
After you’ve created a button image, save the GIF file in the same folder as the HTML file for the new
object. To get the icon to display correctly, be sure to give the GIF file exactly the same name as the
HTML file for the object.
Putting JavaScript to Work
in Custom Objects
The remaining sections of this chapter explore using JavaScript to create more complex objec ...