Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function hideshow(which){
- if (!document.getElementById)
- return
- if (which.style.display=="block")
- which.style.display="none"
- else
- document.getElementById('adiv1').style.display = "none";
- document.getElementById('adiv2').style.display = "none";
- document.getElementById('adiv3').style.display = "none";
- which.style.display="block"
- }
- </script>
- <a href="javascript:hideshow(document.getElementById('adiv1'))">Option 1</a>
- <div id="adiv1" style="font:24px bold; display: block">Option 1 description</div>
- <a href="javascript:hideshow(document.getElementById('adiv2'))">Option 2</a>
- <div id="adiv2" style="font:24px bold; display: block">Option 2 description</div>
- <a href="javascript:hideshow(document.getElementById('adiv3'))">Option 3</a>
- <div id="adiv3" style="font:24px bold; display: block">Option 3 description</div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement