吴伟贤のBlog

Feed Rss

wml中页面自动跳转的实现方法

08.13.2009, div+css & html, by .

下面的例子将把 "Hello World!" 显示 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>Hello World!</p>
</card>
</wml>

注意:<timer> 标签是在<card> 与<p> 标签之间的!否则不会跳转!

评论已关闭。