View Single Post
  #2  
Old 06-21-2006, 12:35 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

A Not so simple fix:

Edit skin1/modules/Fancy_Categories/(style)/menumanagement.js Add this function at the bottom of the file:
Code:
function hideSelects(action) { //documentation for this script at http://www.shawnolson.net/a/1198/ //possible values for action are 'hidden' and 'visible' if (action!='visible'){action='hidden';} if (navigator.appName.indexOf("MSIE")) { for (var S = 0; S < document.forms.length; S++){ for (var R = 0; R < document.forms[S].length; R++) { if (document.forms[S].elements[R].options) { document.forms[S].elements[R].style.visibility = action; } } } } }

Next within the same file search for:
Code:
hideMenu(menuId,submenuId);

AFTER this line add:
Code:
hideSelects('hidden');

Next still within the same file search for:
Code:
menuObj.layer.hide();

AFTER this line add:
Code:
hideSelects('visible');

Search again for:
Code:
menuObj.layer.hide();

and add another entry AFTER it:
Code:
hideSelects('visible');

This will remove all Dropdown selectors from the page if the fancy categories are being used, returning once the user is not mousing over them.

Personally I think this should be standard in Fancy Categories.

I'm gonna move this to Custom Mods area as well.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote