| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Flyout Menus CSS Dropdown Delay | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Flyout Menus CSS Dropdown Delay
We've been trying to implement a delay on our Horizontal Dropdown Menu (we're using the Flyout Menus module) and can't seem to get it to work.
We tried following: http://jsfiddle.net/pgqM2/229/ and we're lost. Reason we're doing this, is because if a customer is floating over our dropdown menu and accidentally moves the mouse off the menu, it disappears, but we want to implement a 0.5-1.0s delay to counteract this.
__________________
Marcello Canitano New Site: X-Cart v4.5.5 GOLD X-Cart Mobile v1.4.3 X-Payments v1.0.6 CDSEO Pro v2 Total Server Solutions xCDN www.silverhorseracing.com |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Flyout Menus CSS Dropdown Delay
Looks pretty easy to implement. Have you found the hover element in your CSS?
Well I looked at your site, and I was able to get it to work. But there are problems. The biggest problem is that your site is built with tables. The second problem is that your hover menu currently uses display block and display none to show/hide the sub elements. CSS transition effects do not work on display changes, just things like height and opacity. The work-around would usually be to set the opacity to 0 and the height to 0, but in your case you have tables with inline styles determining height. It is going to take a lot of work in order to get this to happen. I might investigate a JavaScript solution if I were you.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
#3
|
|||||||||
|
|||||||||
Re: Flyout Menus CSS Dropdown Delay
Yeah that's what we were afraid of, we used the tables to make it easier to organize things from left to right.
We do have a javascript code that we used before, but it delays everything (delays on hover, and mouseout): Code:
__________________
Marcello Canitano New Site: X-Cart v4.5.5 GOLD X-Cart Mobile v1.4.3 X-Payments v1.0.6 CDSEO Pro v2 Total Server Solutions xCDN www.silverhorseracing.com |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: Flyout Menus CSS Dropdown Delay
Marcello,
My JavaScript powers are strong, but not strong enough for me to help without setting up a test environment. Just glancing at it, I would try moving the line: $(this).addClass('over'); to above the line: var timer = $(this).data('timer');
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Flyout Menus CSS Dropdown Delay
As a fix, we've gone away from the JQuery/JS solution and simply used CSS. In the Flyout Menu CSS file (skin/common_files/modules/Flyout_Menu/main.css)
We implemented the following CSS changes [shown is the stock CSS, we have custom CSS changes in ours if you are looking at our site ]: (does not work in IE8 or older) Around Line 40 Code:
Around Line 57 Code:
Around Line 77 Code:
__________________
Marcello Canitano New Site: X-Cart v4.5.5 GOLD X-Cart Mobile v1.4.3 X-Payments v1.0.6 CDSEO Pro v2 Total Server Solutions xCDN www.silverhorseracing.com |
|||||||||
|
|||
X-Cart forums © 2001-2020
|