As far as I could tell, you need to use the office theme. Also, clickOpen needs to be set to 2-- otherwise the menu popups up from a mouseover.
<script type="text/javascript" src="js/JSCookMenu/JSCookMenu.js"></script>
<link rel="stylesheet" href="js/JSCookMenu/ThemePanel/theme.css" type="text/css" />
<script type="text/javascript" src="js/JSCookMenu/ThemePanel/theme.js"></script>
<link rel="stylesheet" href="js/JSCookMenu/ThemeOffice/theme.css" type="text/css" />
<script type="text/javascript" src="js/JSCookMenu/ThemeOffice/theme.js"></script>
<script type="text/javascript">
function discontinue(DBCOLUMN4,DeleteReason) {
window.location='Delete.jsp?DBCOLUMN4='+DBCOLUMN4+'&REASON='+DeleteReason;
}
</script>
<form name="MyList">
<TD class="myRow" nowrap valign=center>
<c:set var="MyPopup" value="MyPopup_${row.DBCOLUMN1}${row.DBCOLUMN2}"/>
<div id="${MyPopup}"></div>
<script language="JavaScript" type="text/javascript"><!--
var ${MyPopup} =
[
[null, '<table cellpadding=0 cellspacing=0 border=0 onClick="MyList.${MyPopup}_reason.focus()"><tr><td class="myRow" nowrap>${row.DBCOLUMN3}</td><td><img border=0 src="images/DeleteButton.gif"></td></tr></table>', null, null, null,
[_cmNoClick, '<td class="myRow" colspan=2>Delete reason:<br/><input type="textfield" id="${MyPopup}_reason" onKeyPress="if (event.keyCode==13) MyList.${MyPopup}_button.onclick();"><img border=0 id="${MyPopup}_button" src="images/SubmitButton.gif" onClick="processData(${row.DBCOLUMN4},MyList.${MyPopup}_reason.value)"></td>']
]
];
cmThemeOffice.clickOpen = 2; // click to open
cmDraw ('${MyPopup}', ${MyPopup}, 'vbr', cmThemeOffice, 'ThemeOffice');
--></script>
</TD>
</form>
No comments:
Post a Comment