lkeeney
03-05-2004, 07:17 PM
I have a simple problem I have been working on for two days and I can't figure out how to do it.
I have a file called redbar.gif that is 1 pixel high x 25 pixels wide.
I want to place this image on the screen at a predetermined absolute position, and be able to change the height of the image (from 1 to 200 pixels) based in the value stored in a variable called "data".
The end results is to generate a single vertical bargraph.
It seems that this should be able to be done with a couple lines of JavaScript. I just can't figure out how to do it.
A search on this forum did not reveal anything like this.
Any help will be appreciated.
I have a file called redbar.gif that is 1 pixel high x 25 pixels wide.
I want to place this image on the screen at a predetermined absolute position, and be able to change the height of the image (from 1 to 200 pixels) based in the value stored in a variable called "data".
The end results is to generate a single vertical bargraph.
It seems that this should be able to be done with a couple lines of JavaScript. I just can't figure out how to do it.
A search on this forum did not reveal anything like this.
Any help will be appreciated.