On Mar 28, 6:57 pm, "Techhead" <jorgenso...@gmail.comwrote:
How can I implement a rising/falling trend arrow based on a number
that may rise or fall. For example, if the number (variable) is 100
and changes to 101, the "arrow" changes to "up", if the number goes
back to 100, the arrow changes to "down". I'm not a statistical guru
but I am sure there is a definition for this.
I am getting my number variable from a sql server via a query.
If you want to make it client-side then te simpliest way IMHO is to
make three small - say 16x16 - gif images:
1) transparent
2) arrow up
3) arrow down
Then all stock labels are served with transparent gif first and client-
side you do something like:
if (oldVal >= newVal) {
imgObject.src = 'arrowUp.gif';
}
else {
imgObject.src = 'arrowDown.gif';
}
Actually such kind of things is more reliable and natural to prepare
server-side rather than using client-side scripting - IMHO