Forums

This topic is locked

Alternating Row Colors

Posted 17 Dec 2001 16:20:37
1
has voted
17 Dec 2001 16:20:37 Stuart Chase posted:
I've seen similiar posts, but I want to alternate like every fifth row in a table of results from a database. I do not need the row to have a specific result, more so someone will not check the wrong section. Or even better, highlight a row once a person checks a checkbox. Although I think this will need a refresh of the page.



Replies

Replied 17 Dec 2001 17:11:23
17 Dec 2001 17:11:23 Peter R replied:
I don't know how, but there must be a way to highlight a row when a checkbox is checked without refreshing the page. That's how it is displayed in hotmail. You check a box to delete an email, and the whole table row changes colour(no refreshes).
Replied 18 Dec 2001 15:41:20
18 Dec 2001 15:41:20 TC McFall replied:
the effect at Hotmail is achieved through a mix of CSS and JS file dependence. I downloaded the files and recreated a dummy "inbox" page with the checkbox you mentioned. I have put them into a .rar and sent them to the e-mail address listed in schase's profile.
simply extract (with folder structure) to your desktop and define a site from the resulting folder!

I hope this helps you in figuring out how this works. If I had more time I would clean the JS and CSS files to get rid of all the extra junk, but hey.....you gotta work a little!
<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>

There are no "webmasters"...only "webstudents". Now, snatch the floppy from my hand, grasshopper.
Replied 18 Dec 2001 18:54:03
18 Dec 2001 18:54:03 Stuart Chase replied:
Thank you chrome, I will have to check that out a little later on today. Currently engrossed in a major intake of java (bean type) <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Replied 19 Dec 2001 20:08:56
19 Dec 2001 20:08:56 TC McFall replied:
no prob!
<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
in fact, if you do get around to cleaning this up and streamlining the code...i would love to see (**steal**) it!

-kr0m3

There are no "webmasters"...only "webstudents". Now, snatch the floppy from my hand, grasshopper.
Replied 02 Jan 2002 20:20:26
02 Jan 2002 20:20:26 Tolu Ayoola replied:
go to www.macromedia.com, select products --&gt;ultradev--&gt;technotes--&gt;search--&gt; keyword
"alternate color" and you'll see the article there. does it help?

The initial fright of failure is the beginning of failure itself -Tolu
Replied 07 Jan 2002 15:45:46
07 Jan 2002 15:45:46 Owen Eastwick replied:
If you just want to make every fifth row a differsent colour then:

&lt;tr &lt;% If Repeat1__numRows Mod 5 Then %&gt;bgcolor="#CCCCCC"&lt;% End If %&gt;bgcolor="#FF9900"&gt;

Will make every fifth row #FF9900

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 08 Jan 2002 02:13:20
08 Jan 2002 02:13:20 Martin Cooney replied:
I'm only a relative newbie to Ultradev and hard coding ASP but found the Ultradeviant Alternate Row Color extension a real gem. Search at Macromedia's extension resource on Ultradeviant to nab it.
It uses the 'Mod 2' syntax so I'm sure once you've added it to your page, a small alteration to 'Mod 5' as oeastwick mentioned should get you on your way.

Hope this helps
Replied 15 Jan 2002 15:41:38
15 Jan 2002 15:41:38 Stuart Chase replied:
Hey Guys,

Wanted to give a brief update. I have not forgotten about the many suggestions here.

In fact I want to combine some together into one. I will put it up at that point. Just have not had the time to sit down with it yet.......babysitting employees <img src=../images/dmxzone/forum/icon_smile_dissapprove.gif border=0 align=middle>

Reply to this topic