|
Colors:
One
of the biggest advantages of i-Mode is that it can handle
colors. This is explained rather easily, since the cHTML colors
are almost identical to the HTML-colors. Colors are not always
displayed, because some i-Mode devices do not have the
capability to handle it. Most new i-Mode phones, however, will
be ready for that standard. If the phone is not able to display
the colors, they are simply ignored and should not produce an
error message.
There
are 16 default colors, which can be entered by the direct name.
The other 256 colors, which can be displayed. The cHTML color
system is also using the hexadecimal system which is a regular
for HTML. Here is a table with the 16 default colors and their
hexidecimal numbers.
The
16 default colors:
Aqua="#00FFFF"
Blue="#0000FF"
Black="#000000"
Fuchsia="#FF00FF"
Gray="#808080"
Green="#008000"
Lime="#00FF00"
Maroon="#800000"
Navy="#000080"
Olive="#808000"
Purple="#800080"
Red="#FF0000"
Silver="#C0C0C0"
Teal="#008080"
White="#FFFFFF"
Yellow="#FFFF00"
Here's
an example for the programming of the font color purple.
<HTML><HEAD><TITLE>Purple</TITLE></HEAD><BODY>
<FONT color="#800080">Purple.</FONT>
</BODY></HTML>
Let's
take a look at how it would look if you customized font,
background and link color.
<HTML><HEAD><TITLE>Colors</TITLE></HEAD> <BODY>
<BODY bgcolor="#008000" text="#FFFFFF" link="#808080">
This is written in white with a green background and grey links.
</BODY>
</HTML>
MORE
Copyright ©
1999-2002 www.ccWAP.com All rights reserved
|