THE PIZZA PENGUIN EXAMPLE
Below is a complete WML code listing from a WAP demonstration application. The examples in the previous chapters were mainly selected from this application.
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC
<wml>
<card id="first" title="Pizza Penguin" newcontext="true"> <onevent type="ontimer">
<go href="#second"/> </onevent>
<timer value="70"/>
<p>
<table align="cc" columns="2"> <tr>
<td>
<a href="#second"><img alt="Penguin" src="bigpenguin.gif" hspace="4" vspace="3" width="88" height="88"/></a></td>
<td>
<br/><b><big><a href="#second">Welcome</a></big></b><br/> to<br/>
The Mobile Way of Ordering Pizza.<br/><br/> <a href="#fifth">[Contact Us]</a></td>
</tr>
</table>
</p>
</card>
<card id="second" title="Order">
<p>
<b>Select Pizza</b> <select title="Type">
<option>Cappriciosa</option> <option>Quatro Staggioni</option> <option>Margherita</option> <option>Campagnola</option> <option>Siciliana</option>
</select>
<a href="#pizzainfo">What's On</a> </p>
<p>
<b>Select Size</b> <select title="Size">
<option>Large</option>
<option>Medium</option>
<option>Small</option>
</select>
</p>
21