Home
Home Page
Than differ id and class
Creation WAP of a page
Passions around AJAX are heated
Answers to often asked questions on XHTML and HTML
The sanction of the screen and marking of pages
Two styles ajax'?
Business Macromedia lives
XHTML+CSS. Advantages are obvious
Microformats
The semantic network based on microformats
Fonts and CSS
CSS from And up to I
Properties of the text
Illumination of the link
Change of a background in the table
Fixation of fonts on page with the help of the table of styles
Krossbrauzernoe alignment on the center
Polling with help AJAX
HTML
Links
 

Change of a background in the table

With the help of styles it is possible to create even such miracles, as change of color of a background of the table. For this purpose it is necessary to write small obrabotchik corresponding event, for example, hit of the cursor of a mousy to area of the table:



<table id=table onMouseover = " table.bgColor ='red ' " onMouseOut = " table.bgColor ='white ' " bgcolor=white border=1> <tr> <td>

At prompting the cursor of a mousy she will change color for the table.

</td> </tr> </table>


At prompting a mousy she will change color to area of the table with white on red. Accordingly, when the cursor of a mousy again will leave this area, she again becomes white.


Similarly it is possible to change not only color, but also a wallpaper of the table.


And still nebol`hhoj an example which shows as it is possible to lead round dynamically with help CSS the table a contour:



<table id=tabl1e onMouseover = " table1.border = and * 392; " onMouseOut = " table1.border=0 ' " border=0> <tr> <td>

<a href = *> At prompting the cursor of a mousy on the table she will be outlined by a contour;/a>

</td> </tr> </table>


As you can notice, CSS gives considerable enough opportunities of creation of dynamic page for the subsequent display in Internet Explorer. For Netscape Navigator to realize something similar, it is required or to use graphic elements, or layers. However fixing of fonts works both for that and for other browser the same as also realization of not underlined links, and it already gives a quite good field for activity.