Tip: you can modify some code before running
<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>The diagonal lines in the table are similar to those in the course list.</title></head><script Language="javascript">Function a (x, y, color) {document. write ("")}</script><body leftmargin=20 topmargin=20><TABLE border=0 bgcolor="000000" cellspacing="1" width=400><TR bgcolor="FFFFFF"> <TD id="td1"> </tD> <TD>Zhang San</tD> <TD>Li Si</tD> <TD>Wang Wu</tD></tR><TR bgcolor="FFFFFF"> <TD>Mathematics</tD> <TD>55</tD> <TD>66</tD> <TD>77</tD></tR><TR bgcolor="FFFFFF"> <TD>English</tD> <TD>99</tD> <TD>68</tD> <TD>71</tD></tR><TR bgcolor="FFFFFF"> <TD>Chinese</tD> <TD>33</tD> <TD>44</tD> <TD>55</tD></tR></tABLE><script>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(td1.offsetLeft,td1.offsetTop,td1.offsetLeft+td1.offsetWidth,td1.offsetTop+td1.offsetHeight,'#000000')</script></bODY></html>
Tip: you can modify some code before running