当前位置: 首页 > 网络学院 > XML相关教程 > WAP > WML 计时器
A WML card can be set up to use the timer function of WML. The time unit of the timer is 1/10 of a second.
WML“card”可通过设置使用WML的计时函数,计时单元是0.1秒
The example below will display a message for 3 seconds, and then take you to the file "test.wml":
下面的例子会显示一条信息共3秒钟,并且进入文件"test.wml":
<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card ontimer="test.wml"> <timer value="30"/> <p>Some Message</p> </card> </wml> |