Infoboxtabs.js

From Dave and Bambi Wiki
Jump to navigation Jump to search
   function showImage(imageId) {
       var images = document.getElementsByClassName('image-content');
       for (var i = 0; i < images.length; i++) {
           images[i].style.display = 'none';
       }
       document.getElementById(imageId).style.display = 'block';
   }