Create Delay for the opening of menus
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!
by tom123
Please Log in or Create an account to join the conversation.
Replied by ced1870 on topic Re: Create Delay for the opening of menus
Posted 12 years 2 months ago #1411
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
by ced1870
Please Log in or Create an account to join the conversation.
Replied by tom123 on topic Re: Create Delay for the opening of menus
Posted 12 years 2 months ago #1412
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.
by tom123
Please Log in or Create an account to join the conversation.
Replied by tom123 on topic Re: Create Delay for the opening of menus
Posted 12 years 2 months ago #1493
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?
by tom123
Please Log in or Create an account to join the conversation.
Replied by ced1870 on topic Re: Create Delay for the opening of menus
Posted 12 years 2 months ago #1494
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
by ced1870
Please Log in or Create an account to join the conversation.
Replied by tom123 on topic Re: Create Delay for the opening of menus
Posted 12 years 2 months ago #1495
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:12 years 2 months ago
by tom123
Last edit: 12 years 2 months ago by tom123.
Please Log in or Create an account to join the conversation.
Time to create page: 0.664 seconds