React and ToChoose Functions for a Menu for All Browsers
Welcome to the sixth part of a nine-part series that shows you how to build a menu for all browsers. In this part we continue to take a look at the JavaScript functions, specifically the react() and toChoose() functions.
React and ToChoose Functions for a Menu for All Browsers (Page 1 of 4 )
The react() Function Details
The arguments for this function are not really the ones we saw in the previous series. This function is called when the mouse pointer goes over a drop down menu or sub menu item. Each of the cells for these items has an onmouseover event attribute. One of attributes is:
onmouseover = "react('TD11','1','sub','5')"
Now let us look at the function. Here it is:
function react(ID,colNo,submenu,noRows)
{
//first make sure all background colors of the sub menu cells are brown.