User Guide

477
ADOBE GOLIVE CS2
User Guide
To specify image attributes
1 Select an img element in the document window.
2 In the Img Inspector, set the following attributes:
alt Specifies alternative text for the image. A WML browser displays alternative text when it does not support images
or when the image file cannot be found.
src Specifies a URL for the image file.
3 Set the following optional attributes in the Img Inspector:
localsrc Specifies an image file that is local to (saved on) the wireless device. This image file takes precedence over
the image file specified by the src attribute.
vspace and hspace Specify the amount of white space that you want a WML browser to insert around the image in
pixels or a percentage. Some browsers may ignore this attribute.
align Specifies how the image is aligned within a paragraph. Choose Bottom to align the bottom of the image with
the current line. Choose Middle to center the image on the current line. Choose Top to align the top of the image
with the current line. Some browsers may ignore these attributes.
height and width Specify the dimensions of the image in pixels or a percentage. Some browsers may ignore these
attributes.
xml:lang Specifies the language of the element or its attributes.
To add a prev, refresh, or noop element
1 Drag the Prev icon, the Refresh icon, or the Noop icon from the WML Elements set in the objects toolbox into the
document window. Release the mouse button when the pointer is over the colored area of a do, onevent, or anchor
element.
2 For prev and refresh elements, add a setvar element to the task.
See also
“To set variables or postfield elements in a WML deck” on page 477
To set variables or postfield elements in a WML deck
Drag the Setvar icon or Postfield icon from the WML Elements set in the objects toolbox into the document
window. Release the mouse button when the pointer is over the colored area of a go, prev, or refresh element.
In the Inspector, specify a name and value for the variable or postfield element.
Working with events and tasks in WML decks
Using events in WML decks
When auserperformsanactiononawireless device,the WML browsercapturesthe users input. In technicalterms,
the user’s action is called an event. You can use events to execute tasks in your WML deck.