Line 149: | Line 149: | ||
<script> | <script> | ||
function showup(elementID) { | function showup(elementID) { | ||
− | + | var all = document.getElementsByClassName(' block'); | |
+ | for (var count = 0; count < length(all); count++) { | ||
+ | all[count].style.display = "none"; | ||
+ | } | ||
var elem = document.getElementById(elementID); | var elem = document.getElementById(elementID); | ||
− | |||
− | |||
− | |||
elem.style.display = "block"; | elem.style.display = "block"; | ||
Revision as of 12:51, 20 September 2017