Skip to Main Content
Adobe® Dreamweaver® CS4 Bible
book

Adobe® Dreamweaver® CS4 Bible

by Joseph Lowery
March 2009
Beginner to intermediate content levelBeginner to intermediate
1321 pages
46h 24m
English
Wiley
Content preview from Adobe® Dreamweaver® CS4 Bible
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 menusuch 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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Adobe® Dreamweaver® CS5 Bible

Adobe® Dreamweaver® CS5 Bible

Joseph W. Lowery
Dreamweaver® CS3 Bible

Dreamweaver® CS3 Bible

Joseph W. Lowery

Publisher Resources

ISBN: 9780470382523Purchase book