본문 바로가기

분류 전체보기216

[bxslider.js] 3개 출력 슬라이드에서 startSlide -1 오류 $('.photo .slide').each(function(index){ var $thisObj = $(this); var totalCount = new Array(); totalCount[index] = $thisObj.find('li').length; totalN = totalCount - 1; $thisObj.bxSlider({ auto: false, pager: false, controls: true, minSlides: 3, maxSlides: 3, moveSlides: 1, startSlide: totalN, slideWidth: 1100, slideHeight: 800, slideMargin: 100, nextSelector: '#slider-next2', prevSelector: '#sli.. 2020. 4. 6.
Select 박스 선택값 input에 넣기 (ex. email 주소선택) $("select[name=sel_email]").on("change", function(){ var $addr = $(this).closest(".form").find("input[name=email_addr]"); if ($(this).val() == "etc") { $addr.val(''); $addr.prop("readonly",false); } else { $addr.val($(this).val()); $addr.prop("readonly",true); } }); @ 직접입력 naver.com hanmail.net gmail.com yahoo.com hotmail.com korea.com nate.com 2020. 4. 6.
[bxslider.js] 슬라이드 깨기/만들기 if($(window).width() > 800){ $('#slider-pc').show(); pc_slider.reloadSlider(); $('#slider-mobile').hide(); }else{ $('#slider-mobile').show(); $('#slider-pc').hide(); pc_slider.destroySlider(); m_slider.reloadSlider(); } 2020. 4. 6.
Select 박스에 링크 연결하기 현재 (2019-05-28) 2018-06-18 $('.privacy_select select[name=privacy_date]').change(function(){ var tabLink = $(this).val(); var tab = $('.privacy_tab'); if($(tabLink).length>0){ tab.hide(); $(tabLink).show(); } return false; }); 2020. 4. 6.
Tab menu 만들어서 링크 적용하기 $('.tabLink ul li a').click(function(){ if ($(this).attr('rel') != undefined) { $('.tabLink ul li a').removeClass('on'); $(this).addClass('on'); $('.tabList').hide(); $($(this).attr('rel')).show(); } }); 2020. 4. 6.
[fullpage.js] 페이지에 링크 걸기 $("#fullpage").fullpage({ navigation: false, anchors: ['firstPage', 'secondPage', '3rdPage', '4thpage', 'lastPage'], animateAnchor:false }); Section1 Section2 Section3 Section4 Section5 Section6 Footer Top 2020. 4. 6.
[bxslider.js] 3개 출력 슬라이드 소스 photoSlide = $('.menuSlide .slide').each(function(index){ var $thisObj = $(this); var totalCount = new Array(); totalCount[index] = $thisObj.find('li').length; var totalN = totalCount - 1; var prev = $(this).parent().find(".prev2"); var next = $(this).parent().find(".next2"); var pager = $(this).parent().find(".pager"); $thisObj.bxSlider({ auto: false, pager: false, //pagerType: 'short', control.. 2020. 4. 6.
[datepicker.js] 날짜 출력 형식 format 수정 $.fn.dateRangePicker = function(opt) { if (!opt) opt = {}; opt = $.extend(true, { autoClose: true, format: 'YYYY. MM. DD', separator: ' to ', language: 'ko', startOfWeek: 'sunday', // or monday ... 2020. 4. 6.
[bxslider.js] current, total index값 얻기 var mainSlider = $('.mainSlide > .slider').bxSlider({ auto: true, pause: 2000, pager: false, controls: true, autoControls: true, stopAutoOnClick: true, //prev, next 누르면 stop됨 autoControlsCombine: true, autoControlsSelector: '#main-control .stop', prevSelector: '#main-control .prev', nextSelector: '#main-control .next', infiniteLoop: true, onSlideBefore: function ($slideElement, oldIndex, newInde.. 2020. 4. 6.