Using behaviors to control media, Use parameters to control media objects – Adobe Dreamweaver CS3 User Manual
Page 284
DREAMWEAVER CS3
User Guide
277
Java applet properties
The Property inspector initially displays the most commonly used properties. Click the expander arrow in the
lower-right corner to see all properties.
Name
Specifies a name to identify the applet for scripting. Enter a name in the unlabeled text box on the far left side
of the Property inspector.
W and H
Specify the width and height of the applet, in pixels.
Code
Specifies the file containing the applet’s Java code. Click the folder icon to browse to a file, or enter a filename.
Base
Identifies the folder containing the selected applet. When you select an applet, this text box is filled automati-
cally.
Align
Determines how the object is aligned on the page.
Alt
Specifies alternative content (usually an image) to be displayed if the user’s browser doesn’t support Java applets
or has Java disabled. If you enter text, Dreamweaver inserts the text as the value of the applet’s
alt
attribute. If you
select an image, Dreamweaver inserts an
img
tag between the opening and closing
applet
tags.
Note: To specify alternative content that is viewable in both Netscape Navigator (with Java disabled) and Lynx (a text-
based browser), select an image and then manually add an
alt
attribute to the
img
tag in the Code inspector.
V Space and H Space
Specify the amount of white space in pixels above, below, and on both sides of the applet.
Parameters
Opens a dialog box for entering additional parameters to pass to the applet. Many applets respond to
special parameters.
Using behaviors to control media
You can add behaviors to your page to start and stop various media objects.
Control Shockwave Or Flash
Play, stop, rewind, or go to a frame in a Shockwave movie or Flash SWF file.
Play Sound
Lets you play a sound; for example, you can play a sound effect whenever the user moves the mouse
pointer over a link.
Check Plugin
Lets you check to see if visitors to your site have the required plug-in installed, then route them to
different URLs, depending on whether they have the right plug-in. This only applies to Netscape Navigator plug-ins,
as the Check Plugin behavior does not check for ActiveX controls.
See also
“Apply the Control Shockwave Or Flash behavior” on page 352
“Apply the Play Sound behavior” on page 356
“Apply the Check Plugin behavior” on page 352
Use parameters to control media objects
Define special parameters to control Shockwave and Flash SWF files, ActiveX controls, Netscape Navigator plug-ins,
and Java applets. Parameters are used with the
object
,
embed
, and
applet
tags. Parameters set attributes specific to
different types of objects. For example, a Flash object can use a quality parameter
for the object tag. The Parameter dialog box is available from the Property
inspector. See the documentation for the object you’re using for information on the parameters it requires.
September 4, 2007