Timer
'accept' key goes to card_wait.
_wml
_card
_do "type='accept' label='Start'"
__go "href='#card_wait'"
do_
input waiting time in the unit of 1/10 second. The format='*N' represents any numeric characters.
_p
quote "wait sec*(1/10):"
__input "name='time_var' format='*N'"
p_
card_
ontime specifies timeout hyperlink. onbackward set time_var to initial value '50'.
_card "id='card_wait' ontimer='#card_stop'"
_onevent "type='onenterbackward'"
_refresh
__setvar "name='time_var' value='50'"
refresh_
onevent_
set the timer to time_var, default time value is 50 (5 seconds).
__timer "name='time_var' value='50'"
_do "type='accept' label='Stop'"
__go "href='#card_stop'"
do_
use {} to avoid string evaluation. $(time_var) is a WML variable.
_p "align='center'"
quote {Wait $(time_var)/10 second and goto stop card.}
p_
card_
display stop card.
_card "id='card_stop'"
_p
quote "Stop Here!"
p_
card_
wml_
|