Issue with Menu

More
10 years 9 months ago #37625 by justmeyogs
Issue with Menu was created by justmeyogs
Hi There,

I seem to be having an issue with the top menu mousover. Here is the url to the site having issues:
2014.cinefranco.com/en/

If you mouseover About Us and Get Involved, it does not allow the sub menu items to display correctly. I am not sure what has caused this to happen as its working fine in other instances of the site template for example: 2013.cinefranco.com/index.php/fr/

You help is much appreciated

Justmeyogs :unsure:

Please Log in to join the conversation.

More
10 years 9 months ago #37634 by ivan.milic
Replied by ivan.milic on topic Issue with Menu
Open:

templates/hot_cinema/js/jquery.hjt.nav.js

locate this code:

jQuery('.nav ul').hide();
jQuery('.nav li ul li').filter(':last-child').css('border-bottom', 'none');
jQuery('.nav li').hover(function(){
jQuery(this).find('ul:first').stop(true,true)[options.effect](options.speed);
},function(){
jQuery(this).css('position', 'relative')
.find('ul:first').stop(true,true)[options.effect](options.speed);
});

replace it with:

jQuery('.nav ul').hide();
jQuery('.nav li ul li').filter(':last-child').css('border-bottom', 'none');
jQuery('.nav li').hover(function(){
jQuery(this).find('ul:first:not(:visible)').stop(true,true)[options.effect](options.speed);
},function(){
jQuery(this).css('position', 'relative')
.find('ul:first:visible').stop(true,true)[options.effect](options.speed);
});

Please Log in to join the conversation.

More
10 years 9 months ago - 10 years 9 months ago #37644 by justmeyogs
Replied by justmeyogs on topic Issue with Menu

File Attachment:

File Name: jquery.hjt.nav.zip
File Size:1 KB

Ivan,

I have made the changes however it is now not turning off when I mouseout. Please see the screenshot attached. I have also attached the file you asked me to edit in case I did not do it correctly.

Thanks

Justmeyogs
Attachments:
Last edit: 10 years 9 months ago by justmeyogs.

Please Log in to join the conversation.

More
10 years 9 months ago #37651 by ivan.milic
Replied by ivan.milic on topic Issue with Menu
Try:

jQuery('.nav ul').hide();
jQuery('.nav li ul li').filter(':last-child').css('border-bottom', 'none');
jQuery('.nav li').hover(function(){
jQuery(this).find('ul:first:not(:visible)').stop(true,true).fadeIn(options.speed);
},function(){
jQuery(this).css('position', 'relative')
.find('ul:first:visible').stop(true,true).fadeOut(options.speed);
});
The following user(s) said Thank You: justmeyogs

Please Log in to join the conversation.

More
10 years 9 months ago #37653 by justmeyogs
Replied by justmeyogs on topic Issue with Menu
Thanks Ivan,

That works great. Appreciate all your help. Any idea what caused this to happen?

Justmeyogs :)

Please Log in to join the conversation.

More
10 years 9 months ago #37656 by ivan.milic
Replied by ivan.milic on topic Issue with Menu
jQuery version. What I gave you now is very stable code.

Please Log in to join the conversation.

Time to create page: 0.172 seconds
Powered by Kunena Forum