格納型メニュー

2009.03.08
<head>
<script type=&quot;text/javascript”>

function ONOFF (id) {
ANS=document. getElementById(id);
switch (ANSWER.style.display) {
case “none” :
ANS.style.display=&quot;block”;
break;
case “block” :
ANS.style.display=&quot;none”;
break;
}
}

<head>
<html>
<div class=&quot;question” onClick=&quot;javascript:ONOFF(’install-006′)” onKeypress=&quot;javascript:ONOFF(’install-006′)”>
表示部分

</div>
<div id=&quot;install-006″ class=&quot;answer” style=&quot;display:none;” onClick=&quot;javascript:ONOFF(’install-006′)” onKeypress=&quot;javascript:ONOFF(’install-006′)”>
格納表示部分

</div>
</html></head></script></head>

Tags:

コメントは受け付けていません。