Suggestion

More
14 years 2 months ago - 14 years 2 months ago #5554 by almooj-craig
Suggestion was created by almooj-craig
I have been working with this module for several days and I find that it's quite flexible. It can be a little bit jumpy because the showMaxiCK is called immediately on the mouseenter event of the li element. If you put it on a setTimeout it smooths out the menu behavior. Basically I just used your technique. Here is the showMaxiCK function from the main js file.


showMaxiCK: function(timeout) {
clearTimeout (this.timeout);
this.addClass('sfhover');
this.status = 'show';
//this.animMaxiCK();
if (timeout)
{
this.timeout = setTimeout (this.animMaxiCK.bind(this), timeout);
}else{
this.animMaxiCK();
}
},

Then the other function would be:

el.addEvent('mouseover',function() {
if (testoverflow == '1') this.testOverflowMaxiCK(menuID);
el.setStyle('z-index',15000);
this.showMaxiCK(200);
});
Last edit: 14 years 2 months ago by almooj-craig.

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #5558 by ced1870
Replied by ced1870 on topic Suggestion
Hi
thank you for sharing, yes this could be implemented :)
ced

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.196 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 4356 guests and no members online