Magento : toggleMenu not defined error

If your version is old that makes this type problem.

I have been tried to several way but not solved. Lastly solved this problem.

Please follow my instruction. Hope you will enjoy.

To solved this problem you have to Edit core file. If you avoid to edit core you can paste in your /app/core/local and then edit.

or directly edit to app/code/core/Mage/Catalog/Block/Navigation.php file

$attributes[‘onmouseover’] = ‘toggleMenu(this,1)’;
$attributes[‘onmouseout’] = ‘toggleMenu(this,0)’;

replace with

$attributes[‘onmouseover’] = ‘Element.addClassName(this, \’over\’)’;
$attributes[‘onmouseout’] = ‘Element.removeClassName(this, \’over\’)’;

Now refresh your site hope it is solved. If not solved please alter or replace prototype.js file with latest version.

You can download prototype.js from http://prototypejs.org/download/

Now enjoy.