![]() |
|
|
Thread Tools |
|
#1
|
||||
|
||||
|
alternating row color
Im trying to make a classifieds hack for my board and i want to list all results in a table, it works fine but i can't get the row colors to alternate so that both second and firstaltcolor is used, ive tried to do it according to some tutorials but it doesnt seem to work on vb.
This is my query for displaying a list of the ads
So could someone tell me what i should write to get alternating row colors working. No members have liked this post.
Last edited by DjSap : 27 Feb 2002 at 12:50. |
||||
|
#2
|
||||
|
||||
|
See my thread in the Hints and Tips forum.
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
|
#3
|
|||
|
|||
|
Where is it?
You mentioned a thread about alternating row colors in the
hints/tips forum but I could not find it. I'd like to replace my XMB board with a VBulletin board but want to keep the same scheme, like the screenshot below. ![]() No members have liked this post.
|
|
#4
|
||||
|
||||
|
For anything like this, you can use a function similar to the following :
... basically, doing a 'modulus' operator divides 'x' by 'y', and returns the remainder.... as be do a modulus 2, if the number is not directly divisable by 2 (doesn't return a remainder of 0), then the number is not even, otherwise, it is. Using that technique, you can display alternate stuff, depending on a counter being ODD or EVEN. No members have liked this post.
|
||||
|
#5
|
|||
|
|||
|
I know...
I *know* how to do it, it's just *where* in the vB code I need to.
As you can see, I was able to do it to XMB. FireFly posted that he had a completed mod and I couldn't find the post. I was just asking where to get the mod... No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 23:11.



