クリックで表示/非表示

function switchDisp (objName) {
 var obj = document.getElementById(objName).style;
 if (obj.display == 'none') obj.display = "block"; else obj.display = "none";
}

Leave a Reply