Jump to content

PHP code to reset mouse cursor movements to trigger horizontal accordion


Keepshango

Recommended Posts

Hi
 
*** MY CONFIGURATION ***
PHP 7.2.24
WBCE CMS 1.4.23
TEMPLATE : Acourdesz (horizontal accordion header)
 
The “Acourdesz“ template comes with a horizontal accordion header that panes are opening on following mouse cursor movement detection : left to right and reversely ; up to down and reversely.
I think that one may better reply to my question hereafter, knowing the accordion code structure from this demo page : http://www.dynamicdrive.com/dynamicindex17/haccordion.htm
 
My wish is to prevent the panes opening when the mouse cursor is moved from up to down and reversely, so that panes only opens when mouse cursor is moved from left to right (and inversely). To achieve this, I may use one of my CMS add-on module that allows to include PHP, JS, or HTML code to a template or page (screenshot) : https://addons.wbce.org/pages/addons.php?do=item&item=37
 
Can someone help me to know what coding string to include using this module, so that it constrains the accordion to behave as I wish it to ?
 
Regards
Edited by Keepshango
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...