1 <?xml version="1.0"?> 2 <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> 3 <wml> 4 <head> 5 <meta http-equiv="Cache-Control" content="max-age=0"/> 6 </head> 7 8 <card id="card1" ontimer="#card2" title="Card one"> 9 <p>This test case is used to test timer in WML </p> 10 <timer name="time1" value="50"/> 11 <p> 12 This is card one<br/> 13 The timer is triggered by the ontimer intrinsic event(ontimer as attribute of card element)<br/> 14 When the timer is timeout(after 5s), will jump to card two. 15 </p> 16 </card> 17 18 <card id="card2" title="Card two"> 19 <onevent type="ontimer"> 20 <go href="#card1"/> 21 </onevent> 22 <timer name="timer2" value="30"/> 23 24 <p> 25 This is card Two!<br/> 26 The timer is triggered by the ontimer intrinsic event(ontimer is specified by onevent element)<br/> 27 When the timer is timeout(after 3s), will jump back to card one. 28 </p> 29 </card> 30 </wml> 31