geke hand
A N S W E R S
Question: to change the color of progress bar in java

(asked by kranthi)

Answer:

(answered by phalen on 12/28/2004)

The ID of the element you want to change is the name of the progress bar with the word "fill" appended. In my example, the bars are "progbar" and "subbar", so the colored portion of the bars would be "progbarfill" and "subbarfill", respectively.

Here's some code for changing the color of the bar:

document.getElementById("progbarfill").style.backgroundColor = '#ffffff';

Hope that helps!

A N S W E R S

design by G E K E . N E T
best viewed in 1024x768 screen resolution using a standards compliant browser
logo based on a public domain drawing of a hand making the sign of the cross, no disrespect is intended
all other contents and code copyright © 2002-2005 jonathan cook

Valid HTML 4.01! Valid CSS!