글
IT/Tech 2010/07/20 18:39jquery bookmarklet 생성기
google code 에서 jquery를 활용해서 bookmarklet을 쉽게 구현할 수 있다.
[code javascript]
javascript:(
function(e,a,g,h,f,c,b,d){
if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){
c=a.createElement("script");
c.type="text/javascript";
c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";
c.onload=c.onreadystatechange=function(){
if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){
h((f=e.jQuery).noConflict(1),b=1);f(c).remove()
}
};
a.documentElement.childNodes[0].appendChild(c)
}
}
)(window,document,"1.3.2",function($,L){
/* YOUR JQUERY CODE GOES HERE */
});
[/code]
참고 : jQuery Bookmarklet Generator
하지만 IE8에서는 동작이... 안됨. 아니면 내 컴터만 안되는건가?
[code javascript]
javascript:(
function(e,a,g,h,f,c,b,d){
if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){
c=a.createElement("script");
c.type="text/javascript";
c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";
c.onload=c.onreadystatechange=function(){
if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){
h((f=e.jQuery).noConflict(1),b=1);f(c).remove()
}
};
a.documentElement.childNodes[0].appendChild(c)
}
}
)(window,document,"1.3.2",function($,L){
/* YOUR JQUERY CODE GOES HERE */
});
[/code]
참고 : jQuery Bookmarklet Generator
'IT > Tech' 카테고리의 다른 글
| jQuery가 지원하는 고급 위치 기반 셀렉터 (0) | 2010/07/30 |
|---|---|
| jQuery가 지원하는 기본 CSS 셀렉터 (0) | 2010/07/29 |
| jquery bookmarklet 생성기 (0) | 2010/07/20 |
| LAMPP & 버추얼호스트 & XDebug (0) | 2010/07/20 |
| 리눅스 관리를 위해서 알아햐할 모니터링 툴 20 (0) | 2010/07/15 |
| subversion + eclipse (0) | 2010/07/15 |
RECENT COMMENT