1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<html>
<head>
<script language="javascript">
function show(divDest)
{
showDiv = document.getElementById(divDest);
showDiv.style.display = 'block';
}
function hidden(obj)
{
obj.style.display = 'none';
}
</script>
</head>
<body>
<div onclick="show('reponse_1');">menu 1</div>
<div style="display: none;" id="reponse_1" onclick="hidden(this);" >reponse 1</div>
<div onclick="show('reponse_2');">menu 2</div>
<div style="display: none;" id="reponse_2" onclick="hidden(this);">reponse 2</div>
<div onclick="show('reponse_3');">menu 3</div>
<div style="display: none;" id="reponse_3" onclick="hidden(this);">reponse 3</div>
</body>
</html> |