The principle is to use the Alpha filter to add a transparent gradient to each table, controlled by the background color of the table, with a single TD controlling another color gradient
Alpha Filter
Syntax: {filter:alpha (opacity=opacity,finishopacity=finishopacity,style=style,startx=startx,starty=starty,finishx= Finishx,finishy=finishy)}
Filter:alpha (opacity=100, finishopacity=0, style=1, startx=0, starty=0, finishx=0, finishy=100);
The ' Alpha ' attribute mixes a target element with the background. Designers can specify values to control the degree of mixing. This "mixed with the background" is popularly said to be the transparency of an element. By specifying the coordinates, you can refer to the transparency of the fixed-point, line, and surface. Their parameters mean the following:
"Opacity ' represents the level of transparency. The default range is from 0 to 100, and they are actually in the form of percentages. In other words, 0 represents total transparency, and 100 represents total opacity. "Finishopacity" is an optional parameter and you can use them to specify the transparency at the end if you want to set the transparency effect of the gradient. The range is also 0 to 100. The style parameter specifies the shape characteristics of the transparent area. 0 represents a uniform shape, 1 represents linear, 2 represents radial, and 3 represents a rectangle. "StartX" and "Starty" represent the start x and y coordinates of the gradient transparency effect. The "Finishx" and "finishy" represent the coordinates of the gradient transparency effect ending x and Y.
<body bgcolor= "#EEEEEE" > <style type= "text/css" > <!--. XR td {Font-family: "Tahoma"; font-size:12px; Font-weight:bold; Text-align:center; Filter:alpha (opacity=100, finishopacity=0, style=1, startx=0, starty=0, finishx=0, finishy=100); } table {font-family: "Tahoma"; font-size:12px; --> </style> <table width= "80%" border= "0" cellpadding= "5" cellspacing= "1" bgcolor= "#003399" > <tr Bgcolor= "#FFFFFF" class= "XR" > <td width= "a" bgcolor= "#00FFFF" >ID</td> <td bgcolor= "#99FF00" > name</td> <td bgcolor= "#FF0000" >ICQ</td> <td bgcolor= "#FFCC00" >MSN</td> <td bgcolor = "#66CC00" >Homepage</td> <td bgcolor= "#003366" >Date</td> <td bgcolor= "#CC3300" >content </td> </tr> <tr align= "center" bgcolor= "#FFFFFF" > <td> </td> <td> </td> &L t;td> </td> <td> </td> <td> </td> <td>;/td> <td> </td> </tr> </table>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]