Results 1 to 2 of 2
- 09-22-2008, 05:18 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 1
- Rep Power
- 0
document.getElementById - Help needed
Picture : h tt p://img221.imageshack.us/img221/6710/a1to2.jpg
if ( document.getElementById ( "input_field_1" ).value != "" )
color = document.getElementById ( "input_field_1" ).value;
else
color = "#AFD8F8";
Currently, using the code above. If I click on the first color button, the whole graph changes to the color chosen.
How do I make it that if I want different colors on different bars assuming the others are using "input_field_#". So if I want "Q2" to be green, "Q3" to be purple and so on, how do i do that?
- 09-22-2008, 05:51 PM #2
Similar Threads
-
Building a document from a DOM
By Java Tip in forum Java TipReplies: 0Last Post: 01-03-2008, 09:22 AM -
Need help with Document interface
By cbalu in forum AWT / SwingReplies: 1Last Post: 11-30-2007, 11:03 PM -
Personal Document Manager 0.6
By JavaBean in forum Java SoftwareReplies: 0Last Post: 08-11-2007, 10:43 PM -
Parsed Document
By nick211001 in forum New To JavaReplies: 1Last Post: 07-29-2007, 01:53 AM -
add a xml document
By Jack in forum XMLReplies: 2Last Post: 07-04-2007, 09:21 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks