<td width="300" bgcolor="#CCCCCC" class="stylegrey18" ID="text2" div label align:"top">Enter PDB ID number:
<input type="text" name="PDB_IDnumber" maxlength=4 size=30></td>
</tr>
兩個(gè)function:
function getObj(name){
if (document.getElementById){
this.obj = document.getElementById(name);
this.style = document.getElementById(name).style;
}
else if (document.all) {
this.obj = document.all[name];
this.style = document.all[name].style;
}
else if (document.layers) {
this.obj = document.layers[name];
this.style = document.layers[name];
}
}
function changeMultiCols(texton1, texton2, textoff1, textoff2){
if (!DHTML) return;
if (texton1 != "") {
var textona = new getObj(texton1);
textona.style.color = '#FF0000';
}
if (texton2 != "") {
var textonb = new getObj(texton2);
textonb.style.color = '#FF0000';
}
if (textoff1 != "") {
var textoffa = new getObj(textoff1);
textoffa.style.color = '#999999';
}
if (textoff2 != "") {
var textoffb = new getObj(textoff2);
textoffb.style.color = '#999999';
}
}