Add the following code to the ----------------------------------
<Script language = 'javascript '>
***************/
Var mname = new Array (
"First page ",
"Repair and modification ",
"Downlink ",
"Delete ",
"New ",
"Refresh"
);
// Mname is the name corresponding to the menu, and the number of arrays must correspond to the following murl
Var murl = new Array (
"Window. open ('HTTP: // www.cn5.cn ',' _ blank ','');",
"Alert ('modify ');",
"Alert ('Download ');",
"Alert ('delete ');",
"Alert ('new ');",
"Alert ('refresh ');"
);
// Murl is the operation corresponding to the menu. It can be any javascript code, but be careful not to enter \ "in it. You can only use'
// Window. location = 'url ';
Var ph = 18, mwidth = 50; // The height of each option, total menu width
Var bgc = "# eee", txc = "black"; // No selected background color or text color
Var cbgc = "darkblue", ctxc = "white"; // the background color and text color of the selected menu
/**************** Do not modify the following code ******************/
Var mover = "this. style. background = '" + cbgc + "'; this. style. color = '" + ctxc + "';"
Var mout = "this. style. background = '" + bgc + "'; this. style. color = '" + txc + "';"
Document. oncontextmenu = function ()
{
Mlay. style. display = "";
Mlay. style. pixelTop = event. clientY;
Mlay. style. pixelLeft = event. clientX;
Return false;
}
Function showoff ()
{
Mlay. style. display = "none ";
}
Function fresh ()
{
Mlay. style. background = bgc;
Mlay. style. color = txc;
Mlay. style. width = mwidth;
Mlay. style. height = mname. length * ph;
Var h = "<table width = 100% height =" + mname. length * ph + "px cellpadding = 0 cellspacing = 0 border = 0> ";
Var I = 0;
For (I = 0; I <mname. length; I ++)
{
H + = "<tr align = center height =" + ph + "onclick = \" "+ murl [I] +" \ "onMouseover = \" "+ mover + "\ "onMouseout = \" "+ mout +" \ "> <td style = 'font-size: 9pt; '> "+ mname [I] +" </td> </tr> ";
}
H + = "</table> ";
Mlay. innerHTML = h;
}
</Script>
----------------------------------
Replace the <body> tag with the following code:
----------------------------------
<Body onClick = "showoff ();" onload = "fresh ();">
----------------------------------
Insert the following code between <body> and </body>:
----------------------------------
<Div id = "mlay" style = "position: absolute; display: none; cursor: default;" onClick = "return false;"> </div>
----------------------------------
Complete !!!
:)