realcoder wrote:i have seen on many site two different colors applied on the same tr
how is this possible
The shortest answer, since you found an example, would be: look at the page you found and see how it was done.
I suspect that it's not the <tr> row element that has a background, but instead each <td> cell has its own background.
realcoder wrote:which function i use to specify two color effect on the same row
Whichever function you create, of course. 🙂 All you'd need to do is to keep track of what color the previous row began with and pick the alternate color for the current row. For the second/third/Nth cells within that row, you do the same logic (using the previous cell instead of row) to figure out which color to use.