JavaScript fonts

Allows to define the JavaScript code that will work over the menu or the page. It can be useful to define additional behaviors for the menu or even a menu structure different from the default.

If the default JavaScript is disabled, in the option "Setup", it can include a code that manipulates the information of the menu tree and create a new menu, for example, the following code uses the functions of the YUI library included in Moodle to generate a simple menu bar, similar to the default menu but without effect on the scrolling of submenus:

var menu_ppal_topics = new YAHOO.widget.MenuBar("id_contenedor_menu");
menu_ppal_topics.render();

The example shows the easiest way of the popup menu, however, it can make many more customizations using the functions of the YUI library.

Notes: