Wml-onevent-tag
提供:Dev Guides
WML <onevent>タグ
<onevent> … </onevent>タグは、イベントハンドラーの作成に使用されます。
属性:
この要素は、次の属性をサポートしています。
Attribute | Value | Description |
---|---|---|
type |
|
Defines a type of event occurred. |
class | class data | Sets a class name for the element. |
id | element ID | A unique ID for the element. |
例:
以下は、<onevent>要素の使用方法を示す例です。 この例では、2番目のカードから最初のカードに戻ろうとするたびに onenterbackward が発生し、カード番号3に移動します。 このプログラムをコピーして貼り付け、試してみてください。