Yet another Table coloring
This gives an alternating line color on tables, it also allows a realtime highlighting.
Original Author: Jonathan Barton
Inputs
All explained int he code
Returns
All explained within the code
Code
<%
'The const's are for the colors and the Flag is needed
Const sPrimaryColor = "WHITE"
Const sSecondaryColor = "YELLOW"
Dim bColorFlag
dim lCounter
'This function does all the work for you.
Function LineColor()
bColorFlag = not bColorFlag
If bColorFlag then
LineColor = sPrimaryColor
Else
LineColor = sSecondaryColor
End if
End Function
%>
Alternating Line Colors
<%
for lCounter = 1 to 10
Response.Write("" & vbCrLf) " & vbCrLf)
Response.Write(" " & vbCrLf)
Response.Write("
next
%>
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.