Expand|Select|Wrap|Line Numbers
- <div id="title" style="display: block; width: 900px; height: 475px; margin: 0 auto;">
- some content
- </div>
- <div id="instructions" style="display: none; width: 900px; height: 475px; margin: 0 auto;">
- other content
- </div>
Expand|Select|Wrap|Line Numbers
- <input type="text" name="instruction" id="instruction" onkeydown="toggle_visibility()" style="width: 20px; border: 0; font-size: 14pt;"/>
Expand|Select|Wrap|Line Numbers
- <script type="text/javascript">
- <!--
- function toggle_visibility() {
- var a = document.getElementById('title');
- var b = document.getElementById('instructions');
- if (document.story.instruction.value == "y")
- {
- a.style.display = 'none';
- b.style.display = 'block';
- }
- else
- {
- a.style.display = 'none';
- b.style.display = 'none';
- }
- }
- //-->
- </script>