<HTML>
<HEAD>
<TITLE> Slash Header </TITLE>
</HEAD>
<script language= "JavaScript" >
function A (X,y,color)
{document.write (" ")}
</script>
<body leftmargin=0 topmargin=0> <br>
<table border=0 bgcolor= "000000" cellspacing= "1" width=400 >
<tr bgcolor= "FFFFFF" >
<TD width= "111" height= "the" ><table width= "100%" height= "100%" border= "0" cellpadding= "0" cellspacing= "0" >
<tr>
<TD id= "TD1" ></td>
<td> Results </td>
</tr>
<tr>
<td> name </td>
<TD id= "TD2" ></td>
</tr>
</table></TD>
<TD width= "Bayi" > Mathematics </TD>
<TD width= "" > English </TD>
<TD width= ">c" Language </TD>
</TR>
<tr bgcolor= "FFFFFF" >
<TD> Zhang San </TD>
<TD>55</TD>
<TD>66</TD>
<TD>77</TD>
</TR>
<tr bgcolor= "FFFFFF" >
<TD> John Doe </TD>
<TD>99</TD>
<TD>68</TD>
<TD>71</TD>
</TR>
<tr bgcolor= "FFFFFF" >
<TD> Harry </TD>
<TD>33</TD>
<TD>44</TD>
<TD>55</TD>
</TR>
</TABLE>
<script>
function GetTop (tdobj)
{
Vparent = tdobj.offsetparent;
t = tdobj.offsettop;
while (VParent.tagName.toUpperCase ()! = "BODY")
{
T + = Vparent.offsettop;
Vparent = vparent.offsetparent;
}
return t;
}
function GetLeft (tdobj)
{
Vparent = tdobj.offsetparent;
t = tdobj.offsetleft;
while (VParent.tagName.toUpperCase ()! = "BODY")
{
T + = Vparent.offsetleft;
Vparent = vparent.offsetparent;
}
return t;
}
function Line (X1,y1,x2,y2,color)
{
var tmp
if (X1>=X2)
{
tmp=x1;
x1=x2;
x2=tmp;
Tmp=y1;
Y1=y2;
y2=tmp;
}
for (Var i=x1;i<=x2;i++)
{
x = i;
y = (y2-y1)/(X2-X1) * (x-x1) + y1;
A (X,y,color);
}
}
Line (1, 1,100,100, "000000");
Line (GetLeft (TD1), GetTop (TD1), GetLeft (TD1) +td1.offsetwidth,gettop (TD1) +td1.offsetheight, ' #000000 ');
Line (GetLeft (TD2), GetTop (TD2), GetLeft (TD2) +td2.offsetwidth,gettop (TD2) +td2.offsetheight, ' #000000 ');
</script>
</BODY>
</HTML>
Effect:
Question: Can table diagonal be implemented; Result: HTML slash header