Mouse icon issue/question in popup menu creaed in dreamweaver

I have created a popup menu in dreamweaver and everything is fine except the popup menu items do not show a hand icon when mouse is over. It is an arrow or  a cursor blink. How can I make it so that it is a hand icon? Thanks.

OK, here it is.
Code from HTML created:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script language="JavaScript">
<!--
function mmLoadMenus() {
  if (window.mm_menu_0817145255_0) return;
  window.mm_menu_0817145255_0 = new Menu("root",82,18,"Arial, Helvetica, sans-serif",12,"#FCFBFA","#000000","#666666","#999999","left","middle",3,0,1000,-5,7,true ,true,true,0,true,true);
  mm_menu_0817145255_0.addMenuItem("CREAM","location='#'");
  mm_menu_0817145255_0.addMenuItem("BUTTER","location='#'");
   mm_menu_0817145255_0.fontWeight="bold";
   mm_menu_0817145255_0.hideOnMouseOut=true;
   mm_menu_0817145255_0.bgColor='#FF6600';
   mm_menu_0817145255_0.menuBorder=0;
   mm_menu_0817145255_0.menuLiteBgColor='#FF9900';
   mm_menu_0817145255_0.menuBorderBgColor='#FF9900';
mm_menu_0817145255_0.onmouseover='foo.jpg';
mm_menu_0817145255_0.writeMenus();
} // mmLoadMenus()
//-->
</script>
<script language="JavaScript" src="mm_menu.js"></script>
</head>
<body>
<script language="JavaScript1.2">mmLoadMenus();</script>
<a href="http://www.msn.com" name="link1" title="COOKIES" target="_self" id="link1" onmouseover="MM_showMenu(window.mm_menu_0817145255_0,0,19,null,'link1')" onmouseout="MM_startTimeout();">COOKIES</a>
</body>
</html>
The code below is from the js file:
* mm_menu 20MAR2002 Version 6.0
* Andy Finnell, March 2002
* Copyright (c) 2000-2002 Macromedia, Inc.
* based on menu.js
* by gary smith, July 1997
* Copyright (c) 1997-1999 Netscape Communications Corp.
* Netscape grants you a royalty free license to use or modify this
* software provided that this copyright notice appears on all copies.
* This software is provided "AS IS," without a warranty of any kind.
function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh, halgn, valgn, pad, space, to, sx, sy, srel, opq, vert, idt, aw, ah)
this.version = "020320 [Menu; mm_menu.js]";
this.type = "Menu";
this.menuWidth = mw;
this.menuItemHeight = mh;
this.fontSize = fs;
this.fontWeight = "plain";
this.fontFamily = fnt;
this.fontColor = fclr;
this.fontColorHilite = fhclr;
this.bgColor = "#555555";
this.menuBorder = 1;
this.menuBgOpaque=opq;
this.menuItemBorder = 1;
this.menuItemIndent = idt;
this.menuItemBgColor = bg;
this.menuItemVAlign = valgn;
this.menuItemHAlign = halgn;
this.menuItemPadding = pad;
this.menuItemSpacing = space;
this.menuLiteBgColor = "#ffffff";
this.menuBorderBgColor = "#777777";
this.menuHiliteBgColor = bgh;
this.menuContainerBgColor = "#cccccc";
this.childMenuIcon = "arrows.gif";
this.submenuXOffset = sx;
this.submenuYOffset = sy;
this.submenuRelativeToItem = srel;
this.vertical = vert;
this.items = new Array();
this.actions = new Array();
this.childMenus = new Array();
this.hideOnMouseOut = true;
this.hideTimeout = to;
this.addMenuItem = addMenuItem;
this.writeMenus = writeMenus;
this.MM_showMenu = MM_showMenu;
this.onMenuItemOver = onMenuItemOver;
this.onMenuItemAction = onMenuItemAction;
this.hideMenu = hideMenu;
this.hideChildMenu = hideChildMenu;
if (!window.menus) window.menus = new Array();
this.label = " " + label;
window.menus[this.label] = this;
window.menus[window.menus.length] = this;
if (!window.activeMenus) window.activeMenus = new Array();
function addMenuItem(label, action) {
this.items[this.items.length] = label;
this.actions[this.actions.length] = action;
function FIND(item) {
if( window.mmIsOpera ) return(document.getElementById(item));
if (document.all) return(document.all[item]);
if (document.getElementById) return(document.getElementById(item));
return(false);
function writeMenus(container) {
if (window.triedToWriteMenus) return;
var agt = navigator.userAgent.toLowerCase();
window.mmIsOpera = agt.indexOf("opera") != -1;
if (!container && document.layers) {
  window.delayWriteMenus = this.writeMenus;
  var timer = setTimeout('delayWriteMenus()', 500);
  container = new Layer(100);
  clearTimeout(timer);
} else if (document.all || document.hasChildNodes || window.mmIsOpera) {
  document.writeln('<span id="menuContainer"></span>');
  container = FIND("menuContainer");
window.mmHideMenuTimer = null;
if (!container) return;
window.triedToWriteMenus = true;
container.isContainer = true;
container.menus = new Array();
for (var i=0; i<window.menus.length; i++)
  container.menus[i] = window.menus[i];
window.menus.length = 0;
var countMenus = 0;
var countItems = 0;
var top = 0;
var content = '';
var lrs = false;
var theStat = "";
var tsc = 0;
if (document.layers) lrs = true;
for (var i=0; i<container.menus.length; i++, countMenus++) {
  var menu = container.menus[i];
  if (menu.bgImageUp || !menu.menuBgOpaque) {
   menu.menuBorder = 0;
   menu.menuItemBorder = 0;
  if (lrs) {
   var menuLayer = new Layer(100, container);
   var lite = new Layer(100, menuLayer);
   lite.top = menu.menuBorder;
   lite.left = menu.menuBorder;
   var body = new Layer(100, lite);
   body.top = menu.menuBorder;
   body.left = menu.menuBorder;
  } else {
   content += ''+
   '<div id="menuLayer'+ countMenus +'" style="position:absolute;z-index:1;left:10px;top:'+ (i * 100) +'px;visibility:hidden;color:' +  menu.menuBorderBgColor + ';">\n'+
   '  <div id="menuLite'+ countMenus +'" style="position:absolute;z-index:1;left:'+ menu.menuBorder +'px;top:'+ menu.menuBorder +'px;visibility:hide;" onmouseout="mouseoutMenu();">\n'+
   '  <div id="menuFg'+ countMenus +'" style="position:absolute;left:'+ menu.menuBorder +'px;top:'+ menu.menuBorder +'px;visibility:hide;">\n'+
  var x=i;
  for (var i=0; i<menu.items.length; i++) {
   var item = menu.items[i];
   var childMenu = false;
   var defaultHeight = menu.fontSize+2*menu.menuItemPadding;
   if (item.label) {
    item = item.label;
    childMenu = true;
   menu.menuItemHeight = menu.menuItemHeight || defaultHeight;
   var itemProps = '';
   if( menu.fontFamily != '' ) itemProps += 'font-family:' + menu.fontFamily +';';
   itemProps += 'font-weight:' + menu.fontWeight + ';fontSize:' + menu.fontSize + 'px;';
   if (menu.fontStyle) itemProps += 'font-style:' + menu.fontStyle + ';';
   if (document.all || window.mmIsOpera)
    itemProps += 'font-size:' + menu.fontSize + 'px;" onmouseover="onMenuItemOver(null,this);" onclick="onMenuItemAction(null,this);';
   else if (!document.layers) {
    itemProps += 'font-size:' + menu.fontSize + 'px;';
   var l;
   if (lrs) {
    var lw = menu.menuWidth;
    if( menu.menuItemHAlign == 'right' ) lw -= menu.menuItemPadding;
    l = new Layer(lw,body);
   var itemLeft = 0;
   var itemTop = i*menu.menuItemHeight;
   if( !menu.vertical ) {
    itemLeft = i*menu.menuWidth;
    itemTop = 0;
   var dTag = '<div id="menuItem'+ countItems +'" style="position:absolute;left:' + itemLeft + 'px;top:'+ itemTop +'px;'+ itemProps +'">';
   var dClose = '</div>'
   if (menu.bgImageUp) dTag = '<div id="menuItem'+ countItems +'" style="background:url('+menu.bgImageUp+');position:absolute;left:' + itemLeft + 'px;top:'+ itemTop +'px;'+ itemProps +'">';
   var left = 0, top = 0, right = 0, bottom = 0;
   left = 1 + menu.menuItemPadding + menu.menuItemIndent;
   right = left + menu.menuWidth - 2*menu.menuItemPadding - menu.menuItemIndent;
   if( menu.menuItemVAlign == 'top' ) top = menu.menuItemPadding;
   if( menu.menuItemVAlign == 'bottom' ) top = menu.menuItemHeight-menu.fontSize-1-menu.menuItemPadding;
   if( menu.menuItemVAlign == 'middle' ) top = ((menu.menuItemHeight/2)-(menu.fontSize/2)-1);
   bottom = menu.menuItemHeight - 2*menu.menuItemPadding;
   var textProps = 'position:absolute;left:' + left + 'px;top:' + top + 'px;';
   if (lrs) {
    textProps +=itemProps + 'right:' + right + ';bottom:' + bottom + ';';
    dTag = "";
    dClose = "";
   if(document.all && !window.mmIsOpera) {
    item = '<div align="' + menu.menuItemHAlign + '">' + item + '</div>';
   } else if (lrs) {
    item = '<div style="text-align:' + menu.menuItemHAlign + ';">' + item + '</div>';
   } else {
    var hitem = null;
    if( menu.menuItemHAlign != 'left' ) {
     if(window.mmIsOpera) {
      var operaWidth = menu.menuItemHAlign == 'center' ? -(menu.menuWidth-2*menu.menuItemPadding) : (menu.menuWidth-6*menu.menuItemPadding);
      hitem = '<div id="menuItemHilite' + countItems + 'Shim" style="position:absolute;top:1px;left:' + menu.menuItemPadding + 'px;width:' + operaWidth + 'px;text-align:'
       + menu.menuItemHAlign + ';visibility:visible;">' + item + '</div>';
      item = '<div id="menuItemText' + countItems + 'Shim" style="position:absolute;top:1px;left:' + menu.menuItemPadding + 'px;width:' + operaWidth + 'px;text-align:'
       + menu.menuItemHAlign + ';visibility:visible;">' + item + '</div>';
     } else {
      hitem = '<div id="menuItemHilite' + countItems + 'Shim" style="position:absolute;top:1px;left:1px;right:-' + (left+menu.menuWidth-3*menu.menuItemPadding) + 'px;text-align:'
       + menu.menuItemHAlign + ';visibility:visible;">' + item + '</div>';
      item = '<div id="menuItemText' + countItems + 'Shim" style="position:absolute;top:1px;left:1px;right:-' + (left+menu.menuWidth-3*menu.menuItemPadding) + 'px;text-align:'
       + menu.menuItemHAlign + ';visibility:visible;">' + item + '</div>';
    } else hitem = null;
   if(document.all && !window.mmIsOpera) item = '<div id="menuItemShim' + countItems + '" style="position:absolute;left:0px;top:0px;">' + item + '</div>';
   var dText = '<div id="menuItemText'+ countItems +'" style="' + textProps + 'color:'+ menu.fontColor +';">'+ item +'&nbsp</div>\n'
      + '<div id="menuItemHilite'+ countItems +'" style="' + textProps + 'color:'+ menu.fontColorHilite +';visibility:hidden;">'
      + (hitem||item) +'&nbsp</div>';
   if (childMenu) content += ( dTag + dText + '<div id="childMenu'+ countItems +'" style="position:absolute;left:0px;top:3px;"><img src="'+ menu.childMenuIcon +'"></div>\n' + dClose);
   else content += ( dTag + dText + dClose);
   if (lrs) {
    l.document.open("text/html");
    l.document.writeln(content);
    l.document.close();
    content = '';
    theStat += "-";
    tsc++;
    if (tsc > 50) {
     tsc = 0;
     theStat = "";
    status = theStat;
   countItems++; 
  if (lrs) {
   var focusItem = new Layer(100, body);
   focusItem.visiblity="hidden";
   focusItem.document.open("text/html");
   focusItem.document.writeln(" ");
   focusItem.document.close();
  } else {
    content += '   <div id="focusItem'+ countMenus +'" style="position:absolute;left:0px;top:0px;visibility:hide;" onclick="onMenuItemAction(null,this);"> </div>\n';
    content += '   </div>\n  </div>\n</div>\n';
  i=x;
if (document.layers) { 
  container.clip.width = window.innerWidth;
  container.clip.height = window.innerHeight;
  container.onmouseout = mouseoutMenu;
  container.menuContainerBgColor = this.menuContainerBgColor;
  for (var i=0; i<container.document.layers.length; i++) {
   proto = container.menus[i];
   var menu = container.document.layers[i];
   container.menus[i].menuLayer = menu;
   container.menus[i].menuLayer.Menu = container.menus[i];
   container.menus[i].menuLayer.Menu.container = container;
   var body = menu.document.layers[0].document.layers[0];
   body.clip.width = proto.menuWidth || body.clip.width;
   body.clip.height = proto.menuHeight || body.clip.height;
   for (var n=0; n<body.document.layers.length-1; n++) {
    var l = body.document.layers[n];
    l.Menu = container.menus[i];
    l.menuHiliteBgColor = proto.menuHiliteBgColor;
    l.document.bgColor = proto.menuItemBgColor;
    l.saveColor = proto.menuItemBgColor;
    l.onmouseover = proto.onMenuItemOver;
    l.onclick = proto.onMenuItemAction;
    l.mmaction = container.menus[i].actions[n];
    l.focusItem = body.document.layers[body.document.layers.length-1];
    l.clip.width = proto.menuWidth || body.clip.width;
    l.clip.height = proto.menuItemHeight || l.clip.height;
    if (n>0) {
     if( l.Menu.vertical ) l.top = body.document.layers[n-1].top + body.document.layers[n-1].clip.height + proto.menuItemBorder + proto.menuItemSpacing;
     else l.left = body.document.layers[n-1].left + body.document.layers[n-1].clip.width + proto.menuItemBorder + proto.menuItemSpacing;
    l.hilite = l.document.layers[1];
    if (proto.bgImageUp) l.background.src = proto.bgImageUp;
    l.document.layers[1].isHilite = true;
    if (l.document.layers.length > 2) {
     l.childMenu = container.menus[i].items[n].menuLayer;
     l.document.layers[2].left = l.clip.width -13;
     l.document.layers[2].top = (l.clip.height / 2) -4;
     l.document.layers[2].clip.left += 3;
     l.Menu.childMenus[l.Menu.childMenus.length] = l.childMenu;
   if( proto.menuBgOpaque ) body.document.bgColor = proto.bgColor;
   if( proto.vertical ) {
    body.clip.width  = l.clip.width +proto.menuBorder;
    body.clip.height = l.top + l.clip.height +proto.menuBorder;
   } else {
    body.clip.height  = l.clip.height +proto.menuBorder;
    body.clip.width = l.left + l.clip.width  +proto.menuBorder;
    if( body.clip.width > window.innerWidth ) body.clip.width = window.innerWidth;
   var focusItem = body.document.layers[n];
   focusItem.clip.width = body.clip.width;
   focusItem.Menu = l.Menu;
   focusItem.top = -30;
            focusItem.captureEvents(Event.MOUSEDOWN);
            focusItem.onmousedown = onMenuItemDown;
   if( proto.menuBgOpaque ) menu.document.bgColor = proto.menuBorderBgColor;
   var lite = menu.document.layers[0];
   if( proto.menuBgOpaque ) lite.document.bgColor = proto.menuLiteBgColor;
   lite.clip.width = body.clip.width +1;
   lite.clip.height = body.clip.height +1;
   menu.clip.width = body.clip.width + (proto.menuBorder * 3) ;
   menu.clip.height = body.clip.height + (proto.menuBorder * 3);
} else {
  if ((!document.all) && (container.hasChildNodes) && !window.mmIsOpera) {
   container.innerHTML=content;
  } else {
   container.document.open("text/html");
   container.document.writeln(content);
   container.document.close();
  if (!FIND("menuLayer0")) return;
  var menuCount = 0;
  for (var x=0; x<container.menus.length; x++) {
   var menuLayer = FIND("menuLayer" + x);
   container.menus[x].menuLayer = "menuLayer" + x;
   menuLayer.Menu = container.menus[x];
   menuLayer.Menu.container = "menuLayer" + x;
   menuLayer.style.zindex = 1;
      var s = menuLayer.style;
   s.pixeltop = -300;
   s.pixelleft = -300;
   s.top = '-300px';
   s.left = '-300px';
   var menu = container.menus[x];
   menu.menuItemWidth = menu.menuWidth || menu.menuIEWidth || 140;
   if( menu.menuBgOpaque ) menuLayer.style.backgroundColor = menu.menuBorderBgColor;
   var top = 0;
   var left = 0;
   menu.menuItemLayers = new Array();
   for (var i=0; i<container.menus[x].items.length; i++) {
    var l = FIND("menuItem" + menuCount);
    l.Menu = container.menus[x];
    l.Menu.menuItemLayers[l.Menu.menuItemLayers.length] = l;
    if (l.addEventListener || window.mmIsOpera) {
     l.style.width = menu.menuItemWidth + 'px';
     l.style.height = menu.menuItemHeight + 'px';
     l.style.pixelWidth = menu.menuItemWidth;
     l.style.pixelHeight = menu.menuItemHeight;
     l.style.top = top + 'px';
     l.style.left = left + 'px';
     if(l.addEventListener) {
      l.addEventListener("mouseover", onMenuItemOver, false);
      l.addEventListener("click", onMenuItemAction, false);
      l.addEventListener("mouseout", mouseoutMenu, false);
     if( menu.menuItemHAlign != 'left' ) {
      l.hiliteShim = FIND("menuItemHilite" + menuCount + "Shim");
      l.hiliteShim.style.visibility = "inherit";
      l.textShim = FIND("menuItemText" + menuCount + "Shim");
      l.hiliteShim.style.pixelWidth = menu.menuItemWidth - 2*menu.menuItemPadding - menu.menuItemIndent;
      l.hiliteShim.style.width = l.hiliteShim.style.pixelWidth;
      l.textShim.style.pixelWidth = menu.menuItemWidth - 2*menu.menuItemPadding - menu.menuItemIndent;
      l.textShim.style.width = l.textShim.style.pixelWidth;
    } else {
     l.style.pixelWidth = menu.menuItemWidth;
     l.style.pixelHeight = menu.menuItemHeight;
     l.style.pixelTop = top;
     l.style.pixelLeft = left;
     if( menu.menuItemHAlign != 'left' ) {
      var shim = FIND("menuItemShim" + menuCount);
      shim[0].style.pixelWidth = menu.menuItemWidth - 2*menu.menuItemPadding - menu.menuItemIndent;
      shim[1].style.pixelWidth = menu.menuItemWidth - 2*menu.menuItemPadding - menu.menuItemIndent;
      shim[0].style.width = shim[0].style.pixelWidth + 'px';
      shim[1].style.width = shim[1].style.pixelWidth + 'px';
    if( menu.vertical ) top = top + menu.menuItemHeight+menu.menuItemBorder+menu.menuItemSpacing;
    else left = left + menu.menuItemWidth+menu.menuItemBorder+menu.menuItemSpacing;
    l.style.fontSize = menu.fontSize + 'px';
    l.style.backgroundColor = menu.menuItemBgColor;
    l.style.visibility = "inherit";
    l.saveColor = menu.menuItemBgColor;
    l.menuHiliteBgColor = menu.menuHiliteBgColor;
    l.mmaction = container.menus[x].actions[i];
    l.hilite = FIND("menuItemHilite" + menuCount);
    l.focusItem = FIND("focusItem" + x);
    l.focusItem.style.pixelTop = -30;
    l.focusItem.style.top = '-30px';
    var childItem = FIND("childMenu" + menuCount);
    if (childItem) {
     l.childMenu = container.menus[x].items[i].menuLayer;
     childItem.style.pixelLeft = menu.menuItemWidth -11;
     childItem.style.left = childItem.style.pixelLeft + 'px';
     childItem.style.pixelTop = (menu.menuItemHeight /2) -4;
     childItem.style.top = childItem.style.pixelTop + 'px';
     l.Menu.childMenus[l.Menu.childMenus.length] = l.childMenu;
    l.style.cursor = "hand";
    menuCount++;
   if( menu.vertical ) {
    menu.menuHeight = top-1-menu.menuItemSpacing;
    menu.menuWidth = menu.menuItemWidth;
   } else {
    menu.menuHeight = menu.menuItemHeight;
    menu.menuWidth = left-1-menu.menuItemSpacing;
   var lite = FIND("menuLite" + x);
   var s = lite.style;
   s.pixelHeight = menu.menuHeight +(menu.menuBorder * 2);
   s.height = s.pixelHeight + 'px';
   s.pixelWidth = menu.menuWidth + (menu.menuBorder * 2);
   s.width = s.pixelWidth + 'px';
   if( menu.menuBgOpaque ) s.backgroundColor = menu.menuLiteBgColor;
   var body = FIND("menuFg" + x);
   s = body.style;
   s.pixelHeight = menu.menuHeight + menu.menuBorder;
   s.height = s.pixelHeight + 'px';
   s.pixelWidth = menu.menuWidth + menu.menuBorder;
   s.width = s.pixelWidth + 'px';
   if( menu.menuBgOpaque ) s.backgroundColor = menu.bgColor;
   s = menuLayer.style;
   s.pixelWidth  = menu.menuWidth + (menu.menuBorder * 4);
   s.width = s.pixelWidth + 'px';
   s.pixelHeight  = menu.menuHeight+(menu.menuBorder*4);
   s.height = s.pixelHeight + 'px';
if (document.captureEvents) document.captureEvents(Event.MOUSEUP);
if (document.addEventListener) document.addEventListener("mouseup", onMenuItemOver, false);
if (document.layers && window.innerWidth) {
  window.onresize = NS4resize;
  window.NS4sIW = window.innerWidth;
  window.NS4sIH = window.innerHeight;
  setTimeout("NS4resize()",500);
document.onmouseup = mouseupMenu;
window.mmWroteMenu = true;
status = "";
function NS4resize() {
if (NS4sIW != window.innerWidth || NS4sIH != window.innerHeight) window.location.reload();
function onMenuItemOver(e, l) {
MM_clearTimeout();
l = l || this;
var a = window.ActiveMenuItem;
if (document.layers) {
  if (a) {
   a.document.bgColor = a.saveColor;
   if (a.hilite) a.hilite.visibility = "hidden";
   if (a.Menu.bgImageOver) a.background.src = a.Menu.bgImageUp;
   a.focusItem.top = -100;
   a.clicked = false;
  if (l.hilite) {
   l.document.bgColor = l.menuHiliteBgColor;
   l.zIndex = 1;
   l.hilite.visibility = "inherit";
   l.hilite.zIndex = 2;
   l.document.layers[1].zIndex = 1;
   l.focusItem.zIndex = this.zIndex +2;
  if (l.Menu.bgImageOver) l.background.src = l.Menu.bgImageOver;
  l.focusItem.top = this.top;
  l.focusItem.left = this.left;
  l.focusItem.clip.width = l.clip.width;
  l.focusItem.clip.height = l.clip.height;
  l.Menu.hideChildMenu(l);
} else if (l.style && l.Menu) {
  if (a) {
   a.style.backgroundColor = a.saveColor;
   if (a.hilite) a.hilite.style.visibility = "hidden";
   if (a.hiliteShim) a.hiliteShim.style.visibility = "inherit";
   if (a.Menu.bgImageUp) a.style.background = "url(" + a.Menu.bgImageUp +")";;
  l.style.backgroundColor = l.menuHiliteBgColor;
  l.zIndex = 1;
  if (l.Menu.bgImageOver) l.style.background = "url(" + l.Menu.bgImageOver +")";
  if (l.hilite) {
   l.hilite.style.visibility = "inherit";
   if( l.hiliteShim ) l.hiliteShim.style.visibility = "visible";
  l.focusItem.style.pixelTop = l.style.pixelTop;
  l.focusItem.style.top = l.focusItem.style.pixelTop + 'px';
  l.focusItem.style.pixelLeft = l.style.pixelLeft;
  l.focusItem.style.left = l.focusItem.style.pixelLeft + 'px';
  l.focusItem.style.zIndex = l.zIndex +1;
  l.Menu.hideChildMenu(l);
} else return;
window.ActiveMenuItem = l;
function onMenuItemAction(e, l) {
l = window.ActiveMenuItem;
if (!l) return;
hideActiveMenus();
if (l.mmaction) eval("" + l.mmaction);
window.ActiveMenuItem = 0;
function MM_clearTimeout() {
if (mmHideMenuTimer) clearTimeout(mmHideMenuTimer);
mmHideMenuTimer = null;
mmDHFlag = false;
function MM_startTimeout() {
if( window.ActiveMenu ) {
  mmStart = new Date();
  mmDHFlag = true;
  mmHideMenuTimer = setTimeout("mmDoHide()", window.ActiveMenu.Menu.hideTimeout);
function mmDoHide() {
if (!mmDHFlag || !window.ActiveMenu) return;
var elapsed = new Date() - mmStart;
var timeout = window.ActiveMenu.Menu.hideTimeout;
if (elapsed < timeout) {
  mmHideMenuTimer = setTimeout("mmDoHide()", timeout+100-elapsed);
  return;
mmDHFlag = false;
hideActiveMenus();
window.ActiveMenuItem = 0;
function MM_showMenu(menu, x, y, child, imgname) {
if (!window.mmWroteMenu) return;
MM_clearTimeout();
if (menu) {
  var obj = FIND(imgname) || document.images[imgname] || document.links[imgname] || document.anchors[imgname];
  x = moveXbySlicePos (x, obj);
  y = moveYbySlicePos (y, obj);
if (document.layers) {
  if (menu) {
   var l = menu.menuLayer || menu;
   l.top = l.left = 1;
   hideActiveMenus();
   if (this.visibility) l = this;
   window.ActiveMenu = l;
  } else {
   var l = child;
  if (!l) return;
  for (var i=0; i<l.layers.length; i++) {      
   if (!l.layers[i].isHilite) l.layers[i].visibility = "inherit";
   if (l.layers[i].document.layers.length > 0) MM_showMenu(null, "relative", "relative", l.layers[i]);
  if (l.parentLayer) {
   if (x != "relative") l.parentLayer.left = x || window.pageX || 0;
   if (l.parentLayer.left + l.clip.width > window.innerWidth) l.parentLayer.left -= (l.parentLayer.left + l.clip.width - window.innerWidth);
   if (y != "relative") l.parentLayer.top = y || window.pageY || 0;
   if (l.parentLayer.isContainer) {
    l.Menu.xOffset = window.pageXOffset;
    l.Menu.yOffset = window.pageYOffset;
    l.parentLayer.clip.width = window.ActiveMenu.clip.width +2;
    l.parentLayer.clip.height = window.ActiveMenu.clip.height +2;
    if (l.parentLayer.menuContainerBgColor && l.Menu.menuBgOpaque ) l.parentLayer.document.bgColor = l.parentLayer.menuContainerBgColor;
  l.visibility = "inherit";
  if (l.Menu) l.Menu.container.visibility = "inherit";
} else if (FIND("menuItem0")) {
  var l = menu.menuLayer || menu;
  hideActiveMenus();
  if (typeof(l) == "string") l = FIND(l);
  window.ActiveMenu = l;
  var s = l.style;
  s.visibility = "inherit";
  if (x != "relative") {
   s.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0;
   s.left = s.pixelLeft + 'px';
  if (y != "relative") {
   s.pixelTop = y || (window.pageY + document.body.scrollTop) || 0;
   s.top = s.pixelTop + 'px';
  l.Menu.xOffset = document.body.scrollLeft;
  l.Menu.yOffset = document.body.scrollTop;
if (menu) window.activeMenus[window.activeMenus.length] = l;
MM_clearTimeout();
function onMenuItemDown(e, l) {
var a = window.ActiveMenuItem;
if (document.layers && a) {
  a.eX = e.pageX;
  a.eY = e.pageY;
  a.clicked = true;
function mouseupMenu(e) {
hideMenu(true, e);
hideActiveMenus();
return true;
function getExplorerVersion() {
var ieVers = parseFloat(navigator.appVersion);
if( navigator.appName != 'Microsoft Internet Explorer' ) return ieVers;
var tempVers = navigator.appVersion;
var i = tempVers.indexOf( 'MSIE ' );
if( i >= 0 ) {
  tempVers = tempVers.substring( i+5 );
  ieVers = parseFloat( tempVers );
return ieVers;
function mouseoutMenu() {
if ((navigator.appName == "Microsoft Internet Explorer") && (getExplorerVersion() < 4.5))
  return true;
hideMenu(false, false);
return true;
function hideMenu(mouseup, e) {
var a = window.ActiveMenuItem;
if (a && document.layers) {
  a.document.bgColor = a.saveColor;
  a.focusItem.top = -30;
  if (a.hilite) a.hilite.visibility = "hidden";
  if (mouseup && a.mmaction && a.clicked && window.ActiveMenu) {
    if (a.eX <= e.pageX+15 && a.eX >= e.pageX-15 && a.eY <= e.pageY+10 && a.eY >= e.pageY-10) {
    setTimeout('window.ActiveMenu.Menu.onMenuItemAction();', 500);
  a.clicked = false;
  if (a.Menu.bgImageOver) a.background.src = a.Menu.bgImageUp;
} else if (window.ActiveMenu && FIND("menuItem0")) {
  if (a) {
   a.style.backgroundColor = a.saveColor;
   if (a.hilite) a.hilite.style.visibility = "hidden";
   if (a.hiliteShim) a.hiliteShim.style.visibility = "inherit";
   if (a.Menu.bgImageUp) a.style.background = "url(" + a.Menu.bgImageUp +")";
if (!mouseup && window.ActiveMenu) {
  if (window.ActiveMenu.Menu) {
   if (window.ActiveMenu.Menu.hideOnMouseOut) MM_startTimeout();
   return(true);
return(true);
function hideChildMenu(hcmLayer) {
MM_clearTimeout();
var l = hcmLayer;
for (var i=0; i < l.Menu.childMenus.length; i++) {
  var theLayer = l.Menu.childMenus[i];
  if (document.layers) theLayer.visibility = "hidden";
  else {
   theLayer = FIND(theLayer);
   theLayer.style.visibility = "hidden";
   if( theLayer.Menu.menuItemHAlign != 'left' ) {
    for(var j = 0; j < theLayer.Menu.menuItemLayers.length; j++) {
     var itemLayer = theLayer.Menu.menuItemLayers[j];
     if(itemLayer.textShim) itemLayer.textShim.style.visibility = "inherit";
  theLayer.Menu.hideChildMenu(theLayer);
if (l.childMenu) {
  var childMenu = l.childMenu;
  if (document.layers) {
   l.Menu.MM_showMenu(null,null,null,childMenu.layers[0]);
   childMenu.zIndex = l.parentLayer.zIndex +1;
   childMenu.top = l.Menu.menuLayer.top + l.Menu.submenuYOffset;
   if( l.Menu.vertical ) {
    if( l.Menu.submenuRelativeToItem ) childMenu.top += l.top + l.parentLayer.top;
    childMenu.left = l.parentLayer.left + l.parentLayer.clip.width - (2*l.Menu.menuBorder) + l.Menu.menuLayer.left + l.Menu.submenuXOffset;
   } else {
    childMenu.top += l.top + l.parentLayer.top;
    if( l.Menu.submenuRelativeToItem ) childMenu.left = l.Menu.menuLayer.left + l.left + l.clip.width + (2*l.Menu.menuBorder) + l.Menu.submenuXOffset;
    else childMenu.left = l.parentLayer.left + l.parentLayer.clip.width - (2*l.Menu.menuBorder) + l.Menu.menuLayer.left + l.Menu.submenuXOffset;
   if( childMenu.left < l.Menu.container.clip.left ) l.Menu.container.clip.left = childMenu.left;
   var w = childMenu.clip.width+childMenu.left-l.Menu.container.clip.left;
   if (w > l.Menu.container.clip.width)  l.Menu.container.clip.width = w;
   var h = childMenu.clip.height+childMenu.top-l.Menu.container.clip.top;
   if (h > l.Menu.container.clip.height) l.Menu.container.clip.height = h;
   l.document.layers[1].zIndex = 0;
   childMenu.visibility = "inherit";
  } else if (FIND("menuItem0")) {
   childMenu = FIND(l.childMenu);
   var menuLayer = FIND(l.Menu.menuLayer);
   var s = childMenu.style;
   s.zIndex = menuLayer.style.zIndex+1;
   if (document.all || window.mmIsOpera) {
    s.pixelTop = menuLayer.style.pixelTop + l.Menu.submenuYOffset;
    if( l.Menu.vertical ) {
     if( l.Menu.submenuRelativeToItem ) s.pixelTop += l.style.pixelTop;
     s.pixelLeft = l.style.pixelWidth + menuLayer.style.pixelLeft + l.Menu.submenuXOffset;
     s.left = s.pixelLeft + 'px';
    } else {
     s.pixelTop += l.style.pixelTop;
     if( l.Menu.submenuRelativeToItem ) s.pixelLeft = menuLayer.style.pixelLeft + l.style.pixelLeft + l.style.pixelWidth + (2*l.Menu.menuBorder) + l.Menu.submenuXOffset;
     else s.pixelLeft = (menuLayer.style.pixelWidth-4*l.Menu.menuBorder) + menuLayer.style.pixelLeft + l.Menu.submenuXOffset;
     s.left = s.pixelLeft + 'px';
   } else {
    var top = parseInt(menuLayer.style.top) + l.Menu.submenuYOffset;
    var left = 0;
    if( l.Menu.vertical ) {
     if( l.Menu.submenuRelativeToItem ) top += parseInt(l.style.top);
     left = (parseInt(menuLayer.style.width)-4*l.Menu.menuBorder) + parseInt(menuLayer.style.left) + l.Menu.submenuXOffset;
    } else {
     top += parseInt(l.style.top);
     if( l.Menu.submenuRelativeToItem ) left = parseInt(menuLayer.style.left) + parseInt(l.style.left) + parseInt(l.style.width) + (2*l.Menu.menuBorder) + l.Menu.submenuXOffset;
     else left = (parseInt(menuLayer.style.width)-4*l.Menu.menuBorder) + parseInt(menuLayer.style.left) + l.Menu.submenuXOffset;
    s.top = top + 'px';
    s.left = left + 'px';
   childMenu.style.visibility = "inherit";
  } else return;
  window.activeMenus[window.activeMenus.length] = childMenu;
function hideActiveMenus() {
if (!window.activeMenus) return;
for (var i=0; i < window.activeMenus.length; i++) {
  if (!activeMenus[i]) continue;
  if (activeMenus[i].visibility && activeMenus[i].Menu && !window.mmIsOpera) {
   activeMenus[i].visibility = "hidden";
   activeMenus[i].Menu.container.visibility = "hidden";
   activeMenus[i].Menu.container.clip.left = 0;
  } else if (activeMenus[i].style) {
   var s = activeMenus[i].style;
   s.visibility = "hidden";
   s.left = '-200px';
   s.top = '-200px';
if (window.ActiveMenuItem) hideMenu(false, false);
window.activeMenus.length = 0;
function moveXbySlicePos (x, img) {
if (!document.layers) {
  var onWindows = navigator.platform ? navigator.platform == "Win32" : false;
  var macIE45 = document.all && !onWindows && getExplorerVersion() == 4.5;
  var par = img;
  var lastOffset = 0;
  while(par){
   if( par.leftMargin && ! onWindows ) x += parseInt(par.leftMargin);
   if( (par.offsetLeft != lastOffset) && par.offsetLeft ) x += parseInt(par.offsetLeft);
   if( par.offsetLeft != 0 ) lastOffset = par.offsetLeft;
   par = macIE45 ? par.parentElement : par.offsetParent;
} else if (img.x) x += img.x;
return x;
function moveYbySlicePos (y, img) {
if(!document.layers) {
  var onWindows = navigator.platform ? navigator.platform == "Win32" : false;
  var macIE45 = document.all && !onWindows && getExplorerVersion() == 4.5;
  var par = img;
  var lastOffset = 0;
  while(par){
   if( par.topMargin && !onWindows ) y += parseInt(par.topMargin);
   if( (par.offsetTop != lastOffset) && par.offsetTop ) y += parseInt(par.offsetTop);
   if( par.offsetTop != 0 ) lastOffset = par.offsetTop;
   par = macIE45 ? par.parentElement : par.offsetParent;
} else if (img.y >= 0) y += img.y;
return y;

Similar Messages

  • How to listen mouse event when drag on popup menu

    hi, all
    Please explain: When the Frame show, click mouse (left/right) on title bar of Frame, the popup menu will be show
    I Expected :
    When drag mouse on this popup menu will System.out.print("Mouse dragging on popup...");
    Thanks many,

    I know this popup is managed by window
    How to I can get mouse action on it ?

  • Popup menu stalls page

    I was wondering if anyone had any suggestions. I had my popup
    menu exported to dreamweaver and it was all working. I then added
    more javascript to the page and now its not working. I exported it
    all again and inserted it but no luck. The moment i roll over a
    popup it sticks on screen and won't disappear. I have no idea what
    to try. I haven't edited the mm_css_menu.js document at all so i am
    assuming its in my main html somewhere. or is gthere something i
    should tick when exporting from fireworks? any help much
    appreciated.
    Thanks.

    KirstyLee2005 wrote:
    > yes i have been back and forward with it all day. I have
    included my
    > link so you can see the problem.
    >
    >
    http://www.carnsoftware.co.uk/staidans/index.html
    >
    > if you roll over the second button on the menu bar the
    popup appears
    > and sticks. in the bottom left of the browser window you
    get 'error
    > on page'.
    Note this error. Remove one of the "@import
    url("menubar.css");"
    <style type="text/css">
    <!--
    @import url("menubar.css");
    @import url("menubar.css");
    Are you still using these?
    <script type="text/javascript"
    src="js/scriptaculous.js?load=effects,builder"></script>
    <script type="text/javascript"
    src="js/lightbox.js"></script>
    Linda Rathgeber - Adobe Community Expert
    http://www.adobe.com/communities/experts/members/8.html

  • Disable Right Mouse Button Popup Menu

    How can I disable right mouse button popup menu for a LabVIEW control to use
    my custom popup menu?
    Alessio Colzi

    Sorry for the stupid question but I forgot that option.
    Thank you Gorka
    Alessio
    "Gorka Larrea" ha scritto nel messaggio
    news:[email protected]..
    > Not sure if can be made under LV 6 but under LV 5.0 you can disable
    > runtime popup menu for all the vi under VI setup right clicking the
    > icon in the right part of the front panel.
    >
    > Another option is to put a transparent decoration over your control,
    > to avoid right clicking.
    >
    > Hope this helps

  • HT204291 I have downloaded the new Lion OS X but the AirPlay icon wont appear in my menu bar.  The option of AirPlay mirroring is turned on in the Display settings. No issues Air playing through iTunes. Need help. Thanks

    I have downloaded the new Lion OS X but the AirPlay icon wont appear in my menu bar.  The option of AirPlay mirroring is turned on in the Display settings. No issues Air playing through iTunes. Need help. Thanks

    AirPlay
    AirPlay Mirroring requires a second-generation Apple TV or later, and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer).
    Several Apple Articles Regarding AirPlay
    Apple TV (2nd and 3rd gen)- How to use AirPlay Mirroring
    How to set up and configure AirPort Express for AirPlay and iTunes
    Troubleshooting AirPlay and AirPlay Mirroring
    Using AirPlay

  • Mouse right click button, popup menu, PC frozen

    Hello all,
    It has been while I've been noticing this problem.
    Almost every time I click with the right mouse button on an email from the list of emails or a word inside the content of an email to see which words are suggested by the spell checker, the usual popup menu appear but immediately after
    my PC gets frozen. I need to restart it.
    I don't think TB causes that crash, but something indirectly related.
    How can I debug this? (I'm software developer)
    Thank you so much.
    Roberto

    Update1:
    I put my attention only in the main TB menu.
    I disabled the TB extensions (only Lighting and EnigMail) and tried again to play with the main TB menu.
    With this new TB GUI, you don't see directly the main menu. I usually click the ALT key and the main menu will be displayed. After that I play with it a bit. That means, I clicked on on Tools or File or View etc items and just moved the mouse cursor over the popup menu, without clicking on a specific submenu item. After a while, some seconds, the PC gets frozen and I need to restard the PC.
    I started TB in safe mode also (-safe-mode). In this mode the main menu appears always so I don't need to click on the ALT key.
    I repeat the same steps of moving the mouse cursor of popup main menu items. Up to now, all is normal, without crashing or freezing.
    PC: Win7 (full updated), x64, TB last version.
    Any idea how can I debug this problem?
    Thanks

  • Popup menu on tab components disables JTabbedPane mouse clicks

    When I add a popup menu to the tab components, the underlying JTabbedPane doesn't respond to any mouse click. How can we solve this?
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class TabPopupDemo extends JFrame {
        private JLabel jLabel1;
        private JLabel jLabel2;
        private JMenuItem jMenuItem1;
        private JPopupMenu jPopupMenu1;
        private JTabbedPane jTabbedPane1;
        public TabPopupDemo() {
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            setSize(400, 300);
            setLocationRelativeTo(null);
            jPopupMenu1 = new JPopupMenu();
            jMenuItem1 = new JMenuItem("jMenuItem1");
            jTabbedPane1 = new JTabbedPane();
            jLabel1 = new JLabel("jLabel1");
            jLabel2 = new JLabel("jLabel2");
            jPopupMenu1.add(jMenuItem1);
            jTabbedPane1.addTab(null, jLabel1);
            jTabbedPane1.addTab(null, jLabel2);
            getContentPane().add(jTabbedPane1, BorderLayout.CENTER);
            int tabCount = jTabbedPane1.getTabCount();
            for (int i = 0; i < tabCount; i++) {
                JLabel jLabel = new JLabel("Testing the tab" + (i + 1));
                jTabbedPane1.setTabComponentAt(i, jLabel);
                jLabel.setName(String.valueOf(i));
                jLabel.setComponentPopupMenu(jPopupMenu1);
            jPopupMenu1.addPopupMenuListener(new PopupMenuListener() {
                public void popupMenuCanceled(final PopupMenuEvent evt) {
                public void popupMenuWillBecomeInvisible(final PopupMenuEvent evt) {
                public void popupMenuWillBecomeVisible(final PopupMenuEvent evt) {
                    JPopupMenu source = (JPopupMenu) evt.getSource();
                    JLabel invoker = (JLabel) source.getInvoker();
                    JLabel component = (JLabel) jTabbedPane1.getComponentAt(Integer.parseInt(invoker.getName()));
                    jMenuItem1.setText(invoker.getText() + ":  " + component.getText());
        public static void main(final String args[]) {
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new TabPopupDemo().setVisible(true);
    }

    I don't know what the best solution would be.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class TabPopupDemo2 extends JFrame {
      private JLabel jLabel1;
      private JLabel jLabel2;
      private JMenuItem jMenuItem1;
      private JPopupMenu jPopupMenu1;
      private JTabbedPane jTabbedPane1;
      public TabPopupDemo2() {
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        setSize(400, 300);
        setLocationRelativeTo(null);
        jPopupMenu1 = new JPopupMenu();
        jMenuItem1 = new JMenuItem("jMenuItem1");
        jTabbedPane1 = new JTabbedPane();
        jLabel1 = new JLabel("jLabel1");
        jLabel2 = new JLabel("jLabel2");
        jPopupMenu1.add(jMenuItem1);
        jTabbedPane1.addTab(null, jLabel1);
        jTabbedPane1.addTab(null, jLabel2);
        getContentPane().add(jTabbedPane1, BorderLayout.CENTER);
        int tabCount = jTabbedPane1.getTabCount();
        TabMouseListener tml = new TabMouseListener(jTabbedPane1);
        for (int i = 0; i < tabCount; i++) {
          JLabel jLabel = new JLabel("Testing the tab" + (i + 1));
          jTabbedPane1.setTabComponentAt(i, jLabel);
          jLabel.setName(String.valueOf(i));
          jLabel.addMouseListener(tml);
          jLabel.setComponentPopupMenu(jPopupMenu1);
        jPopupMenu1.addPopupMenuListener(new PopupMenuListener() {
          public void popupMenuCanceled(PopupMenuEvent evt) {}
          public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {}
          public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
            //JPopupMenu source = (JPopupMenu) e.getSource();
            //JLabel invoker = (JLabel) source.getInvoker();
            int index = jTabbedPane1.getSelectedIndex();
            JLabel invoker = (JLabel) jTabbedPane1.getTabComponentAt(index);
            JLabel component = (JLabel) jTabbedPane1.getComponentAt(index);
            jMenuItem1.setText(invoker.getText() + ":  " + component.getText());
      static class TabMouseListener extends MouseAdapter{
        private final JTabbedPane tp;
        TabMouseListener(JTabbedPane tabbedPane) {
          this.tp = tabbedPane;
        private void dispatchEvent(MouseEvent me) {
          JLabel l = (JLabel)me.getSource();
          tp.dispatchEvent(SwingUtilities.convertMouseEvent(l,me,tp));
        public void mouseClicked(MouseEvent me)  { dispatchEvent(me); }
        public void mouseEntered(MouseEvent me)  { dispatchEvent(me); }
        public void mouseExited(MouseEvent me)   { dispatchEvent(me); }
        public void mousePressed(MouseEvent me)  { dispatchEvent(me); }
        public void mouseReleased(MouseEvent me) { dispatchEvent(me); }
      public static void main(final String args[]) {
        EventQueue.invokeLater(new Runnable() {
          public void run() { new TabPopupDemo2().setVisible(true); }
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class TabPopupDemo3 extends JFrame {
      private JLabel jLabel1;
      private JLabel jLabel2;
      private JMenuItem jMenuItem1;
      private JPopupMenu jPopupMenu1;
      private JTabbedPane jTabbedPane1;
      public TabPopupDemo3() {
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        setSize(400, 300);
        setLocationRelativeTo(null);
        jPopupMenu1 = new JPopupMenu();
    //     jPopupMenu1 = new JPopupMenu() {
    //       public void show(Component c, int x, int y) {
    //         int i = jTabbedPane1.indexAtLocation(x, y);
    //         if(i>=0) {
    //           JLabel tab = (JLabel) jTabbedPane1.getTabComponentAt(i);
    //           JLabel component = (JLabel) jTabbedPane1.getComponentAt(i);
    //           jMenuItem1.setText(tab.getText() + ":  " + component.getText());
    //           super.show(c, x, y);
        jMenuItem1 = new JMenuItem("jMenuItem1");
        jTabbedPane1 = new JTabbedPane();
        jTabbedPane1.setComponentPopupMenu(jPopupMenu1);
        jLabel1 = new JLabel("jLabel1");
        jLabel2 = new JLabel("jLabel2");
        jPopupMenu1.add(jMenuItem1);
        jTabbedPane1.addTab(null, jLabel1);
        jTabbedPane1.addTab(null, jLabel2);
        getContentPane().add(jTabbedPane1, BorderLayout.CENTER);
        int tabCount = jTabbedPane1.getTabCount();
        for (int i = 0; i < tabCount; i++) {
          JLabel jLabel = new JLabel("Testing the tab" + (i + 1));
          jTabbedPane1.setTabComponentAt(i, jLabel);
          jLabel.setName(String.valueOf(i));
          //jLabel.setComponentPopupMenu(jPopupMenu1);
        jPopupMenu1.addPopupMenuListener(new PopupMenuListener() {
          public void popupMenuCanceled(final PopupMenuEvent evt) {}
          public void popupMenuWillBecomeInvisible(final PopupMenuEvent evt) {}
          public void popupMenuWillBecomeVisible(final PopupMenuEvent evt) {
            JPopupMenu source = (JPopupMenu) evt.getSource();
            int i = jTabbedPane1.getSelectedIndex();
            JLabel tab = (JLabel) jTabbedPane1.getTabComponentAt(i);
            JLabel component = (JLabel) jTabbedPane1.getComponentAt(i);
            if(tab.getMousePosition()!=null) {
              jMenuItem1.setText(tab.getText() + ":  " + component.getText());
            }else{
              jMenuItem1.setText("aaaaaaaaa");
      public static void main(final String args[]) {
        EventQueue.invokeLater(new Runnable() {
          public void run() { new TabPopupDemo3().setVisible(true); }
    }

  • Press Alt to popup Menu Toolbar, Click on a Custom Icon and the item does not come up AND the Tool Bar closes

    Options-->Menu Bar is Unchecked(off) (so, TABS are at the top of the screen):
    Press Alt to popup Menu Bar, Click on a Custom Icon and the item clicked on does not come up -and- the Menu Bar closes.
    So, Alt->Popup Menu Bar->Click a Custom Icon does not function properly.
    see Troubleshooting Info below-->

    First off if you have Firefox4 you probably also have an earlier version such as firefox 3.6.15 installed. By default firefox installs these in slightly different locations, but it leaves it up to you to create a separate profile for each version. The profile is where firefox stores data and settings. I am not sure that firefox explains this clearly, but you will run into problems if you do not have a separate profile for each version of firefox. See http://kb.mozillazine.org/Testing_pre-release_versions
    To try to get the toolbars working correctly, after you have ensured you have separate profiles in use for each version ( the following action will make changes)
    # use the restore default set from the customise / customize toolbars dialogue
    # if that does not work then
    #* use [safe mode] and the option [X] reset toolbars and controls

  • Popup Menu simple question

    Hi ive got my applet and I want to respond with a popup menu when the user right clicks
    Will java.awt.popupmenu provide a popup menu with the look and feel of the OS's popup menus?
    Im using a simple canvas in my applet. Is this the best class to do a popup menu?
    Thanks

    bump
    Any1?

  • Popup Menu question

    When I make popup-menus, I the second layer has a little red
    x on it before it is highlighted. The first layer doesn't do this.
    I don't get it. How do I get rid of the red x. I am using DW 7.0.1
    and IE 7.0

    Glad to be of help, even in a roundabout way (o:
    Jo
    "magnum54o2" <[email protected]> wrote in
    message
    news:e4ne3e$kv9$[email protected]..
    >I think this is the wrong code, but I believe I've got
    it. Your hint about
    >an
    > image not loaded helped me find arrows.gif that was
    added to my folder
    > after I
    > added the second tier to the popup menu. I "put" the
    arrows.gif and now
    > it
    > looks fine. Thanks for the help!
    >
    > Dennis
    >

  • AWT Popup Menu in Fullscreen Exclusive + JOGL

    Our application runs in Fullscreen Exclusive mode and uses JOGL. We want the user to be able to access right-click Popup menus like in other applications. (Obviously, this isn't a game; but I figured I'd post here because game developers are the only ones likely to be familiar with Fullscreen Exclusive.)
    On Windows, I was pleasantly suprised to find that popupMenu.show() just works when I'm in Fullscreen Exclusive. The menu appears, works correctly, etc.
    On Mac OS X 10.3+, the menu does not appear. I've developed a clumsy workaround (basically, go out of fullscreen exclusive to show the menu, and then go back in when mouse events start coming again). Frankly, the way it works on a Mac is what I expected on the PC. I wouldn't expect a Popup Menu (being another window) to be able to appear over a fullscreen exclusive window.
    My question is this: Is the Windows behavior a bug? Is it video driver dependent? (It seems to work OK with all the machines we've tested on... ATI, NVIDIA, Intel) Should I be doing my Mac hack on the Windows platform to avoid some unforseen problem?
    Also, any idea what Linux or other platforms would do?

    I am not sure why that works in one OS and not the others.
    All I can say is that if it was a game, we would draw the popup menu ourself within the frame in our rendering loop, that is garunteed to work in all OS's. But your probably using AWT or SWING components. Sounds like it may be a compadibility issue, I would check the bug lists to see if that is a known issue that is being worked on.

  • White screen with flashing file icon with question mark mean

    What does this mean.   We are getting a white screen with flashing file icon with question mark inside the file. 

    It almost certainly means it can't find a bootable volume (one with OS X on it).
    Which means most likely you will have to find your original system installation DVD and install it. Then you should figure out what caused the problem.
    Read this to diagnose it before resorting to reinstalling the OS:
    http://support.apple.com/kb/TS1440
    Excerpt:
    Additional steps
    If your Mac still starts to a flashing question mark, follow the steps below. If any step resolves the issue, you don't need to continue to the next one.
    Select your Mac OS X startup disk with Startup Manager by restarting and holding the Option key. After your Mac starts up, restart again to verify that the flashing question mark does not appear.
    If the issue persists, insert your Mac OS X installation disc. Be sure to either use the disc that came with your Mac, or, if you installed a later Mac OS X version from disc, use the newer disc.
    MacBook Air note: On a MacBook Air, there are two options for starting up from Mac OS X media: Either connect a MacBook Air SuperDrive to the MacBook Air via the USB port and restart the computer, holding down the C key during startup, or use Remote Install Mac OS X to startup from a system software DVD that's located on a partner computer. Once started up from Mac OS X media, skip to step 3.
    Restart the computer, then hold the C key during startup.
    From the Utilities menu, choose Disk Utility. Don't click Continue.
    Select your Mac OS X disk (named "Macintosh HD" by default) in the left side of the Disk Utility window.
    Click the First Aid tab.
    Click Repair Disk to verify and repair any issues with your Mac OS X startup disk.
    After repairing the disk, try to start up normally.
    Important: If Disk Utility finds issues it cannot repair, you may need to back up as much of your data as possible (or use Time Machine to back up to a different disk), then erase the disk and reinstall Mac OS X. You should back up important files and data before erasing a drive. Erasing deletes everything on the hard disk (including things on your desktop). Also, you can install Mac OS X onto an external disk, start from the external disk, and use Migration Assistant to transfer items from your usual internal Mac OS X startup disk to the external disk, then erase the internal disk and reinstall Mac OS X.
    If the issue persists, and Disk Utility didn't find any irreparable issues, quit Disk Utility, quit the Installer, select your disk when prompted, and restart.
    If the issue continues, reset PRAM. Note: After resetting PRAM, if the computer starts up normally, reselect the startup disk in the Startup Disk preferences.
    If none of these steps resolve the issue, start up from the Mac OS X Installation disc and reinstall Mac OS X.

  • Help...popup menu problem

    problem with popup menu
    i've designed the poopmenu in firworks...imported the file
    into dreamweaver...but when mouse is over the menu the drop down
    menu goes behind the flash animation placed below it.....how to
    fix?????:

    All Active content on a page will always rise to the top, so
    to speak,
    including Flash, certain form elements, Java applets, and
    Active X controls.
    This means that each of these will poke through layers. There
    is not a good
    cross-browser/platform reliable way to solve this issue, but
    if you can be
    confident in your visitors using IE 5+ or NN6+, then you can
    use the Flash
    wmode parameter (however, Safari does not support this
    properly!).
    Adobe articles:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15523
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14201
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Mister Mustard" <[email protected]> wrote in message
    news:[email protected]..
    > On Fri, 7 Sep 2007 10:32:03 +0000 (UTC),
    "Krutika.deshpande"
    > <[email protected]> wrote:
    >
    >>problem with popup menu
    >> i've designed the poopmenu in firworks...imported
    the file into
    >>dreamweaver...but when mouse is over the menu the
    drop down menu goes
    >>behind
    >>the flash animation placed below it.....how to
    fix?????:
    >
    > There is at least one method that allows content to rise
    above Flash,
    > but I've never used it. You might check the Flash group
    or Google.

  • Custom popup menu + graphic ring

    Hi,
    I have two questions.
    1) Could anyone give me an example how to create my own popup menu by
    clicking the right mouse button over an item.
    2) Does anybody know how to disable the border an the background of a
    graphic ring item. I what to display different transparent gifs and now
    the border is very disturbing and there should also bo no visible
    background(-color).
    thanxs,
    Max

    1. An article on this was in LTR some time ago, check it out at:
    http://ltrpub.com/insideltr/articles/article_27/article_27.htm
    There has been some discussions and examples of it here as well though, check out the last entry (I think there are others here too, just search for contextual menu or po-up menu):
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000084640000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_TIER_0=0&USEARCHCONTEXT_TIER_S=0&USEARCHCONTEXT_QUESTION_0=contextual+menu&USEARCHCONTEXT_QUESTION_S=0
    2. Color the border and background transparent. Just choosing background color and foreground color to be transparent and then using the paint tool does not work though, instead - hold the paint too
    l over the border, right click to get the color palette, move the cursor above the T (transparent) then press F...and then B, now the border should become transparent. Paint the background transparent...After doing everything transparent this way - import the pictures into it.
    MTO

  • Problem with Pre-Popup-Menu in Hierarchical Tree

    Hi,
    In Forms 10g I have made an application with an Hierarchical Tree. All works well, except the use of the Pre-Popup-Menu trigger.
    In that trigger when I read the values of Node_Label and Node_Value I get the values of the previous selected node, not the values of the node on which I issue the right mouse click. So, it seems that by clicking the node I need is not selected.
    Does anyone have any clues to solve this problem?
    Thanks in advance.

    Right clicking does not change the current selection. The tree has no way to report what node was right clicked. Only work around is to left click the node you wish then right click it.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Getting error while uploading data  using the EXCEL( GUI_upload)

    Dear Freinds, I am uploading data from my excel sheet to my Custom table . I am using the below code call function 'GUI_UPLOAD' exporting filename = l_fn filetype = 'BIN' "'ASC' has_field_separator = 'X' tables data_tab = p_i_ins_db exceptions others

  • Custom URL links in PDF don't work.

    I have registered custom xyz: protocol handler in Windows. Creating a hyperlink in MS Word and clicking it works OK – my handler app gets invoked. Saving Word document as PDF used to work (somewhat – by passing URL to the default browser). Recently i

  • Cant rapidly reload all tabs.

    In an online game I play, the ablilty to reload several pages rapidly is key. To achive this we would go into offline mode, click the attack button on 4 pages, go online, hit reload all tabs then hold enter on the "To display this page, Firefox must

  • Leopard's iSync & Nokia N73

    Hi, I used Leopard's (10.5.1) iSync flawlessly with my Nokia N73. But, when I upgraded N73's firmware to the 4.0735.3.0.2 version, iSync can't connect with N73. I've tried to delete and recreate the pair between my MacBook Pro and the Nokia and it ca

  • ! in front of song title

    When I bring up my iTunes, some of the song titles have a ! in front of them and I have NO IDEA why and I cannot find anything on line to tell me what it means. It is in the first colum before the check box and name