<script>
if($("#div_img").css("display") == "block"){ //block 속성인 div는 안보이게
$("#div_img").hide();
} else {
$("#div_img").show();
}
// 응용
function mid_img(img_no) {
var cnttt = $("#tb_cnt").val() - 1;
img_no = Number(img_no);
for(d_img = 1; d_img <= cnttt; d_img++) {
if($("#div_img_"+d_img).css("display") == "block"){
$("#div_img_"+d_img).hide();
}
}
$("#div_img_"+img_no).show();
}
</script>