I have the following JavaScript in a common header:
Code: Select all
// Menu-type button - a sledgehammer to crack a nut
// perhaps, but this gives the button the same look and
// feel as the menu system
function menu_button(menu_name,button_text,button_url,status_text)
{
with(milonic=new menuname(menu_name)){
style=menuStyle;
top=155;
left=200;
alwaysvisible=1;
orientation="horizontal";
overfilter="";
position="relative";
aI("text="+button_text+";url="+button_url+";status="+status_text);
}
drawMenus();
}
e.g. For a login form:
Code: Select all
<td>
<script>menu_button("Login","Submit","JavaScript:login.submit()","Submit details");</script>
</td>
I notice that there was some support about getting keyboard support into the menu system back in 2002. Did this come to fruition? If not, is there something else I can do to handle a keyboard even specifically on my "menu_button"?