Wml-card-tag
提供:Dev Guides
WML <カード>タグ
<card>要素は、デッキ内のWMLカードを囲みます。 さらに、<p>要素で囲まれたテキストとグラフィックスには、いくつかのイベントバインディングも含まれる場合があります
属性:
<card>要素は、次の属性をサポートしています。
Attribute | Value | Description |
---|---|---|
title | cdata | Gives a title to this card. This title is displayed in some way by the browser when the card is visible. |
newcontext |
|
Specifies that when this card is entered, the browser context should be cleared. |
ordered |
|
Provides a hint to the browser about how the card is organized. Set it to true if the card consists of a number of separate fields that should be dealt with in the order they appear in the card. Set it to false if the card contains optional fields or may be filled in out of order. |
onenterforward | URL | Occurs when the user navigates into a card using a "go" task |
onenterbackward | URL | Occurs when the user navigates into a card using a "prev" task |
ontimer | URL | Occurs when a "timer" expires |
xml:lang | language_code | Sets the language used in the element. |
class | cdata | Sets a class name for the element. |
id | element_ID | A unique ID for the element. |
例:
以下は、この要素の使用法を示す例です。
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
"http://www.wapforum.org/DTD/wml12.dtd">
<wml>
<card id="one" title="First Card">
<p>
This is the first card in the deck
</p>
</card>
<card id="two" title="Second Card">
<p>
Ths is the second card in the deck
</p>
</card>
</wml>