본문 바로가기
반응형

jquery13

PlugIn - jquery-user-agent (유저에이전트) (function ($) { $.ua = $.ua || { platform: {}, browser: {}, engine: {} }; var ua = navigator.userAgent.toLowerCase(), p = $.ua.platform, b = $.ua.browser, e = $.ua.engine, u = 'unknown'; //alert(navigator.userAgent); // detect platform p.name = (/(win|mac|linux|iphone|ipod|android)/.exec(ua) || [, u])[1]; p[p.name] = true; // detect browser b.name = (/(msie|firefox|chrome|safari|opera)/.exec(ua).. 2013. 11. 15.
jQuery 아이프레임, iframe 1. 속성변경$('#TargetFrame').attr('src', 'http://www.jkun.net');$('#TargetFrame').attr({ 'src' : 'http://www.jkun.net', 'width' : '100', 'height' : '100', 'scrolling' : 'no'}); 2. 프레임내 문서객체 요소 접근$('#TargetFrame').contents().find('div.target-panel'); 3. 부모 요소에 접근- $('#TargetFrame', parent.document);- parent.$('#TargetFrame'); 2013. 8. 20.
jQueryPlugIn - jQueryScroll jQuery 로 스크롤을 제어할 수 있는 플러그 인이다.보여줄 화면이 작거나 사용자 편의 제공에서의 UI 구성시에 도움이 되겠다. 참고 : http://demos.flesler.com/jquery/scrollTo/ 2013. 1. 22.
jQuery Cookie jQuery 쿠키를 사용예제다.jQuery 1.0.x 기준으로 제공된다. 참고 URL 은 http://archive.plugins.jquery.com/project/Cookie자꾸 까먹어버릇해서 쓸데마다 찾는것도 짜증나니,포스팅을 해놓다가 느낀건데.. jQuery 를 주 라이브러리로 선택했으면 수시로 플러그인을 살펴봐야겠다는생각과.. 제대로 사용하려면 HTML과 CSS 를 보다 더 자세하게 알아야 하며,기본인 네이티브가 좋은 바탕이 되주어야 겠단 생각이 더욱든다$.cookie('Key'); /* 쿠키 로드 */ $.cookie('Key','Value'); /* 쿠키 생성 */ $.cookie('Key','Value', { expires : 7 }); /* 쿠키의 유효기간 7일*/ $.cookie('Key.. 2012. 7. 29.
반응형