Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Horizontal Flyout Menu over the top Filter By: Manufacturers Drop Down

Horizontal Flyout Menu over the top Filter By: Manufacturers Drop Down

Locked

Views: 1,985

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
11 Jun 2009, 2:41 PM
#1
websightdesign avatar

websightdesign

New Zenner

Join Date:
Mar 2006
Posts:
72
Plugin Contributions:
0

Horizontal Flyout Menu over the top Filter By: Manufacturers Drop Down

I have a problem with the horizontal flyout menu, when i browse through this menu it is partly covered by the manufacturers filter drop down box in the centre of the page (not the sidebox), i have tried modifying the CSS for the horizontal menu and also the standard stylesheet using z-index but it still remains over the top of the menu.

I am currently using version 1.3.8

Any help would be much appreciated.

Thanks
Brad

24 Jun 2009, 11:26 AM
#2
websightdesign avatar

websightdesign

New Zenner

Join Date:
Mar 2006
Posts:
72
Plugin Contributions:
0

Re: Horizontal Flyout Menu over the top Filter By: Manufacturers Drop Down

Just thought i would post back to let you guys know the solutions to this problem as i have now resolved this problem.

The method i have used is to put the drop down menu in a seperate DIV layer he tpl_index_product_list template file in the template's folder i then added a javascript to hide this div layer based on mouse over and then mouse up to show the layer, the best code i have found i below hope this helps all the other people who have been pulling there hair out with this little problem.

Javascript to show or hide layer

<script type="text/javascript" language="JavaScript"><!-- function HideContent(d) { if(d.length < 1) { return; } document.getElementById(d).style.display = "none"; } function ShowContent(d) { if(d.length < 1) { return; } document.getElementById(d).style.display = "block"; } function ReverseContentDisplay(d) { if(d.length < 1) { return; } if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; } else { document.getElementById(d).style.display = "none"; } } //--></script>

Javascript to be added to mouse over
onmouseover="HideContent('uniquename'); return true;" href="javascript:HideContent('uniquename')">

Javascript to be added to mouseup
="ShowContent('uniquename'); return true;" href="javascript:ShowContent('uniquename')">

switch "uniquename" to what ever you label your new div layer

Thanks
Brad