Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make Row Flash (Change background Colour)

Status
Not open for further replies.

thankgodfortektips

Programmer
Dec 20, 2005
95
KY
Hi All,

I have searched and searched but can not find a thing on this.

I have an asp application and it displays a list of orders. What I then have it do is change the background colour of late orders to red. Then what i want it to do, with orders that are really late I want it to flash red then white red then white etc...

Is this possible? I have found somethings that make it happen on mouse over, but nothing to automatically make it flash.

Thanks in advance.

 
You would haver to have an animated gif set as the background of the row for it to blink, otherwise there is no HTML way to make it blink.

You can however make the text blink using the CSS property text-decoration:blink;

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
As a word of caution, you should rethink the strategy for very late orders -- people's eyes have been trained to ignore the blinking items, since the brain thinks it is some kind of ad. If they manage to not ignore the blinking, it just pisses them off completely. I would suggest maybe just a red text for late orders and red background for very late.
 
A better solution might be to use an icon of some kind. Using colours only works if you assume the user isn't colour blind in some way.

Expanding Vragabonds idea, how about setting a background colour based on the lateness? Slightly pale orange through to bright red. You could then programmatically work out just how late an order is and have a much finer scale of lateness!

Alternately, if you really want to make things flash take a look at the script.aculo.us or moofx javascript libraries. There are some nice effects available in those, one of which is a nice subtle colour flash/fade.

<honk>*:O)</honk>
Designease Ltd. - polyprop folders, ring binders and creative presentation ideas
Earl & Thompson Marketing - Marketing Agency Services in Gloucestershire
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top