일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- date포맷
- Meta Tag
- Selector
- 세션
- Javascript
- CSS
- 이전주소
- mb_strimwidth
- 웹프로그래밍
- JQuery
- 시간계산
- php
- File
- 세션사용법
- input
- attr
- element추가
- HTML
- indexOf
- SubString
- ucfirst
- 쿠키
- strpos
- mysql
- accept
- strtotime
- disabled
- parent of iframe
- date
- 문자열포함여부
- Today
- Total
목록웹프로그래밍 (61)
Heojju
body{height:1000px;}스크롤 고정$('body').on({'mousewheel': function(e) { if($('#element')[0].checked == true){ e.preventDefault(); e.stopPropagation(); }else{ return true; } }})
$('#card_1').click(function(){ $('#detail_1').toggle();});$('body').on({'mousewheel': function(e) { if($('#detail_1').css('display') == "block"){ e.preventDefault(); e.stopPropagation(); }else{ return true; }}});?>
1. echo() 함수 사용 var value = ""; 2. hidden 속성 사용
▤ CSS div.imgBackground{background:black;} img.center-block:hover {opacity:0.3;} ▤ Javascript div.imgBackground{background:black;} document.getElementById('img1').onmouseover = function(){ this.style.opacity = "0.3"; } document.getElementById('img1').onmouseout = function(){ this.style.opacity = "1"; } ▤ jQuery div.imgBackground{background:black;} $('#img1').mouseover(function(){ $(this).css('op..
OnePage .page{height:100vh;} 1page 2page 3page 4page 1page 2page 3page 4page function stopWheel(e){ if(!e){ e = window.event; } /* IE7, IE8, Chrome, Safari */ if(e.preventDefault) { e.preventDefault(); } /* Chrome, Safari, Firefox */ e.returnValue = false; /* IE7, IE8 */ } $("#1page").on('mousewheel DOMMouseScroll', function(e){ stopWheel(); var E = e.originalEvent; delta = 0; if (E.detail) { de..
실행url - http://localhost:8088/login/login.do?key=value -javascript-location.href -> http://localhost:8088/login/login.do?key=valuelocation.protocol -> http: location.host -> localhost:8088 location.pathname -> /login/login.do location.search -> ?key=value -jquery-jQuery(location).attr('href') -> http://localhost:8088/login/login.do?key=value jQuery(location).attr('protocol') -> http: jQuery(loca..
selector 설명 document.getElementById [id] var elem = document.getElementById("abc");elem.style.color="red"; document.getElementsByName [name] var xyz= document.getElementsByName("abc");xyz[0].style.color="red"; document.getElementsByClassName [class] var list = document.getElementsByClassName("abc");list[0].style.color = "red"; document.getElementsBytagName [tag] var list = document.getElementsBy..
▤ $(window).resize 함수 : 브라우저 크기가 달라질때마다 호출되는 함수입니다. $(window).resize(function(){ //스크립트 or 함수 });
▤ mb_strimwidth : 문자열 포함 여부 확인mb_strimwidth( string str, int start, int width [,string trimmarker = "" [, string encoding = mb_internal_encoding()]] )
▤ array_merge: 배열 합치기(병합)array_merge( array $array1 [, array $array2 [, array $... ]] ) -> 연속적 재인덱스