hover image change 마우스 오버시 이미지 바뀌는 JQuery. 마우스 오버는 hover를 이용하고,data-src 등으로 이벤트 발생시에 바뀔 이미지 주소를 미리 저장해놓는다. 데모: http://jsfiddle.net/cussE/ 출처: http://stackoverflow.com/questions/13527480/alter-image-on-mouseover-and-mouseleave 더보기 jquery 1.9에서 빠진 $.browser 기능 대체 jquery 1.9 버전에써 브라우저 구분하는 $.browser 기능이 빠진것을 대체하는 소스 코드. //browser detect var browser = (function() { var s = navigator.userAgent.toLowerCase(); var match = /(webkit)[ \/](\w.]+)/.exec(s) || /(opera)(?:.*version)?[ \/](\w.]+)/.exec(s) || /(msie) ([\w.]+)/.exec(s) || /(mozilla)(?:.*? rv:([\w.]+))?/.exec(s) || []; return { name: match[1] || "", version: match[2] || "0" }; }()); // using if(browser.. 더보기 IE6~9 핵(CSS Hack) IE6 .test { _margin:5px; } 언더바를 붙힌 _margin:5px; 은 IE 6에서만 적용된다. IE7 *:first-child+html .test{ margin:5px; }IE7은 셀렉터 앞에 *:first-child+html 를 붙힌 .test에는 _margin:5px; 가 적용된다. IE6+IE7.test{ .margin:10px; }프로퍼티 가장 앞부분에 닷(.)을 붙이면 IE6+7 에서 적용이 된다. IE8test { margin:/*\**/10px; }프로퍼티의 속성값 앞부분에 (/*\**/) 를 붙이면 IE8에서만 적용이 됩니다. IE8, IE8+9test { margin:10px\0IE8; }test { margin:10px\0IE9; }test { margin:10px\.. 더보기 이전 1 ··· 9 10 11 12 13 14 15 ··· 47 다음