Posted By

krisdb on 03/08/07


Tagged

ASP


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

nelda751


alternating row colors


 / Published in: ASP
 

  1. Dim sBgcolor
  2.  
  3. if (i mod 2 = 0) then
  4. sBgcolor = "#eee"
  5. else
  6. sBgcolor = "#fff"
  7. end if
  8.  
  9. <tr style="background-color:<%=sBgcolor%>;" onMouseOver="this.style.background='#ddd;'" onMouseOut="this.style.background='<%=sBgcolor%>;'">

Report this snippet  

You need to login to post a comment.