Library tutorials & articles
Wireless Markup Language (WML) Tutorial
Images
WAP devices tend to have very small monochrome screens, approximately 100 x 50 pixels for a WAP phone. They use their own image format, wbmp, which fortunately is available on most graphics packages. The img element is used to draw images. As the img tag doesn't have a closing tag, a forward slash is required at the end of the element.The following table shows the attributes available for the img element.
| Attribute | Description |
|---|---|
|
|
Determines how the image is aligned with the text. The possible values are:
|
|
|
Textual description of the image. The text is displayed on the device while the image is being downloaded. If images are not supported on the device, the alternative text is displayed in its place. |
|
|
The height of the image. If this attribute is provided, the required space is allocated to the rendered page while the image downloads. The attribute may also be used to resize the height of an image. |
|
|
Used to determine the amount of white space around the sides of the image. |
|
|
Used to specify the location of the image source. |
|
|
Used to determine the amount of white space around the top and bottom of the image. |
|
|
The width of the image. If this attribute is provided, the required space is allocated to the rendered page while the image downloads. The attribute may also be used to resize the width of an image. |
The following example displays a picture of a smiley face.
smiley.wml
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="Welcome">
<p align="center">
Juicy Studio<br/>
<img src="images/smile.wbmp" alt="Smile" width="20" height="20"/><br/>
W@P
</p>
</card>
</wml>
Output From Program
The following shows the cards in the order they appear at 3 second intervals.
Related articles
Related discussion
-
Binary Studio | software development outsourcing Ukraine
by shane124 (4 replies)
-
ideas in building a captive portal
by sjranjan (2 replies)
-
A particular gallery image
by margy80 (0 replies)
-
(Very urgent)how to assign the value of the variable in javascript function into php variable
by mazhar_qayyum (3 replies)
-
Iterating through DB rows by column name
by fil.moore (0 replies)
Related podcasts
-
EarthClassMail.com - Moving from LAMP to .NET 3.5
Scott chats with Matt Davis, architect at EarthClassMail.com, about their move from a LAMP stack (Linux/Apache/mysql/PHP) to .NET 3.5. What's working, what's not, and what kinds of issues are they running into as their architect their solution.
Events coming up
-
Dec
3
The Auckland PHP December meetup
Auckland, New Zealand
Topic: Magento E-Commerce platform Speaker: Robert Popovic, LERO9, Robert is the Technical Director and co-founder of LERO9. Robert attended the Electrotechnical Faculty at The University of Belgrade where he graduated with a Masters in Computer Science and Information Technology. Robert has worked exclusively in the field of web and software development throughout his career.
hi
I am Jagannath working as Sr.Programmer in Med Write India Ltd. I have one doubt that how to search the latest modified file on the stipulated time and date.If you will help me then i will be happy
Bye
Jagannath
my alternate email address is b_jagan03@yahoo.co.in
Phno : 09849654314
Nice articlae but require more info on this
This thread is for discussions of Wireless Markup Language (WML) Tutorial.