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.
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 ?
PHP code to reset mouse cursor movements to trigger horizontal accordion
in PHP
Posted · Edited by Keepshango