The above says that the menu is created, and now is the second part:
(2), select the menu, click on the menu
Select the menu and click the menu to actually mouse Mousemove and Click events. In the Menustyle mentioned above, I am using the Window.createPopup function provided by JavaScript to implement the pop-up menu, the contents of the pop-up menu are a table. Mousemove and Click events are available in each item in the table.
When I happened in the Mousemove event, I made him show a different style.
When the Click event occurs, the function fnclick is called so that we have the task of our needs. Now specifically describe the Menustyle () function.
Function menustyle () {
if (window.navigator.appName == "Microsoft Internet Explorer" && window.navigator.appVersion.substring (window.navigator.appVersion.indexOf ( "MSIE") 5, window.navigator.appVersion.indexOf ( "MSIE") 8)> = 5.5)
ISIE = 1;
Else
ISIE = 0;
IF (isie) {menucontent = '