
|
 |

Page timers
Sometimes you may want a page, such as a
title to appear for a few seconds, before displaying the main content of a WAP
site. Using the <timer value> tag will enable you to do this. The
demonstration below, displays the first card in a deck, then automatically
switches to the second card after approximately five seconds. Most
applications, would have a site logo in the first card, followed by the WAP
page in the second.
An example follows...
<?xml
version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="MainCard" title="This is a
first card" ontimer="#cardtwo">
<timer value="50"/>
<p align="center">
This card will change automatically in a few seconds
</p>
</card>
<card id="cardtwo" title="This is
the second card">
<p align="center">
This is the second card
</p>
</card>
</wml>
|
|

|