Hi, I'm a beginner with html and javascript, so I try and edit other peoples free codes, Ive got some input boxes and I want to change the colour of them, they are the default white, I want them transparent, there is no code I can see that says its colour, I'm not sure what to change or put in so I can make the white part inside the input field transparent
Here is my script. you will see some white boxes, its this I'm trying to change colour.
<script language="JavaScript">
<!-- Begin
secs2 = 0;
count = 0;
allBpm = 0;
avgBpm = 0;
bpm = 0;
ns = (navigator.appName == 'Netscape');
ie = (navigator.appName == 'Microsoft Internet Explorer');
function bpmCounter(e) {
if (ns) clearBpm = e.which;
else if (ie) clearBpm = event.button;
timeSeconds = new Date;
secs = timeSeconds.getTime();
if (count == 0) {
document.BEATSPERMINUTE.AVG.value = "";
document.BEATSPERMINUTE.NOW.value = "READY! Start NOW!";
document.BEATSPERMINUTE.HIT.value = "";
document.BEATSPERMINUTE.ACG.value = "";
document.BEATSPERMINUTE.NCG.value = "";
secs2 = secs;
count++;
}
else {
oldBpm = bpm;
bpm = (1 / ((secs - secs2) / 1000)) * 60;
bpmChg = (Math.round((bpm - oldBpm) * 10)) / 10;
count++;
allBpm = allBpm + bpm;
oldAvg = avgBpm;
avgBpm = allBpm / (count - 1);
avgChg = (Math.round((avgBpm - oldAvg) * 10)) / 10;
secs2 = secs;
if (bpmChg >= 0) { PbpmChg = "+" + bpmChg } else { PbpmChg = bpmChg }
if (avgChg >= 0) { PavgChg = "+" + avgChg } else { PavgChg = avgChg }
document.BEATSPERMINUTE.AVG.value = (Math.round(avgBpm * 100)) / 100;
document.BEATSPERMINUTE.ACG.value = PavgChg;
document.BEATSPERMINUTE.NOW.value = (Math.round(bpm * 100)) / 100;
document.BEATSPERMINUTE.NCG.value = PbpmChg;
document.BEATSPERMINUTE.HIT.value = count;
}
return true;
}
document.onkeydown = bpmCounter;
document.onmousedown = bpmCounter;
// End -->
</script>
</head><body bgcolor="#ffffff" vlink="#0000ff">
<br>
<center>
<br>
<br>
<basefont size="3">
<font size="+2" face="Helvetica,Arial"></font><br>
<br>
<!-- Demonstration -->
<center>
<table border="0" width="320">
<tbody><tr><td align="middle" valign="top" width="50%">
<form name="BEATSPERMINUTE">
<table bgcolor="" border="0" cellpadding="3" cellspacing="0">
<tbody><tr><td align="middle">
<table bgcolor="" border="0" cellpadding="3" cellspacing="0">
<tbody><tr><td align="middle">
<table bgcolor="transparent" border="0" cellpadding="4" cellspacing="0">
<tbody><tr><td><font color="#FFFFFF"><tt>AVERAGE BPM</tt></font></td>
<td><input gtbfieldid="19" name="AVG"></td><td><input gtbfieldid="20"
name="ACG" size="6"></td></tr>
<tr><td><font color="#FFFFFF"><tt>ONCLICK BPM</tt></font></td>
<td><input gtbfieldid="21" name="NOW"></td><td><input gtbfieldid="22"
name="NCG" size="6"></td></tr>
<tr><td><font color="#FFFFFF"><tt>TIMING HITS</tt></font></td>
<td><input gtbfieldid="23" name="HIT"></td><td> </td></tr>
</tbody></table>
</td></tr></tbody></table>
</td></tr></tbody></table>
<br><p>
<br><br><br><br><br><br><br><br><br>
<br><br>
<input value="RESET " type="reset">
</p></form></td></tr></tbody></table>
</center>
<p>
</p><p>
<a name="source">
</a>
<a name="source"> </a>
</p>
</center>
</body></html>