$(document).ready(function () { $('.submn-tit h2').addClass('wow fadeInDown'); $('.submn-tit p').addClass('wow fadeInDown'); // $('.submn').addClass('animated wow fadeIn'); $('.formmail_cell_bgcolor a img').attr({src:"https://donghaee.cafe24.com/default/img/yeogi/css/btn_zip.png"}); var doc_h = $(document).height(); var win_w = $(window).width(); var st = $(window).scrollTop(); if (st > 200) { $(".subarea").addClass("side_scroll"); } else { $(".subarea").removeClass("side_scroll"); } $(window).scroll(function () { var st = $(window).scrollTop(); if (st > 400) { $(".subarea").addClass("side_scroll"); } else { $(".subarea").removeClass("side_scroll"); } }); }); //제품갤러리 function myFunction1(imgs) { // Get the expanded image var expandImg = document.getElementById("expandedImg1"); // Get the image text var imgText = document.getElementById("imgtext1"); // Use the same src in the expanded image as the image being clicked on from the grid expandImg.src = imgs.src; // Use the value of the alt attribute of the clickable image as text inside the expanded image imgText.innerHTML = imgs.alt; // Show the container element (hidden with CSS) expandImg.parentElement.style.display = "block"; } function myFunction2(imgs) { // Get the expanded image var expandImg = document.getElementById("expandedImg2"); // Get the image text var imgText = document.getElementById("imgtext2"); // Use the same src in the expanded image as the image being clicked on from the grid expandImg.src = imgs.src; // Use the value of the alt attribute of the clickable image as text inside the expanded image imgText.innerHTML = imgs.alt; // Show the container element (hidden with CSS) expandImg.parentElement.style.display = "block"; } function myFunction3(imgs) { // Get the expanded image var expandImg = document.getElementById("expandedImg3"); // Get the image text var imgText = document.getElementById("imgtext3"); // Use the same src in the expanded image as the image being clicked on from the grid expandImg.src = imgs.src; // Use the value of the alt attribute of the clickable image as text inside the expanded image imgText.innerHTML = imgs.alt; // Show the container element (hidden with CSS) expandImg.parentElement.style.display = "block"; } function myFunction4(imgs) { // Get the expanded image var expandImg = document.getElementById("expandedImg4"); // Get the image text var imgText = document.getElementById("imgtext4"); // Use the same src in the expanded image as the image being clicked on from the grid expandImg.src = imgs.src; // Use the value of the alt attribute of the clickable image as text inside the expanded image imgText.innerHTML = imgs.alt; // Show the container element (hidden with CSS) expandImg.parentElement.style.display = "block"; } function myFunction5(imgs) { // Get the expanded image var expandImg = document.getElementById("expandedImg5"); // Get the image text var imgText = document.getElementById("imgtext5"); // Use the same src in the expanded image as the image being clicked on from the grid expandImg.src = imgs.src; // Use the value of the alt attribute of the clickable image as text inside the expanded image imgText.innerHTML = imgs.alt; // Show the container element (hidden with CSS) expandImg.parentElement.style.display = "block"; }