Hi all
I've downloaded a dropdown-menu from
Could somebody please help me to solve one thing?
I need to use the menu in the following why:
[MENU BUTTON] [DESCRIPTION]
On the mouseover-event of the [MENU BUTTON] it must show the menu and when you select something it should fill the [DESCRIPTION] field, but the following effect accourse, between the button and description field, space is reserved to show the submenu. It would be great if i could change the script so, that instead of openening the first menu to the right of the [MENU BUTTON] it opens below the [MENU BUTTON].
Could somebody please help me solve this problem i'am still a beginner and it would cost me days to solve this.
I've downloaded the following dropdown menu:
I've downloaded a dropdown-menu from
Could somebody please help me to solve one thing?
I need to use the menu in the following why:
[MENU BUTTON] [DESCRIPTION]
On the mouseover-event of the [MENU BUTTON] it must show the menu and when you select something it should fill the [DESCRIPTION] field, but the following effect accourse, between the button and description field, space is reserved to show the submenu. It would be great if i could change the script so, that instead of openening the first menu to the right of the [MENU BUTTON] it opens below the [MENU BUTTON].
Could somebody please help me solve this problem i'am still a beginner and it would cost me days to solve this.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml"[/URL] xml:lang="en">
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="classic.css" />
<script language="javascript" src="jsdomenu.js"></script>
<script type="text/javascript" src="mousepos.js"></script>
<SCRIPT type="text/javascript">
<!--
function createjsDOMenu() {
cursorMenuBar = new jsDOMenu(100, "static", "MenuBar");
with (cursorMenuBar) {
addMenuItem(new menuItem("Select" , "Main", ""));
show();
}
cursorMenuMain = new jsDOMenu(165);
with (cursorMenuMain) {
addMenuItem(new menuItem("Option1","H0000000",""))
}
cursorMenuM0000000= new jsDOMenu(165);
with (cursorMenuM0000000) {
addMenuItem(new menuItem("Option1a", "","code:alert('hello world')"))
addMenuItem(new menuItem("Option1b", "","code:alert('hello world')"))
}
cursorMenuBar.items.Main.setSubMenu(cursorMenuMain);
cursorMenuMain.items.H0000000.setSubMenu(cursorMenuM0000000)
-->
</SCRIPT>
</HEAD>
<BODY bgcolor="A0D9D9" onload="initjsDOMenu()" ID="Bdy" bgColor=white >
<table border=0 cellpadding=0 cellspacing=0 width=100% align="center">
<tr >
<td width="30%" class="prompt"> Choose categorie</td>
<td><DIV Id="MenuBar" width="100"></DIV></td>
<td><input maxlength=0 name=omschrijving size=30></td>
</tr>
</table>
</BODY>
</HTML>
I've downloaded the following dropdown menu: