Create Delay for the opening of menus
13 years 4 months ago #1410
by tom123
Create Delay for the opening of menus was created by tom123
Hello,
Firstly, I'd like to say well done to Cedric. The maximenu is awesome.
However, I need to accomplish something that it can't do in its native state.
What I basically need is to use the css version of the maximenu. I don't want any mootools effects for the closing/opening of the submenu. However, I want to create an effect similar to jquery's Hoverintent. I have been messing around with the file moo_maximenu_CK.js, trying to implement a delay and cancel the actual mootools opening/closing transition. However, my javascript is not very good, and I haven't been able to accomplish this.
I'd appreciate any help that I can receive. Please keep in mind that my javascript is not very good, so I will probably need an example or two.
Thanks!
Firstly, I'd like to say well done to Cedric. The maximenu is awesome.
However, I need to accomplish something that it can't do in its native state.
What I basically need is to use the css version of the maximenu. I don't want any mootools effects for the closing/opening of the submenu. However, I want to create an effect similar to jquery's Hoverintent. I have been messing around with the file moo_maximenu_CK.js, trying to implement a delay and cancel the actual mootools opening/closing transition. However, my javascript is not very good, and I haven't been able to accomplish this.
I'd appreciate any help that I can receive. Please keep in mind that my javascript is not very good, so I will probably need an example or two.
Thanks!
Please Log in or Create an account to join the conversation.
13 years 4 months ago #1411
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Re: Create Delay for the opening of menus
Hi
this is possible but actually I'm working on the new version 6 of maximenu for joomla 2.5.
Once finished I will think about this request, please remember me in few days...
CEd
this is possible but actually I'm working on the new version 6 of maximenu for joomla 2.5.
Once finished I will think about this request, please remember me in few days...
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
13 years 4 months ago #1412
by tom123
Replied by tom123 on topic Re: Create Delay for the opening of menus
Hello Ced,
Thanks for the reply.
This is really important. If you could at least point me in the right direction, I'd really appreciate it, because right now I pretty much have no idea of how to accomplish this.
Thanks for the reply.
This is really important. If you could at least point me in the right direction, I'd really appreciate it, because right now I pretty much have no idea of how to accomplish this.
Please Log in or Create an account to join the conversation.
13 years 3 months ago #1493
by tom123
Replied by tom123 on topic Re: Create Delay for the opening of menus
Hello Ced,
I still need your help with this matter.
Could you help me create the delay?
I still need your help with this matter.
Could you help me create the delay?
Please Log in or Create an account to join the conversation.
13 years 3 months ago #1494
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Re: Create Delay for the opening of menus
you must change the js as this :
where 500 is the timer
and
and tell me
Code:
el.addEvent('mouseover',function() {
if (testoverflow == '1') this.testOverflowMaxiCK(menuID);
el.setStyle('z-index',15000);
this.showMaxiCK(500);
});
and
Code:
showMaxiCK: function(timeout) {
clearTimeout (this.timeout);
if (timeout)
{
this.timeout = setTimeout (this.animMaxiCK.bind(this), timeout);
}else{
this.animMaxiCK();
}
this.addClass('sfhover');
this.status = 'show';
}
and tell me
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
13 years 3 months ago - 13 years 3 months ago #1495
by tom123
Replied by tom123 on topic Re: Create Delay for the opening of menus
Hello Ced,
Thanks for your reply.
I replaced the functions you gave me below in the file:
siteroot/modules/mod_maximenu_CK/assets/moo_maximenu_CK.js
But it does literally nothing. The menu opens and closes as it normally woulds.
I've attached the file so you can check my implementation.
Thanks for your reply.
I replaced the functions you gave me below in the file:
siteroot/modules/mod_maximenu_CK/assets/moo_maximenu_CK.js
But it does literally nothing. The menu opens and closes as it normally woulds.
I've attached the file so you can check my implementation.
Attachment moo_maximenu_CK.js.txt not found
Last edit: 13 years 3 months ago by tom123.
Please Log in or Create an account to join the conversation.
Time to create page: 0.242 seconds