
November 23rd, 2000, 02:00 AM
|
|
Junior Member
|
|
Join Date: Oct 2000
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
This code probably work in both IE and NE (I havn't tested it in NE though).
I you think the code is messy you could call a function in the input-tag and then put the "if (document.layers) blah blah blah" in the header.
<html>
<form>
<input type="radio" name="agree" value="yes" onClick="if (document.layers) { document.okay.visibility='show'; } else { okay.style.visibility='visible'; }">I agree<br>
<input type="radio" name="agree" value="no" checked onClick="if (document.layers) { document.okay.visibility='hide'; } else { okay.style.visibility='hidden'; }">I do not agress<br>
<div id="okay" style="visibility: hidden;">
<input type="submit" value="Submit!"><br>
</div>
</form>
</html>
|