Nokia 9110i 사용자 설명서

다운로드
페이지 26
18 (26)
Example 4. Image handling
<wml>
<card id="card1" title="The sun - images">
<p>
original size:<img src="sunny.wbmp" alt="sun"/>
enlarged image:<img src="sunny.wbmp" alt="sun" height="40%" width="40%"/>
<br/>
stretched image:<img src="sunny.wbmp" alt="sun" hspace="80" vspace="30"
height="40" width="80"/>
</p>
<do type="prev" label="Back">
<prev/>
</do>
</card>
</wml>
5.2.2  ANCHOR & A – Hyperlink
Use the 
<anchor>
 
element to create a hyperlink. A hyperlink provides easy navigation through an
application and lets the user navigate to a new location. Link can be either text or an image. The <
a>
element is a short form of the <
anchor>
 
element, and is bound to a go task without variables. In
general it is recommended to use the <
a
> element instead of <
anchor>
 
where possible, to allow
more efficient tokenisation.
Anchor- and a- attributes:
title
specifies a brief text string identifying the link. In 9110i the link is displayed on a title
row, right side.
In example 5 there is a text link (the "products" card) and an image link (the "group" card) to another
card in the deck. The user activates a link by pressing go-button. The second card ("products") has links
to a local URL ("Mobile Phones" and “Wireless Data). “Nokiahome” is a link back to the first card.
Anchored links are rendered as underlined, and when selected with highlight emphasis. Note that as
links are placed within text the spaces around it has to be defined separately, this can be done by using
non-breaking space (&#160;) before and after the link.
Example 5, Text and image as a link
<wml>
<card id="nokiahome" title="Nokiahome">
<p>