Assuming you can get the value to a variable in JavaScript, you can use something like this.
Code:
function SystemStatus(){
Switch (status)
status = 0
status_pic.innerHTML = "<span style='color: #000000'>Monitor 1</span> <img src='images/status_down.png' />"
break;
status = 1:
status_pic.innerHTML = "<span style='color: #FF0000'>Monitor 1</span> <img src='images/status_off.png' />"
break;
status=2
status_pic.innerHTML = "<span style='color: #00FF00'>Monitor 1</span> <img src='images/status_up.png' />"
break;
}
Then in your
HTML, you wil lhave the following.
Code:
<div id="status"> </div>
Then you will need to have update the value of status and the function at the same time, say every 30 seconds.