Problems with mm_menu.js (drop-down menu)

I've made a couple of sites with mm_menu.js (drop-down menu) made by Dreamweaver. It works fine in Firefox, Google Chrome. It worked fine in Internet Explorer up to version 9. In version 10 the mm_menu.js doesn't show at all, and in version 11 it does
show up, but places itself in the upper left corner of the browser. Can anyone explain why this is so? Is there any fix one can put in the code to make the drop-down menu look correct?

This is the TechNet Forum for Questions regarding Internet Explorer 8, 9, 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions.
For better assistance please ask for help in the MSDN IE Development Forums.
Thanks & Regards,
Vincenzo Di Russo
Microsoft® MVP Windows Internet Explorer, Windows & Security Expert - since 2003.
Moderator in the Microsoft Community and TechNet Forums
My MVP Profile

Similar Messages

  • Problem with checkbox and drop down menu

    I am using DW8 with PHP/MySQL.
    I made a insertion form and a couple of the fields are
    checkboxes and another is a drop down menu. Everything works fine,
    however, when I create an update form and the recordset calls the
    data it doesn't retain its values on those items.
    For example, if I checked a box when inserting the record and
    then call the data up for the update form, the box is not checked,
    making the user believe it was never checked in the first place.
    The same thing goes for the drop down menu. If I have 3
    options in the menu and someone selects the third one, when the
    update form is used it defaults to the first option automatically
    instead of actually calling up the original value selected.

    The fact that two scripts do not work together does not mean
    there is a bug in the RH script. It is simply that they were not
    designed by their respective developers to work together. This
    happens with multiple scripts in any html file.
    Try creating a new project and then importing just this topic
    into it. Does it still have the problem?

  • Problems with flash transparent drop down menu over html in some browsers

    Hi everyone... this is my first post and it's about an issue
    that's causing me a few problems.
    I'm currently designing/ building my company's web site, the
    test page be viewed here: www.musflashtv.com/test.htm
    1) This layout contains an embeded flash movie (.swf) with a
    transparent background, this is the main navigation.
    The flash navigation has a drop down menu that animates down
    and covers the html page (containing links) below.
    The problem is that in most current browsers such as; Firefox
    2.0.05 (links below template don't work), Netscape 8.1.3
    (navigation drop down and links don't work) and Opera 9.10 (links
    below template don't work), any links just below the 'invisible'
    transparent area coverd by the navigation can't be clicked 'through
    the flash file'. The exception is IE 7.0, everything is fine there.
    (it hasn't been tested in any mac browsers though).
    Because the area below the navigation on
    www.kitachi.info/work is one large dummy jpeg file, the link below
    would be a much better example to look at.
    http://www.musflashtv.com/shows/ind...tlight-Sessions
    The flash navigation is embedded in the html (tlp) template
    file using the code below and aligned using an external style
    (.css) sheet, this html code not only embeds the flash movie but it
    also tells the browser to display it's background and as
    transparent. The flash movie is embedded in a layer that sits above
    the table.
    3) The flash embed code:
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    name="shows-navigation-tranparent" width="851" height="300"
    align="top" class="flash-navigation"
    id="shows-navigation-tranparent">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie"
    value="flash/navigation-tranparent.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <param name="bgcolor" value="#000000" />
    <param name="SCALE" value="exactfit" />
    <embed src="flash/navigation-tranparent.swf" width="851"
    height="300" align="top" quality="high" wmode="transparent"
    bgcolor="#000000" name="navigation-tranparent"
    allowscriptaccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    scale="exactfit" />
    </object>
    Does anybody know of any code that can solve this problem or
    know a different way of creating a flash navigation with a drop
    menu that can be embeded over html?
    Any help or advice would be greatly appreciated especially as
    this issue is holding back progress in a big way.
    Thanks in advance guys!
    Adie

    It's IE-only behaviour as a result of changes Microsoft made
    last
    year to their browser, regarding how Active Content (Flash,
    Quicktime etc)
    is handled, after losing a high profile court case.
    http://blog.deconcept.com/2005/12/15/internet-explorer-eolas-changes-and-the-flash-plugin/
    Background:
    http://en.wikipedia.org/wiki/Eolas
    See also
    http://www.adobe.com/devnet/activecontent/
    If you're running Dreamweaver 8.0.2, the fix is already built
    into DW's
    interface.
    If not, try
    http://blog.deconcept.com/swfobject/
    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
    ==================
    "swizzle_16" <[email protected]> wrote in
    message
    news:eqr0ib$48r$[email protected]..
    > Help please, I've put together a website using a drop
    down menu system
    > that
    > needs to drop down over a flash animation - I've managed
    to get the drop
    > downs
    > to go in front of the animation using the transparent
    tag - but each
    > option has
    > to be clicked on twice to get the link to work.
    >
    > Does anyone know how I can change it so the link needs
    to be only clicked
    > once?
    > The drop down menu system I've used is : * AnyLink Drop
    Down Menu- ©
    > Dynamic
    > Drive (www.dynamicdrive.com)
    >

  • I can't seem to open additional tabs with the +, the drop down menu, or Command T? Is this a bug, or am I missing something?

    Hello,
    I can't seem to open additional tabs with the +, the drop down menu, or Command T? Is this a bug, or am I missing something?
    I'm running Firefox 30.0 in OS 10.8.5 on a Mac Book Pro with the 2.7 GHz Intel Core i7 and 8GB 1333 MHz DDR3 memory.
    Thanks in advance,
    Pat

    BOOM! You have hit the nail on the head, sir!
    I disabled my Vuze Remote Community Toolbar and the problem was fixed.
    Thank you, the-edmeister!!!!

  • Problems with Second level drop downs

    Hi, I'm having problems with the second level of my drop down
    menu. It's showing up when you hit the first level. Any ideas what
    I'm doing wrong?
    http://www.graphicvisionsinc.com/test/

    Solved it!
    For info, updating from FCS 1.1 to FCS 1.1.1 solved this problem!

  • Problem with Signature tab drop down in Outlook for Mac 2011

    I am setting up Outlook 2011 on my mac and have run across a problem with the signatures that I have been unable to resolve.
    I have set up 2 signatures for my two different pop accounts and thought that if I defaulted them to their appropriate account they would automatically be seen in email when I had chosen the corresponding email account. I then discovered that it was not
    possible to do this in Outlook 2011 for Mac.
    So I selected NONE as the defaults for my two signatures, and thought I would be able to manually add the appropriate signature to each email as I compose or reply.  BUT NO!!!! THE PROBLEM LIES BELOW:
    The 2 signatures that I set up are visible in the drop down menu from the signature tab in an email, however they are greyed out and cannot be selected.  I have attempted selecting one of these signatures as the default, and whichever one
    I select dutifully appears when I compose a new email, but when I click on the drop down to change the signature, both are still greyed out.
    So effectively, I only have the option of one signature or none, despite being able to set up multiple signatures in my profile.
    Does anyone know why this is occurring and what the solution is?
    Thanking you in advance.

    Hi,
    Please remove the Signature and re-add it back to check whether the issue persists. We can follow the articles below to create signature in Outlook 2011 for Mac:
    How to create signature or customize it (add picture) in Outlook for Mac 2011
    http://support2.microsoft.com/kb/2455171/en-us
    Add a signature automatically to every message
    http://office.microsoft.com/en-001/mac-outlook-help/add-a-signature-automatically-to-every-message-HA102928243.aspx
    If the new created Signature is still greyed out in your Outlook, please restart the Outlook client in safe mode to confirm if the issue is caused by any third-party add-ins.
    If the issue persists in Outlook safe mode, I suggest you ask a question in Outlook for Mac forum for further troubleshooting:
    http://answers.microsoft.com/en-us/mac/forum/macoutlook?tab=Threads
    Regards,
    Winnie Liang
    TechNet Community Support

  • Presence problem when using a drop-down menu

    I am trying to show/hide a table when a choice is made from a drop-down menu. It doesn't work until I make the same choice twice, then I get the expected result. The script is under Change and I have used it before successfully, albeit it has typically been using a check box. Is there an easy fix hopefully for this problem? Code below:
    if 
    (this.rawValue == 2){
    form1.Page1.OrderSection.OrderItems.Blower.presence
    = "visible";}
    else
    form1.Page1.OrderSection.OrderItems.Blower.presence
    = "hidden";}
    Thanks

    Drop-down lists work a little differently than expected; in the Change event the rawValue contains the previously selected text.  That's why it works the second time.  The current selection is contained in: xfa.event.newText

  • Can't Block Person in iChat, with task bar drop down menu in Buddies.

    Hello : )
    I was wondering if anyone knows how i can use my "Block Person", on iChat (task bar with drop down menu in Buddies). I am pretty sure this worked has worked before , the command is there it just seems to stay greyed out. I know it can be done in the Security tab / ichat preferences, I would like it to work under the Buddies drop down as well. I know it did before, my HD was replaced. Help would be most appreciated.
    Thank you for your time.
    Eme;~[)

    Hi Eme,
    Ok. iChat 3 has a setting that needs to be set if you are going to use the same screen name on two copmuters or on two apps on the same computer.
    Go to iChat > Preferences > Accounts
    Select the AIM account in question in the left hand column
    Select the Account Info tab.
    Log out of AIM (iChat menu)
    Check the check box "Allow Multiple Logins for This Account"
    Log back into AIM.
    If this is not checked starting iChat 3 will boot off (log out) any other AIM Client using the same screen name whether it is on the same computer or not
    From what the ISP says and what you have posted here it seems the modem is in Bridge mode.
    I take it if you open System Preferences > Network > Select Airport from the second drop down > TCP/IP tab you IP is shown as 10.0.1.2 ?
    And the drop down just above that says "USING DHCP" ?
    This would mean the Airport is in default mode and Issuing Addresses.
    Also by default an Airport would do NAT. (Network Address Translation)
    This measn the Airport sorts out where each bit of data has to go.
    It is different from other routers as you don't have the specify which ports are going to whch ports on one IP (Port Forwarding)
    Which Netopia device is it ?
    3347 ?
    If it is this one you may need to look at the QoS settings.
    These are setings that are supposed to protct you form reciveing data too quickly. (helpful if you are running a busy web site but restrictive sometimes for iChat).
    As you are omly talking about sorting out Block lists it is prpobably the multiple login option that needs doing.
    5:40 PM Wednesday; June 14, 2006

  • Help with jsp  and drop down menu

    hi, im tryin to put a drop down menu using javascript, is the example in the page:
    http://tutorials.alsacreations.com/deroulant/
    but creator detects a error:
    The content of elements must consist of well-formed character data or markup.
    int creator and when i deply the proyect, here is the code:
    <script type="text/javascript">
    <!--
    window.onload=show;
    function show(id) {
    var d = document.getElementById(id);
         for (var i = 1; i<=10; i++) {        -------------------------------------- Here is the error -----------------
              if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
    if (d) {d.style.display='block';}
    //-->
    </script>
    Can anybody tell me what im doing wrong?

    hi,
    Creator does not recognize (or whatever you say) characters like '<'. You can import js file which includes your script or change these characters for example put "<" instead of "<".
    regards...

  • Help with multi column drop down menu

    HI all,
    I am attaching an image from the ESPN web site, in the hopes that someone sheds some light on what is the name of the pull down menu that is shown there?
    and how you go about creating such menus, even larger (even as wide as the Navigation bar itslef)?
    thanks!

    Multi-Column Drop-Down Menus:
    Plug-in for jQuery -
    http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm
    CSS Play has another version -
    http://www.cssplay.co.uk/menus/multi-column.html
    DHTML - multicolumn menu: (30 day trial + purchase)
    http://dhtml-menu.com/menu/dhtml-pulldown-menu-multicolumn-sample.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Problem with populating dynamic drop down

    I am hoping someone can help.
    I have a process that is retrieving a series of codes from a table. It generates an XML which I have bound to a text field on the form. For testing, the field is visible and I can see the XML when I run it.
    However the code that I am using to populate the drop down is not working.
    I'm ot sure if I have done somethin wrong in the process or in the form.
    The XML in the field looks like:
    <?xml version="1.0"?>
    <xdp>
         <datasets>
              <data>
                   <form>
                        <Page1>
                             <type>
                                  <assignedOther>
                                       <code>
                                            <CD type="CHAR">ES</CD>
                                       </code>
                                       <code>
                                            <CD type="CHAR">EX</CD>
                                       </code>
                                       <code>
                                            <CD type="CHAR">NF</CD>
                                       </code>
                                  </assignedOther>
                             </type>
                        </Page1>
                   </form>
              </data>
         </datasets>
    </xdp>
    In the JavaScript of the form I have:
    var parsedOther = new Array();
    var taxtypeXML = XMLData.parse(form.Page1.type.assignedOther.rawValue, false);
    var otherList = XMLData.applyXPath(taxtypeXML, "//code[*]/CD");
    if (otherList.length){
         for (var i = 0; i < otherList.length; i++){
              parsedOther.push(otherList.item(i).value);
    }else{
         if (otherList.value){
              parsedOther.push(otherList.value);
    parsedOther.sort();
    otherExpl.setItems(parsedOther.toString());
    assignedOther if the text field that has the XML and otherExpl if the drop down fiend.

    Thanks.
    That worked beautifly.

  • JCombobox with JMenuBar (as drop down menu)

    Hello, i'm trying to make a new component (as generic as possible) to display a tree structure in a combo-like style.
    So i finally choose a JTextfield to display the current item + a JMenuBar with Menu and MenuItem generated from a TreeModel (i'm not sure this is the better choice to make, but tha's not my present problem).
    2 questions :
    1) am I reinventing the wheel ???
    2) i've got a problem of pack when displaying the compent and i don't find where.
    Thanks. Cyril.
    So, the code... two main classes : TreeComboBox + ArrowMenu
    the TreeComboBox :
    package fr.emanation.util.gui.treeComboBox;
    import javax.swing.*;
    import javax.swing.tree.TreeModel;
    import java.awt.*;
    import java.awt.event.FocusListener;
    public class TreeComboBox<TNode> extends JPanel
      private TNode theSelectedNode;
      private ArrowMenuBar theMenuBar;
      private JTextField theTextField;
      private int theCompactWidth;
      public TreeComboBox(TreeModel aTreeModel)
        new BorderLayout(0, 0);
        theTextField = new JTextField();
        theTextField.setEditable(true);
        theTextField.setBackground(Color.white);
        setFocusable(false);
        add(theTextField, BorderLayout.CENTER);
        MyArrowMenuInvoker anInvoker = new MyArrowMenuInvoker();
        theMenuBar = new ArrowMenuBar<TNode>(anInvoker, aTreeModel);
        JPanel menuBarPanel = new JPanel(new BorderLayout(0, 0));
        menuBarPanel.add(theMenuBar, BorderLayout.CENTER);
        add(menuBarPanel, BorderLayout.EAST);
      public TNode getNode()
        return (TNode) theSelectedNode;
      public void setSelectedNode(TNode aNode)
        theSelectedNode = aNode;
        theTextField.setText(aNode.toString());
      public TreeModel getModel()
        return theMenuBar.getModel();
      public JComponent[] getFocusableComponents()
        return new JComponent[]{theTextField, theMenuBar};
      //-- JComponent overriden methods
      public Dimension getMinimumSize()
        final Dimension minSize = super.getMinimumSize();
        minSize.width = theCompactWidth;
        return minSize;
      public void setCompactWidth(final int aCompactWidth)
        theCompactWidth = aCompactWidth;
      public void setPreferredSize(Dimension aSize)
        super.setPreferredSize(aSize);
        if (theTextField != null)
          theTextField.setPreferredSize(aSize);
      public void setForeground(Color fg)
        super.setForeground(fg);
        if (theMenuBar != null)
          for (int index = 0; index < theMenuBar.getComponentCount(); index++)
            theMenuBar.getComponents()[index].setForeground(fg);
        if (theTextField != null)
          theTextField.setForeground(fg);
      public void setBackground(Color bg)
        super.setBackground(bg);
        if (theMenuBar != null)
          for (int index = 0; index < theMenuBar.getComponentCount(); index++)
            theMenuBar.getComponents()[index].setBackground(bg);
        if (theTextField != null)
          theTextField.setBackground(bg);
      public void setFont(Font aFont)
        super.setFont(aFont);
        if (theMenuBar != null)
          theMenuBar.setFont(aFont);
        if (theTextField != null)
          theTextField.setFont(aFont);
      public void setToolTipText(String aToolTip)
        super.setToolTipText(aToolTip);
        if (theTextField != null)
          theTextField.setToolTipText(aToolTip);
      public void setEnabled(final boolean bEnabled)
        super.setEnabled(bEnabled);
        if (theTextField != null) return;
          theTextField.setEnabled(bEnabled);
          if (bEnabled)
            theTextField.setBackground(Color.WHITE);
          else
            JLabel tmpLabel = new JLabel();
            tmpLabel.setEnabled(false);
            theTextField.setBackground(tmpLabel.getBackground());
        if (theMenuBar != null)
          theMenuBar.setEnabled(bEnabled);
      public synchronized void addFocusListener(FocusListener l)
        super.addFocusListener(l);
        if (theMenuBar != null)
          theMenuBar.addFocusListener(l);
        if (theTextField != null)
          theTextField.addFocusListener(l);
      public synchronized void removeFocusListener(FocusListener l)
        super.removeFocusListener(l);
        if (theMenuBar != null)
          theMenuBar.removeFocusListener(l);
        if (theTextField != null)
          theTextField.removeFocusListener(l);
      public boolean isFocusOwner()
        if (theMenuBar == null || theTextField == null) return super.isFocusOwner();
        boolean bM = (theMenuBar == null) && theMenuBar.isFocusOwner();
        boolean bT = (theTextField == null) && theTextField.isFocusOwner();
        return (bM || bT);
      //-- inner classes
      private class MyArrowMenuInvoker implements IArrowMenuInvoker<TNode>
        public Component getComponent()
          return theTextField;
        public void setNode(TNode aNode)
          setSelectedNode(aNode);
    }the ArrowMenuBar :
    package fr.emanation.util.gui.treeComboBox;
    import javax.swing.*;
    import javax.swing.border.EtchedBorder;
    import javax.swing.plaf.UIResource;
    import javax.swing.tree.TreeModel;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    public class ArrowMenuBar<TNode> extends JMenuBar
      private NodeMenu theMenu;
      private TreeModel theModel;
      private IArrowMenuInvoker<TNode> theInvoker;
      public ArrowMenuBar(IArrowMenuInvoker<TNode> anInvoker, TreeModel aModel)
        super();
        theModel = aModel;
        theInvoker = anInvoker;
        TNode root = (TNode) theModel.getRoot();
        if (!theModel.isLeaf(root))
          theMenu = new ArrowMenu(root);
          theMenu.setBackground(new JPanel().getBackground());
        MenuItemListener listener = new MenuItemListener();
        setListener(theMenu, listener);
        add(theMenu);
      private void setListener(JMenuItem anItem, ActionListener aListener)
        if (anItem instanceof JMenu)
          JMenu menu = (JMenu) anItem;
          int n = menu.getItemCount();
          for (int index = 0; index < n; index++)
            setListener(menu.getItem(index), aListener);
        else if (anItem != null)
          // null means separator
          anItem.addActionListener(aListener);
      public TreeModel getModel()
        return theModel;
      public Action getLaunchArrowMenuBarAction()
        return new LaunchArrowMenuBarAction();
      //-- overrides JComponent
      public Dimension getPreferredSize()
        return theMenu.getPreferredSize();
      private Dimension getItemSize(JMenu aMenu)
        Dimension dimension = new Dimension(0, 0);
        int n = aMenu.getItemCount();
        for (int index = 0; index < n; index++)
          Dimension itemD;
          JMenuItem item = aMenu.getItem(index);
          if (item instanceof JMenu)
            itemD = getItemSize((JMenu) item);
          else if (item != null)
            itemD = item.getPreferredSize();
          else
            itemD = new Dimension(0, 0); // separator
          dimension.width = Math.max(dimension.width, itemD.width);
          dimension.height = Math.max(dimension.height, itemD.height);
        return dimension;
      //--- inner classes
      private class LaunchArrowMenuBarAction extends AbstractAction
        public LaunchArrowMenuBarAction()
          super("...");
        public void actionPerformed(ActionEvent e)
          if (e.getActionCommand() == "Launch")
            System.out.println("Launch");
      private class MenuItemListener implements ActionListener
        public void actionPerformed(ActionEvent anEvent)
          NodeMenuItem item = (NodeMenuItem) anEvent.getSource();
          theInvoker.setNode(item.getNode());
          theMenu.requestFocus();
      private class NodeMenu extends JMenu
        private TNode theNode;
        public NodeMenu(TNode aNode)
          this(aNode.toString(), aNode);
        public NodeMenu(String theText, TNode aNode)
          super(theText);
          theNode = aNode;
          add(new NodeMenuItem("[.]", aNode));
          for (int index = 0; index < theModel.getChildCount(aNode); index++)
            TNode childNode = (TNode) theModel.getChild(aNode, index);
            if (theModel.isLeaf(childNode))
              add(new NodeMenuItem(childNode));
            else
              add(new NodeMenu(childNode));
        public void setNode(TNode aNode)
          theNode = aNode;
        public TNode getNode()
          return theNode;
      private class NodeMenuItem extends JMenuItem
        private TNode theNode;
        public NodeMenuItem(TNode aNode)
          super(aNode.toString());
          theNode = aNode;
        public NodeMenuItem(String aText, TNode aNode)
          super(aText);
          theNode = aNode;
        public TNode getNode()
          return theNode;
      private class ArrowMenu extends NodeMenu
    //    private ArrowIcon theIconRenderer;
        private Color shadow = UIManager.getColor("controlShadow");
        private Color darkShadow = UIManager.getColor("controlDkShadow");
        private Color highlight = UIManager.getColor("controlLtHighlight");
        public ArrowMenu(TNode aNode)
          super("", aNode);
    //      theIconRenderer = new ArrowIcon(SwingConstants.SOUTH, true);
          setBorder(new EtchedBorder());
    //      setIcon(new BlankIcon(null, 11));
          setHorizontalTextPosition(JButton.LEFT);
          setFocusPainted(true);
        public void paint(Graphics g)
          Color origColor;
          boolean isEnabled;
          int w, h, size;
          w = getSize().width;
          h = getSize().height;
          origColor = g.getColor();
          isEnabled = isEnabled();
          g.setColor(getBackground());
          g.fillRect(1, 1, w - 2, h - 2);
          /// Draw the proper Border
          if (getBorder() != null && !(getBorder() instanceof UIResource))
            paintBorder(g);
          else
            // Using the background color set above
            g.drawLine(0, 0, 0, h - 1);
            g.drawLine(1, 0, w - 2, 0);
            g.setColor(highlight);  // inner 3D border
            g.drawLine(1, 1, 1, h - 3);
            g.drawLine(2, 1, w - 3, 1);
            g.setColor(shadow);     // inner 3D border
            g.drawLine(1, h - 2, w - 2, h - 2);
            g.drawLine(w - 2, 1, w - 2, h - 3);
            g.setColor(darkShadow);   // black drop shadow  __|
            g.drawLine(0, h - 1, w - 1, h - 1);
            g.drawLine(w - 1, h - 1, w - 1, 0);
          // If there's no room to draw arrow, bail
          if (h < 5 || w < 5)
            g.setColor(origColor);
            return;
          // Draw the arrow
          size = Math.min((h - 4) / 3, (w - 4) / 3);
          size = Math.max(size, 2);
          paintTriangle(g, (w - size) / 2, (h - size) / 2,
                  size, SwingConstants.SOUTH, isEnabled);
          // Reset the Graphics back to it's original settings
          g.setColor(origColor);
        public Dimension getPreferredSize()
          return new Dimension(16, 16);
        public Dimension getMinimumSize()
          return new Dimension(5, 5);
        public Dimension getMaximumSize()
          return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);
        public void paintTriangle(Graphics g, int x, int y, int size,
                      int direction, boolean isEnabled)
          Color oldColor = g.getColor();
          int mid, i, j;
          j = 0;
          size = Math.max(size, 2);
          mid = (size / 2) - 1;
          g.translate(x, y);
          if (isEnabled)
            g.setColor(darkShadow);
          else
            g.setColor(shadow);
          switch (direction)
            case NORTH:
              for (i = 0; i < size; i++)
                g.drawLine(mid - i, i, mid + i, i);
              if (!isEnabled)
                g.setColor(highlight);
                g.drawLine(mid - i + 2, i, mid + i, i);
              break;
            case SOUTH:
              if (!isEnabled)
                g.translate(1, 1);
                g.setColor(highlight);
                for (i = size - 1; i >= 0; i--)
                  g.drawLine(mid - i, j, mid + i, j);
                  j++;
                g.translate(-1, -1);
                g.setColor(shadow);
              j = 0;
              for (i = size - 1; i >= 0; i--)
                g.drawLine(mid - i, j, mid + i, j);
                j++;
              break;
            case WEST:
              for (i = 0; i < size; i++)
                g.drawLine(i, mid - i, i, mid + i);
              if (!isEnabled)
                g.setColor(highlight);
                g.drawLine(i, mid - i + 2, i, mid + i);
              break;
            case EAST:
              if (!isEnabled)
                g.translate(1, 1);
                g.setColor(highlight);
                for (i = size - 1; i >= 0; i--)
                  g.drawLine(j, mid - i, j, mid + i);
                  j++;
                g.translate(-1, -1);
                g.setColor(shadow);
              j = 0;
              for (i = size - 1; i >= 0; i--)
                g.drawLine(j, mid - i, j, mid + i);
                j++;
              break;
          g.translate(-x, -y);
          g.setColor(oldColor);
    }

    Darkness and blindness are away !
    First line of the constructor :
    public TreeComboBox(TreeModel aTreeModel)
        new BorderLayout(0, 0);
    }I will reborn as a pumpkin !

  • My iphone 5 running with latest os drop down menu does not work sometimes and i have to reset settings to get it back working..Anyone can tell me why?Your help will be highly appreciated.

    Help! Help! Help!

    The one which we slide our finger down from top. The one with weather info,stock info etc etc..

  • Creating a new drop down menu when an option in an existing one is chosen

    I’m using Coldfusion 9,0,0,251028 on Windows 7 64-bit, with a Microsoft Access 97 database. 
    I’m having a problem with using a drop-down menu to create another one below it once a certain option is selected
    (in this case, the option named “Breaking News”, which has an id of 31).
    What event trigger should I use to create a drop-down menu underneath the first one when “Breaking News” is selected? 
    Should I be using Javascript for something like this, or can Coldfusion handle it?
    Here’s the code:
    <cfquery name="get_info" datasource="#db#">
    select * from lists
    order by department asc, list asc
    </cfquery>
    <div align="left">
              <select name="list">
                     <option value="-1" selected> --------------------------------------  
                     <cfoutput query="get_info" group="department">
                            <cfoutput group="list">
                 <cfif list neq "Breaking News Cell Phone">
                         <option value="#id#">#list#
                 </cfif>
                            </cfoutput>
                  <option value="-1"> --------------------------------------
                     </cfoutput>
              </select>
    </div>

    Depending on the details, I might use ColdFusion to create the content of the second drop down.
    The second drop-down is supposed to be an expiration date that gets attached to the message so it can be self-removing.
    The first drop-down is to specify a category for a message to be sent out on.
    In this case, the only one that needs the secondary expiration drop-down is a single category (Breaking News),
    so all other options on the drop-down would have to not trigger the expiration date drop-down showing.
    In that situation, would you use ColdFusion to create the second drop down?

  • "undefined" appearing next to text in CSS Drop-Down menu, why?

    Hello everyone,
    I am having a problem with a CSS drop-down menu. The menu works fine, as you can see here:
    http://littlebuddymedia.com/help/011.html
    But the text "undefined" appears next to the main menu options. My question is, why?
    I have narrowed the problem down to this chunk of code:
    <div class="chromestyle" id="chromemenu">
    <ul>
    <li><a href="http://www.dynamicdrive.com">Home</a></li>
    <li><a href="#" rel="dropmenu1">Resources</a></li>
    <li><a href="#" rel="dropmenu2">News</a></li>
    <li><a href="#" rel="dropmenu3">Search</a></li>   
    </ul>
    </div>
    If you remove the rel="dropmenu1" portion of the code, the word "undefine" no longer appears, but then the menu doesnt drop-down anymore.
    Any ideas?
    If it is needed:
    Here is the CSS file: http://littlebuddymedia.com/help/chrometheme/chromestyle.css
    Here is the JS file:http://littlebuddymedia.com/help/chromejs/chrome.js
    Thank you.

    When I use FF to view the generated source, I see this -
    <li><a href="#" rel="dropmenu1">Resources undefined</a></li>
    <li><a href="#" rel="dropmenu2">News undefined</a></li>
    <li><a href="#" rel="dropmenu3">Search undefined</a></li>
    The undefined is coming from the javascript functions that you have loaded in that external file.  This function call is what starts it -
    <script type="text/javascript">
    cssdropdown.startchrome("chromemenu")
    </script>
    If you want 100% reliable drop menus that have been exhaustively tested in all common browsers/platforms, check the ones available from http://www.projectseven.com.

Maybe you are looking for

  • Why is itunes deleting songs from my iphone 4s?

    So, I've had this happen at least 5 times now Over the course of a month. I put about 20-30 gigs of music on my phone (WHICH TAKES A LOT OF TIME TO SELECT), its fine. Then, if I connect my phone to itunes anytime after that, I have nothing but "purch

  • Apple 20" vs the 23" hd display

    Hey im going to get a monitor and money really isnt a problem for me i just dont know if the 20 inch is a better bargain than the 23 inch since i hear all this commotion asout the 23", can someone please give me a good reason to buy one or the other

  • Directory (original) got created and I now want that information in the original desktop file - how do I do this?

    Bad migration up from Snow on a MacPro to Maverick on a Mini so am trying to revert back to Snow on my MacBook Pro.  Along the way, Maverick created a second file called Desktop (original) which I'm stuck with back in Snow on the MacBook Pro.  The re

  • Get error msg. "Configuration error"  AGP Graphics Card

    I recently purchased a MacBook Pro 17". I migrated my software from my old computer, but when I tried to open Final Cut Express HD, I got an error message saying Configuration Error "AGP Graphics Card." When I went to the support site, it indicated t

  • Importable file types

    What are the types of files that can be imported into final cut express hd? I have the footage from a couple of shoots on discs and can get them in a variety of formats... Curious as to which format would be best to import into final cut.