Community Add-Ons

Add file to this package
Top » Features

* coolMenu
for osCommerce Online Merchant v2.2

The coolMenu is an animated DHTML-menu written for osCommerce cvs2.2 and 2.2 MS1. This script reads all categories from MySQL and creates an animated categories-menu placed in a box. The program should work with all cvs2.2 versions.

MAIN FEATURES:

- Animated (it even supports "fading" in MSIE :-)
- Unlimited subcategories
- 99% Browser compatibility (the web can be so tricky that I can't say 100%)
--> tested with NS 4.5X, NS6-7, Mozilla (Gecko-Engine), MSIE 4-6, Opera 5-7, etc.
- Very customizable
- Very fast

Legend:  Download   Report
Expand All / Collapse All
Displaying categories_name with apostrophes in CoolMenus jrheisey 12 Sep 2007  

Since an apostrophe is a meaning character in Javascript they must be replaced with the html entity equivalent of '

At line 198 of CoolMenu.php change the lines:

// remove blanks
$categories[$i]['text'] = substr($categories[$i]['text'], 12*$blank_length);

to:
// substitute apostrophes with the ' entity
$category_text = str_replace("'", "'", $categories[$i]['text']);
// remove blanks
$categories[$i]['text'] = substr($category_text, 12*$blank_length);

Updated coolmenu Chris Dunning 2 Mar 2007