Dronealone
IS-IT--Management
Hi,
Can anybody tell me how to make the following code Mozilla friendly, works fine in IE6...
function toggle(target)
{
obj=(document.all) ? document.all[target] : document.getElementById(target);
obj.style.display=(obj.style.display=='none') ? 'inline' : 'none';
}
This function used in conjunction with these table rows:
<tr valign="top">
<td bgcolor="#ffffff"><b>Question?</b> *</td><td bgcolor="#ffffff"><INPUT type="radio" value="Y" name="consulting" onClick="toggle('interest')"> yes <INPUT
type="radio" CHECKED value="N" name="consulting" onClick="toggle('interest')"> no</td>
</tr>
<tr id="interest" style="display:none;" valign="top">
<td bgcolor="#ffffff">
<b>Another question?</b>
</td>
<td bgcolor="#ffffff">
<INPUT type="radio" value="internal" name="software_interest" CHECKED> Internal work<br>
<INPUT type="radio" value="external" name="software_interest"> External engagements
</td>
</tr>
Thanks very much!
Can anybody tell me how to make the following code Mozilla friendly, works fine in IE6...
function toggle(target)
{
obj=(document.all) ? document.all[target] : document.getElementById(target);
obj.style.display=(obj.style.display=='none') ? 'inline' : 'none';
}
This function used in conjunction with these table rows:
<tr valign="top">
<td bgcolor="#ffffff"><b>Question?</b> *</td><td bgcolor="#ffffff"><INPUT type="radio" value="Y" name="consulting" onClick="toggle('interest')"> yes <INPUT
type="radio" CHECKED value="N" name="consulting" onClick="toggle('interest')"> no</td>
</tr>
<tr id="interest" style="display:none;" valign="top">
<td bgcolor="#ffffff">
<b>Another question?</b>
</td>
<td bgcolor="#ffffff">
<INPUT type="radio" value="internal" name="software_interest" CHECKED> Internal work<br>
<INPUT type="radio" value="external" name="software_interest"> External engagements
</td>
</tr>
Thanks very much!