[Cover] [Previous Section] [Next Section] [Index]

Current chapter: HDML Statement Reference
Section 27 out of 35 total sections , Section 11 out of 12 sections in this chapter


<IMG>

An <IMG> statement specifies an image that appears in formatted text. Not all phone models are capable of displaying images.

You can use the <IMG> statement within any formatted text:

You can also use images as softkey labels by specifying either the SRC or ICON options within an <ACTION> statement. For more information, see Using images as softkey labels.

Statement  Description 
<IMG  

Beginning of the image header.  

  ALT=alt_text  

Text to display if the image can't be displayed (if the phone does not support images or the image content can't be found). 

  SRC=image_url  

The URL of the image to display. If you specify a valid name for the ICON option, the device ignores this option. 

  ICON=icon_name  

The name of a local image to display. If the UP.Browser cannot find the image in ROM, it retrieves it from the UP.Link server. 

See Figure 2-14 for a list of the icon names you can specify for this option. 

>  

 



Example

The following HDML deck generates the display shown in Figure 2-9:

FIGURE  2-13.     Display card with smileyface icon

FIGURE  2-14.     Icon names


[Cover] [Previous Section] [Next Section] [Index]

Current chapter: HDML Statement Reference
Section 27 out of 35 total sections , Section 11 out of 12 sections in this chapter


Copyright © 1999, Unwired Planet, Inc. All rights reserved.