TomDenver
09-29-2003, 04:30 PM
I'm having trouble getting this effect to work in Netscape, it works perfectly in IE. I have a table inside a form. Each <input> element has an onFocus and onBlur effect to change the bgColor of the table row that the <input> is in. It highlights the row green onFocus, and returns it to original color onBlur.
You can view this form here: http://www.churchpartner.com/furn/freight.htm
In Netscape it does nothing. Here's a snippet of the code:
<TR bgcolor="ddddff">
<TD colspan=2 id=input>
Organization:<INPUT type="text" name="Organization" size=36
onFocus="document.all.input[0].bgColor='#DFFFDF'"
onBlur="document.all.input[0].bgColor='#ddddff'">
Contact Name:<INPUT type="text" size=28 name="ContactName"
onFocus="document.all.input[0].bgColor='#DFFFDF'"
onBlur="document.all.input[0].bgColor='#ddddff'">
</TD>
</TR>
There's several more table rows in it obviously, but they just repeat this pattern. Each <TD> has the ID attribute set to "input" and I call on each one in JavaScript using document.all.input[0], document.all.input[1] and so on.
Is there any way to make this work in Netscape?
You can view this form here: http://www.churchpartner.com/furn/freight.htm
In Netscape it does nothing. Here's a snippet of the code:
<TR bgcolor="ddddff">
<TD colspan=2 id=input>
Organization:<INPUT type="text" name="Organization" size=36
onFocus="document.all.input[0].bgColor='#DFFFDF'"
onBlur="document.all.input[0].bgColor='#ddddff'">
Contact Name:<INPUT type="text" size=28 name="ContactName"
onFocus="document.all.input[0].bgColor='#DFFFDF'"
onBlur="document.all.input[0].bgColor='#ddddff'">
</TD>
</TR>
There's several more table rows in it obviously, but they just repeat this pattern. Each <TD> has the ID attribute set to "input" and I call on each one in JavaScript using document.all.input[0], document.all.input[1] and so on.
Is there any way to make this work in Netscape?