Logo
doctype [?]
[strict] [loose] [none]

jQuery ContextMenu Plugin



Source Type:Compact code - Best used for production because its size is smaller, but not suited for editing
Source File:jquery.contextmenu.js (Right-click and "save as")
File size:4k (Compacted using Packer in PHP)
Other Required Files: jQuery 1.2.6 or later (or earlier versions with the Dimensions plugin)

jquery.contextmenu.css
jquery.contextmenu.images.zip - The background images used in themes


PLEASE SUPPORT THIS SITE! Rather than charging money for this site, I rely on donations from users to help support the site and offset development time. If you find this code useful or if it helped on your project, please consider donating. Any amount is appreciated! Thanks!
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}(';(7($){$.T={F:H,1p:0,M:5,N:5,12:-3,Z:-3,1w:.2,17:\'j-6-F\',1F:\'2e\',1i:0,1l:0,Q:\'1L\',1U:\'1K\',1T:H,1r:\'1c\',1e:\'s\',1s:f,10:f,1t:f,1f:f,p:\'j-6\',1Z:\'j-6-l\',1G:\'j-6-l-13\',1g:\'j-6-l-O\',11:\'j-6-l-O-13\',1v:\'j-6-L\',1A:\'j-6-l-2f\',1z:\'j-6-16-\',16:\'2d\',L:\'j-6-L\',14:f,6:f,G:f,2c:f,S:k,X:k,1S:7(6,1I){8 4=$.25({},a,1I);9(1n 6=="29"){4.6=$(6)}P 9(1n 6=="7"){4.1d=6}P{4.6=4.19(6,4)}9(4.6){4.6.u({K:\'1a\'});$(4.Q).g(4.6)}9(4.F){4.1B(4);9(4.1p){4.M=4.N=4.1p}}$(\'1L\').1O(\'1P\',7(){4.s()});d 4},1N:7(){d $(\'<W 2a="0" 2b="-1" 2g="28:k" 1C="K:2n;1q:1o;z-2o:-1;2m:2l(2i=0);"/>\')},19:7(6,4){8 p=4.p;$.1Q(4.16.2j(","),7(i,n){p+=\' \'+4.1z+n});8 $t=$(\'<1D 2k=0 2p=0></1D>\').1m(7(){4.s();d k});8 $V=$(\'<V></V>\');8 $B=$(\'<B></B>\');8 $b=$(\'<b C="\'+p+\'"></b>\');1V(8 i=0;i<6.27;i++){8 m=6[i];9(m==$.T.L){$b.g(4.1x())}P{1V(8 18 2h 6[i]){$b.g(4.1H(18,6[i][18]))}}}9(4.X){$B.g(4.1N())}$t.g($V.g($B.g($b)))d $t},1H:7(1y,A){8 4=a;9(1n A=="7"){A={1b:A}}8 o=$.25({1b:7(){},p:\'\',Y:4.1G,15:\'\',O:k,1j:\'\',J:4.J,I:4.I},A);8 1u=(o.15)?\'2I-2F:2E(\'+o.15+\');\':\'\';8 $b=$(\'<b C="\'+4.1Z+\' \'+o.p+((o.O)?\' \'+4.1g:\'\')+\'" 1j="\'+o.1j+\'"></b>\').1m(7(e){9(4.R(a)){d k}P{d o.1b.D(4.14,a,4,e)}}).13(7(){o.J.D(a,(4.R(a))?4.11:o.Y)},7(){o.I.D(a,(4.R(a))?4.11:o.Y)});8 $1E=$(\'<b C="\'+4.1A+\'" 1C="\'+1u+\'">\'+1y+\'</b>\');$b.g($1E);d $b},1x:7(){d $(\'<b C="\'+a.1v+\'"></b>\')},R:7(l){d $(l).2G(\'.\'+a.1g)},J:7(c){$(a).20(c)},I:7(c){$(a).2J(c)},1B:7(4){4.G=$(\'<b C="\'+4.17+\'"></b>\').u({K:\'1a\',1q:"1o",26:2H,2D:4.1w,2C:4.1F});$(4.Q).g(4.G)},1X:7(x,y,e){8 4=a;9(4.F){4.G.u({v:(4.6.v()+4.12)+"r",q:(4.6.q()+4.Z)+"r",1W:(y+4.N)+"r",21:(x+4.M)+"r"}).20(4.17)[4.1r](4.1s)}},1Y:7(){d H},1c:7(t,e){8 4=a,x=e.2u,y=e.2q;4.14=t;9(4.1Y()!==k){9(4.1d){9(4.6){$(4.6).2s()}4.6=4.19(4.1d(4,t),4);4.6.u({K:\'1a\'});$(4.Q).g(4.6)}8 $c=4.6;x+=4.1i;y+=4.1l;8 E=4.24(x,y,4,e);4.1X(E.x,E.y,e);9(4.X){$c.2v(\'W\').u({v:$c.v()+4.M+4.12,q:$c.q()+4.N+4.Z})}$c.u({1W:E.y+"r",21:E.x+"r",1q:"1o",26:2w})[4.1r](4.1s,((4.1t)?7(){4.1t.D(4)}:f));4.S=H;$(2A).2z(\'1m\',f,7(){4.s()})}},24:7(23,22,4,e){8 x=23+4.1i;8 y=22+4.1l 8 h=$(4.6).q();8 w=$(4.6).v();8 U=4.1U;9(4.1T){8 $w=$(2y);8 1J=$w.q();8 1h=$w.v();9(U=="1K"&&(y+h-$w.2x()>1J)){U="1M"}8 1k=x+w-$w.2B();9(1k>1h){x-=(1k-1h)}}9(U=="1M"){y-=h}d{\'x\':x,\'y\':y}},s:7(){8 4=a;9(4.S){9(4.W){$(4.W).s()}9(4.6){4.6[4.1e](4.10,((4.1f)?7(){4.1f.D(4)}:f))}9(4.F){4.G[4.1e](4.10)}}4.S=k}};$.2r.T=7(6,1R){8 4=$.T.1S(6,1R);d a.1Q(7(){$(a).1O(\'1P\',7(e){4.1c(a,e);d k})})}})(2t);',62,170,'||||cmenu||menu|function|var|if|this|div||return||null|append|||context|false|item||||className|height|px|hide||css|width|||||obj|td|class|call|pos|shadow|shadowObj|true|hoverItemOut|hoverItem|display|separator|shadowOffsetX|shadowOffsetY|disabled|else|appendTo|isItemDisabled|shown|contextMenu|dir|tr|iframe|useIframe|hoverClassName|shadowHeightAdjust|hideSpeed|disabledItemHoverClassName|shadowWidthAdjust|hover|target|icon|theme|shadowClass|opt|createMenu|none|onclick|show|menuFunction|hideTransition|hideCallback|disabledItemClassName|ww|offsetX|title|maxRight|offsetY|click|typeof|absolute|shadowOffset|position|showTransition|showSpeed|showCallback|iconStyle|separatorClassName|shadowOpacity|createSeparator|label|themePrefix|innerDivClassName|createShadow|style|table|idiv|shadowColor|itemHoverClassName|createMenuItem|opts|wh|down|body|up|createIframe|bind|contextmenu|each|options|create|constrainToScreen|direction|for|top|showShadow|beforeShow|itemClassName|addClass|left|clickY|clickX|getPosition|extend|zIndex|length|javascript|string|frameborder|tabindex|bgiframe|default|black|inner|src|in|Opacity|split|cellspacing|Alpha|filter|block|index|cellpadding|pageY|fn|remove|jQuery|pageX|find|9999|scrollTop|window|one|document|scrollLeft|backgroundColor|opacity|url|image|is|9998|background|removeClass'.split('|'),0,{}))