替代行颜色
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了替代行颜色相关的知识,希望对你有一定的参考价值。
'************************************************ ' ' To use it put the code like this on your loop: ' ' <%counter = counter + 1%> ' <tr bgcolor="<%=Acolor(counter,"#a0a0a0","#e0e0e0")%>"> ' <td>Data</td> ' </tr> ' ' n is the external counter ' col is the first color in hex format ' col2 is the second color in hex format, you can leave it empty '************************************************ function Acolor(n,col,col2) num = 0 num = n mod 2 if col2 = "" then col2 = "#ffffff" if num = 0 then Acolor = col else Acolor = col2 end if end function
以上是关于替代行颜色的主要内容,如果未能解决你的问题,请参考以下文章