Jimmy
Newbie
Posts: 1
Registered: 9/21/2009
Location: UK
Member Is Offline
|
| posted on 9/21/2009 at 09:10 AM |
|
|
changing onmouse over to onclick
Hi,
I am using one of ur menu packed, which is mouseover and expanding it into second level menu drop down.
I want this to be onclick instead of onmouseover. The file is menu_Packed.js
----------
// Title: tigra menu
// Description: See the demo at url
// URL: http://www.softcomplex.com/products/tigra_menu/
// Version: 2.0 (commented source)
// Date: 04-05-2003 (mm-dd-yyyy)
// Tech. Support: http://www.softcomplex.com/forum/forumdisplay.php?fid=40
// Notes: This script is free. Visit official site for further details.
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){returnd[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}('d t=[];k
2f(1h,x){h(!D.1Q||!D.1Q.H)g;5.b=1h;5.x=x;5.6=t.r;5.q=[];5.s=[];5.1c=1M;5.1g=1O;5.N=1K;5.15=1J;5.14=1H;5.13=1G;5.1P={'1E':16,'1F':16,'19':20,'18':4,'P':2e,'O':22,'1I':0,'1d':0,'1r':{'1o':'','1n':''}};5.j=k(C){g 5.1P[C]};5.f=5;5.m=-1;5.F=0;5.G=0;w(c=0;c<1h.r;c++)1u
Z(5,c);t[5.6]=5;w(d c=0;c<5.s.r;c++)5.s[c].v.H.R='1L'}k 1O(6){1f(5.1e);d 1N=(6?5.q[6].m:0);w(6=0;6<5.q.r;6++){du=5.q[6];h(u.m>1N&&u.K){u.v.H.R='1A';u.K=17}}h(!6)5.U=J}k 1M(6){h(5.T)g;d
9=5.q[6];h(5.U&&5.U.m>=9.m)5.1g(9.6);5.U=9;h(!9.s)g;w(d c=0;c<9.s.r;c++){d u=9.s[c];u.v.H.R='1L';u.K=1D}}k 1K(6){g 2d(5.q[6].b[1])}k1J(6){d 9=5.q[6];9.v.y=9.p(0,0);9.M.y=9.p(1,0);9.1b(7);5.T=X('t['+5.6+'].1g();',9.j('1I'))}k 1H(6){1f(5.T);5.T=J;1f(5.1e);d
9=5.q[6];9.1b();9.v.y=9.p(0,1);9.M.y=9.p(1,1);h(9.j('1d')<0)g;5.1e=X('t['+5.6+'].1c('+6+');',9.j('1d'))}k 1G(6){d9=5.q[6];9.v.y=9.p(0,2);9.M.y=9.p(1,2);5.1c(6)}k
Z(l,c){5.m=l.m+1;5.b=l.b[c+(5.m?3:0)];h(!5.b)g;5.f=l.f;5.l=l;5.c=c;5.6=5.f.q.r;5.f.q[5.6]=5;l.s[c]=5;df=5.f,x=5.f.x;5.j=1t;5.p=1s;5.1b=1l;5.F=c?l.s[c-1].F+5.j('18'):l.F+5.j('1F');5.G=c?l.s[c-1].G+5.j('19'):l.G+5.j('1E');d
E=17;h(5.b[0].1a(0,11)=="<E>"){E=1D;5.b[0]=5.b[0].1a(11,5.b[0].r);1C=5.p(0,0).1a(8,5.p(0,0).r)}D.2c((E?'<1w12="2b'+1C+'">':'')+'<a 12="e'+f.6+'L'+5.6+'o" 1y="'+5.p(0,0)+'" 2a="'+5.b[1]+'"'+(5.b[2]&&5.b[2]['1B']?'
29="'+5.b[2]['1B']+'"':'')+' H="28: 27; 19: '+5.G+'S; 18: '+5.F+'S; P: '+5.j('P')+'S; O: '+5.j('O')+'S; R: 1A;'+' z-26:'+5.m+';" '+(5.b[2]&&5.b[2]['25']?' N="24: W.23(\''+5.b[1]+'\', \'\', \'21=Q,1Z=Q,1k=Q,1Y=Q,1X=1z,1W=1z,P=1V,O=1U\'); g
17;"':'N="g t['+f.6+'].N('+5.6+');')+';" 15="t['+f.6+'].15('+5.6+');" 14="t['+f.6+'].14('+5.6+');"13="t['+f.6+'].13('+5.6+');"><1x 12="e'+f.6+'L'+5.6+'i"
1y="'+5.p(1,0)+'">'+5.b[0]+"</1x></a>"+(E?'</1w>':'')+"\n");5.M=D.1v('e'+f.6+'L'+5.6+'i');5.v=D.1v('e'+f.6+'L'+5.6+'o');5.K=!5.m;h(5.b.r<4)g;5.s=[];w(d c=0;c<5.b.r-3;c++)1u Z(5,c)}k 1t(C){d I=J,Y=5.f.x[5.m];h(Y)I=Y[C];g(I==J?5.l.j(C):I)}k
1s(1p,1m){d 1q=5.j('1r');d B=1q[1p?'1o':'1n'];h(1T(B)=='1S')g B;w(d A=1m;A>=0;A--)h(B[A])g B[A]}k1l(1j){W.X("W.1k=1R('"+(1j?'':(5.b[2]&&5.b[2]['1i']?V(5.b[2]['1i']):V(5.b[0])+(5.b[1]?'
('+V(5.b[1])+')':'')))+"')",10)}',62,140,'|||||this|n_id|||o_item||a_config|n_order|var||o_root|return|if||getprop|function|o_parent|n_depth
|||getstyle|a_index|length|a_children|A_MENUS|o_curritem|e_oelement|for|a_tpl|className||n_currst|a_oclass|s_key|document|sw_active|n_x|n_y|style|s_va
lue|null|b_visible|_|e_ielement|onclick|height|width|no|visibility|px|o_hidetimer|o_current|escape|window|setTimeout|a_level|menu_item|||id|onmousedow
n|onmouseover|onmouseout||false|left|top|substring|upstatus|expand|expd_delay|o_showtimer|clearTimeout|collapse|a_items|sb|b_clear|status|mitem_upstat
us|n_state|outer|inner|n_pos|a_css|css|mitem_getstyle|mitem_getprop|new|getElementById|span|div|class|yes|hidden|tw|temp_id|true|block_top|block_left|
menu_onmousedown|menu_onmouseover|hide_delay|menu_onmouseout|menu_onclick|visible|menu_expand|n_tolevel|menu_collapse|a_tpl_def|body|unescape|string|t
ypeof|550|780|resizable|scrollbars|menubar|location||toolbar||open|javascript|tl|index|absolute|position|target|href|swactive_menu|write|Boolean|120|m
enu'.split('|'),0,{}))
----------
Need help asap.
Thank you.
|
|
|
|