[JS CS3] Why do sub menus disappear?

Hello,
The below script creates a new menu with three sub menus. One of the sub menus invokes a script, while the other two are still under construction. This seems to work except for one irksome thing: When I close InDesign and then reopen it, the menu ("PPcheck") exists but the sub-menus are no longer under the menu. How do I make them permanent?
Thanks,
Tom
#targetengine session
var englishCheck = new File( "~/Library/Preferences/Adobe InDesign/Version 5.0/Scripts/Scripts Panel/Format/formatCheckWindow.jsx");
var englishCheckMenu = app.scriptMenuActions.add("Main-English");
englishCheckMenu.eventListeners.add("onInvoke", englishCheck, false);
var frenchCheckMenu = app.scriptMenuActions.add("Main-French");
frenchCheckMenu.eventListeners.add("onInvoke", underConstruct, false);
var spanishCheckMenu = app.scriptMenuActions.add("Main-Spanish");
spanishCheckMenu.eventListeners.add("onInvoke", underConstruct, false);
//following creates menu if it does not exist
try{
    var scriptMenu = app.menus.item("$ID/Main").submenus.item("PPcheck");
    scriptMenu.title;
catch (e){
    var scriptMenu = app.menus.item("$ID/Main").submenus.add("PPcheck");
//following adds sub menu items
scriptMenu.menuItems.add(englishCheckMenu);
scriptMenu.menuItems.add(frenchCheckMenu);
scriptMenu.menuItems.add(spanishCheckMenu);
//****functions******
function underConstruct(){
    alert("The French and Spanish semi-automatic checkers are still under construction.");

Hi Tom,
I'm not sure wheather it will work, but try two things:
1. put quotes on session so it states
#targetengine "session"
2. don't put "false" in eventListeners
it's just a guess, but maybe it works
regards, mileking

Similar Messages

  • Why do the menus disappear?

    I am quite new to Java and I use project builder on my mac running OSX. Anyway I found some sample code and I was wondering if anybody could help me out. Basically when the app is compiled it draws "Hello World" in the window and there are two menus in the menubar -> 'File' and 'Edit', but when you go to the about box the menus disappear until you either close the aboutbox or bring the focus back to the main window.
    How can I always keep the menus showing when there are multiple windows in the app. Remember that mac menus are fixed to the top of the screen...
    anyway heres the code:
    import java.awt.*;
    import java.awt.event.*;
    import com.apple.mrj.*;
    import javax.swing.*;
    public class test extends JFrame
                          implements  ActionListener,
                                      MRJAboutHandler,
                                      MRJQuitHandler
        static final String message = "Hello World!";
        private Font font = new Font("serif", Font.ITALIC+Font.BOLD, 36);
        protected AboutBox aboutBox;
        // Declarations for menus
        static final JMenuBar mainMenuBar = new JMenuBar();
        static final JMenu fileMenu = new JMenu("File");
        protected JMenuItem miNew;
        protected JMenuItem miOpen;
        protected JMenuItem miClose;
        protected JMenuItem miSave;
        protected JMenuItem miSaveAs;
        static final JMenu editMenu = new JMenu("Edit");
        protected JMenuItem miUndo;
        protected JMenuItem miCut;
        protected JMenuItem miCopy;
        protected JMenuItem miPaste;
        protected JMenuItem miClear;
        protected JMenuItem miSelectAll;
        public void addFileMenuItems() {
            miNew = new JMenuItem ("New");
            miNew.setAccelerator(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.Event.META_MASK));
            fileMenu.add(miNew).setEnabled(true);
            miNew.addActionListener(this);
            miOpen = new JMenuItem ("Open...");
            miOpen.setAccelerator(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.Event.META_MASK));
            fileMenu.add(miOpen).setEnabled(true);
            miOpen.addActionListener(this);
            miClose = new JMenuItem ("Close");
            miClose.setAccelerator(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.Event.META_MASK));
            fileMenu.add(miClose).setEnabled(true);
            miClose.addActionListener(this);
            miSave = new JMenuItem ("Save");
            miSave.setAccelerator(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.Event.META_MASK));
            fileMenu.add(miSave).setEnabled(true);
            miSave.addActionListener(this);
            miSaveAs = new JMenuItem ("Save As...");
            fileMenu.add(miSaveAs).setEnabled(true);
            miSaveAs.addActionListener(this);
            mainMenuBar.add(fileMenu);
        public void addEditMenuItems() {
            miUndo = new JMenuItem("Undo");
            miUndo.setAccelerator(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.Event.META_MASK));
            editMenu.add(miUndo).setEnabled(true);
            miUndo.addActionListener(this);
            editMenu.addSeparator();
            miCut = new JMenuItem("Cut");
            miCut.setAccelerator(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.Event.META_MASK));
            editMenu.add(miCut).setEnabled(true);
            miCut.addActionListener(this);
            miCopy = new JMenuItem("Copy");
            miCopy.setAccelerator(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.Event.META_MASK));
            editMenu.add(miCopy).setEnabled(true);
            miCopy.addActionListener(this);
            miPaste = new JMenuItem("Paste");
            miPaste.setAccelerator(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.Event.META_MASK));
            editMenu.add(miPaste).setEnabled(true);
            miPaste.addActionListener(this);
            miClear = new JMenuItem("Clear");
            editMenu.add(miClear).setEnabled(true);
            miClear.addActionListener(this);
            editMenu.addSeparator();
            miSelectAll = new JMenuItem("Select All");
            miSelectAll.setAccelerator(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.Event.META_MASK));
            editMenu.add(miSelectAll).setEnabled(true);
            miSelectAll.addActionListener(this);
            mainMenuBar.add(editMenu);
        public void addMenus() {
            addFileMenuItems();
            addEditMenuItems();
            setJMenuBar (mainMenuBar);
        public test() {
            super("test");
            this.getContentPane().setLayout(null);
            addMenus();
            aboutBox = new AboutBox();
            Toolkit.getDefaultToolkit();
            MRJApplicationUtils.registerAboutHandler(this);
            MRJApplicationUtils.registerQuitHandler(this);
            setVisible(true);
        public void paint(Graphics g) {
              super.paint(g);
            g.setColor(Color.blue);
            g.setFont (font);
            g.drawString(message, 40, 80);
        public void handleAbout() {
            aboutBox.setResizable(false);
            aboutBox.setVisible(true);
            aboutBox.show();
        public void handleQuit() {     
            System.exit(0);
        // ActionListener interface (for menus)
        public void actionPerformed(ActionEvent newEvent) {
            if (newEvent.getActionCommand().equals(miNew.getActionCommand())) doNew();
            else if (newEvent.getActionCommand().equals(miOpen.getActionCommand())) doOpen();
            else if (newEvent.getActionCommand().equals(miClose.getActionCommand())) doClose();
            else if (newEvent.getActionCommand().equals(miSave.getActionCommand())) doSave();
            else if (newEvent.getActionCommand().equals(miSaveAs.getActionCommand())) doSaveAs();
            else if (newEvent.getActionCommand().equals(miUndo.getActionCommand())) doUndo();
            else if (newEvent.getActionCommand().equals(miCut.getActionCommand())) doCut();
            else if (newEvent.getActionCommand().equals(miCopy.getActionCommand())) doCopy();
            else if (newEvent.getActionCommand().equals(miPaste.getActionCommand())) doPaste();
            else if (newEvent.getActionCommand().equals(miClear.getActionCommand())) doClear();
            else if (newEvent.getActionCommand().equals(miSelectAll.getActionCommand())) doSelectAll();
        public void doNew() {}
        public void doOpen() {}
        public void doClose() {}
        public void doSave() {}
        public void doSaveAs() {}
        public void doUndo() {}
        public void doCut() {}
        public void doCopy() {}
        public void doPaste() {}
        public void doClear() {}
        public void doSelectAll() {}
        public static void main(String args[]) {
            new test();
    }������������������������������������������
    and the coe of the aboutbox
    ������������������������������������������
    //     File:     AboutBox.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class AboutBox extends JFrame
                          implements ActionListener
        protected JButton okButton;
        protected JLabel aboutText;
        public AboutBox() {
         super();
            this.getContentPane().setLayout(new BorderLayout(15, 15));
            this.setFont(new Font ("SansSerif", Font.BOLD, 14));
            aboutText = new JLabel ("About test");
            JPanel textPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 15, 15));
            textPanel.add(aboutText);
            this.getContentPane().add (textPanel, BorderLayout.NORTH);
            okButton = new JButton("OK");
            JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 15, 15));
            buttonPanel.add (okButton);
            okButton.addActionListener(this);
            this.getContentPane().add(buttonPanel, BorderLayout.SOUTH);
            this.pack();
        public void actionPerformed(ActionEvent newEvent) {
            setVisible(false);
    }thanks

    please anyone wanna help me?

  • Why are my menus disappearing after 3 seconds?

    I upgraded from 10.6.8 to 10.9.1 a few days back. Today my menus started behaving strangely. When I mouse-down on a menu (system or application) the menu closes by itself after about 3 second. It's making it nearly impossible to go into submenus because they lose before I can find where I am going.
    In addition, after about every 50-75 characters, my keyboard is refusing to type  character and giving me a beep. I don't know if this is related. I have to backspace and the keep typing.
    Any ideas on what can be going on?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • "Sub Menus" Disappear and I can't change settings

    Hi Everyone,
    I am having a frusterating problem...and it is happening all over Illustrator.
    If you look at the attached image below, you can see that the gradient window is open, and I have click on the "gradient colors", to select what my gradient color will be.
    But about 1 second later, the colors selector just closes.  Not because I click on something else, or because I have chosen a color...it just closes.
    The same thing happens when I am using the "recolor" or "live color" menu (see below).  I try to choose a new palate from the drop down menu, and the same thing happens....it just closes after 1 second or so, even if I don't click anything.
    Any suggestions?  What do you think could be wrong?
    Thanks,
    Evan

    Hi there,
    That preference was already unchecked.
    I'll try to be as precise as I can with my words.
    Look at the attached pictures in my first post.  The gradient window works fine.  It stays up forever.  But if I click on one of the color sliders, so I can select a new color, then the mini-menu that lets you click on what color you want closes immediately.  As soon as I click it, it just closes, maybe in 1/2 sec or a little less.
    The gradient window is fine...but choosing a color doesn't work well...the color mini-menu closes.
    Is that what you thought I was saying originally?
    ~Evan

  • Aperture menus disappear!

    Following an upgrade to Leopard and 1.5.6, Aperture's entire menu bar has disappeared! I'm referring to the menus at the top of the screen: *+File, Edit,+* etc. Of course this renders Aperture dead right now - which is causing me some concern on a critical application for me such as this.
    I've tried most things so far, including moving the app to another Space which is already occupied with open applications. But as soon as Aperture is selected all the menus disappear. The Apple icon (top left) remains but does not respond to clicking.
    Anyone else? Help?
    Is there an Aperture feedback link I can write to them through?

    Clem:
    What does ProKit tell us under Frameworks? Why did you refer to that specifically?
    Incidentally, my ProKit version is 4.1 also ( +dated Oct 27, the date of the install+ )
    I'm now wondering if I create a new user and upgrade it to admin status ( +checking first that Aperture works correctly+ ), then delete my previous admin account, whether I'll get any joy? Has anyone tried that out - other than with the 'guest' account method?
    Basically, I have a deadline looming and no application to work with.
    I'm beginning to think I was unwise to trust this version would be smooth at all - particularly near any deadline - and should revert to Tiger on my second internal drive and forget about Leopard until it's good enough for general use.
    Apple engineers come on these sites can they offer any help?
    Addendum:
    Could this error be part of the problem? :
    +Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired.+
    I get it when +repair disk permissions+ is run. Needless to say, I don't go tinkering around in the system folder.

  • Sub-menus not showing??

    I have this main menu...
    eg.
    File | Edit | Transactions | Help
    these have their own submenus. i have put in all the submenu
    items also.
    eg. <File> has Name, Age, Address
    however they dont show up when i run the form. only the main
    menu shows.
    but clicking on the individual menu items doesnt drop and menu
    or show the sub-menu.
    i dont know why?

    my sub menus arent poping up or are not showing
    does any1 know why?
    the main menu shows...but the sub-menus dont. Dec 11, 2001 01:48 PT
    how to make the Sub-Menu's show up. I have this Menu made...and
    even done the option of submenu enabled if that 1 specific menu
    item is selected ...yet when i run the form...
    the main menu shows up, but the sub-menus for that menu-item
    doesnt turn up.
    also one menu called 'window' comes which i havent made, i guess
    it auto-generates/shows.
    this one works..and its submenus are seen.

  • Cannot click on Sub menus at this site

    I am unable to click on the sub topics on this web page. As an example, when I click on SPORTS the sub Topic menus appear....so you can select which sport team you want to review their articles, but as soon as you drop the Mouse Pointer to select a sub Topic...all the sub Topics disappear.
    http://tbo.com/apps/pbcs.dll/frontpage
    I tried this site using Explorer and this issue is not present, I can click on the Sub Topics, they do not diappear.

    Hello <!-- XXX you may wish to edit this greeting, and other parts of the response so that it is personalised to the question asked.--> ,
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    More information about reinstalling Firefox can be found [[Troubleshoot and diagnose Firefox problems#w_5-reinstall-firefox|here]].
    <b>WARNING:</b>Do not use a third party uninstaller as part of this process. Doing so could permanently delete your [[Profiles|Firefox profile]] data, including but not limited to, extensions, cache, cookies, bookmarks, personal settings and saved passwords. <u>These cannot be easily recovered unless they have been backed up to an external device!</u> See [[Back up and restore information in Firefox profiles]]. <!-- Starting in Firefox 31, the Firefox uninstaller no longer lets you remove user profile data.Ref: Bug 432017 and https://support.mozilla.org/kb/uninstall-firefox-from-your-computer/discuss/5279 [Fx31] Windows uninstaller will no longer offer the option to remove personal data -->
    Please report back to say if this helped you!
    Thank you.

  • Trouble with sub-menus gap-osis

    Can't figure out why I keep getting this rather large gap between the main menu and subsequent sub-menus...
    Any ideas???
    It does not appear from within Muse in design or preview, but shows up in Chrome34, FF, and IE9

    lol... I know. It is intermittent, and frustrating.
    I have viewed in Chrome (35.x) and IE (9+). It does not appear in Muse during preview, nor in Chrome on iPhone.
    Currently IE seems to be displaying correctly (not always, though)
    Chrome does seem to be the biggest culprit.
    Here is how these two sites look in my Chrome...
    I've tried clearing the cache too, and that does not affect it.
    Also, of note, is that the AMOUNT of gap changes as well. Sometimes it's a small gap (about one sub-menu item height), and other times it's much larger (1-1/2X to 2X sub-menu item height, as it now shows in the examples above).

  • Do swing components work in sub-menus of popup menus??

    I want to have a JSlider as a component of a sub-menu of a pop-up menu. it shows up but acts very strangely. If I grab the slider handle and drag, nothing happens. If I click to one side of the handle, the slider makes single steps repeatedly until it catches up with the position i click on.
    On the other hand, if I add a JSlider to a top-level pop-up menu, it works just fine.
    are swing components supposed to work in sub-menus of popup menus??
    i'm running java 1.5 on Windows XP.
    Thanks, - Conal

    The music store is part of iTunes. That is why they are together on the menu. As many topics would offer the same advice for music in your library or music in the store, grouping them together makes sense in terms of reducing redundant entries.
    Sorry you found it confusing. I, too, once found some things Apple a bit different. That was about two years ago when I bought my iBook. StarDeb is another recent switcher. And I feel confident in saying this: either of us would be more than happy to help you with anything that gets "lost in translation". We both know there is a learning curve when you move from the XP world to a more fruit-based view of things

  • Adding sub-menus wrecks main menu bar display

    I have just learned to create a Spry horizontal pull-down menu. I have dark gradient images for both the 'up' and 'down' states, and I've set my text attributes and everything works fine.
    (I'm new, but trying hard.)
    HOWEVER - I have 2 problems:
    as soon as I add in sub-menus to a menu item, the gradient images fail to show on the main menu for that menu item only. I just get a white block, out of which you obviously can no longer read the white text. The gradients and other attributes immediately apply beautifully to the sub-menu items (even though I haven't even applied any attributes to them yet!), but they are lost from the main menu bar wherever I apply sub-menus.
    ALSO - although the 'up' state gradient image works fine behind the menu item, the downstate does not show when I hover my mouse over it. I've checked that the 'up' and 'down' files are not identical, and I've ensured that they are both applied in the CSS.
    When I remove the sub-menus - works fine. Add 'em back in, problem recurs. Applies to whichever menu item I apply the submenus to.
    I have downloaded the latest version of Spry (no idea which version I already had) but can't see where to install it or how to run setup. Why are things never easy...?
    I am using Dreameaver CS4 v10 and Chrome browser. Same thing happens in Firefox, IE and Safari - no difference.
    Please forgive my newness. I have had a look at other similar forum posts but although people seemed to have linked issues, they were not the same.
    Anyone any ideas? I am getting desperate. Been trying to fix it by myself all day.
    Thanks
    Nicola

    Nicola,
    The Fact: It's all in the markup and the CSS.
    The Problem:  We are not privy to your markup and CSS and as such cannot help you.
    The Solution: Supply a link to your site, or at the very least, copy and paste your code here
    Gramps

  • [SOLVED][Openbox] Sub-menus do not appear

    Just switched over to Openbox and was configuring my Menu. The only thing that doesn't want to work are my sub-menus. Using obmenu, I created a link inside an existing menu, with the proper ID of the menu I wanted to be a sub-menu. Saved menu.xml, reconfigured (and even tried restarting) Openbox, but no joy, everything shows but the sub-menus.
    I have 3 sub-menus: apps-office-libreoffice (linked in apps-office-menu), apps-development-qt (linked in apps-development-menu), and apps-games-doom (linked in apps-games-menu)
    I'm pretty confused as to why they wont show up, and google'ing around turned up absolutely no results, so I was hoping someone here could lend a hand. Here's my menu.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <openbox_menu xmlns="http://openbox.org/3.4/menu">
    <menu id="apps-accessories-menu" label="Accessories">
    <item icon="speedcrunch.png" label="SpeedCrunch">
    <action name="Execute">
    <command>speedcrunch</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Character Map">
    <action name="Execute">
    <command>gucharmap</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Thunar - Bulk Rename">
    <action name="Execute">
    <execute>/usr/lib/ThunarBulkRename</execute>
    </action>
    </item>
    <item label="PeaZip Archive Manger">
    <action name="Execute">
    <command>ark</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Xfce Notes">
    <action name="Execute">
    <execute>xfce-notes</execute>
    </action>
    </item>
    </menu>
    <menu id="apps-development-menu" label="Development">
    <item label="GVim">
    <action name="Execute">
    <command>gvim</command>
    <startupnotify>
    <enabled>yes</enabled>
    <wmclass>GVim</wmclass>
    </startupnotify>
    </action>
    </item>
    <separator/>
    <item label="CMake">
    <action name="Execute">
    <execute>cmake-gui</execute>
    </action>
    </item>
    <item label="Meld">
    <action name="Execute">
    <execute>meld</execute>
    </action>
    </item>
    <item label="Kodos">
    <action name="Execute">
    <execute>kodos</execute>
    </action>
    </item>
    <menu id="apps-development-qt"/>
    </menu>
    <menu id="app-games-menu" label="Games">
    <item label="Battle for Wesnoth">
    <action name="Execute">
    <execute>wesnoth</execute>
    </action>
    </item>
    <menu id="apps-games-doom"/>
    <item label="Dwarf Fortress">
    <action name="Execute">
    <execute>dwarffortress</execute>
    </action>
    </item>
    <item label="Minecraft">
    <action name="Execute">
    <execute>minecraft</execute>
    </action>
    </item>
    <item label="Minetest">
    <action name="Execute">
    <execute>minetest</execute>
    </action>
    </item>
    <item label="OpenArena">
    <action name="Execute">
    <execute>openarena</execute>
    </action>
    </item>
    <item label="Skyrim">
    <action name="Execute">
    <execute>wine /games/Skyrim/skse_loader.exe</execute>
    </action>
    </item>
    </menu>
    <menu id="apps-term-menu" label="Terminals">
    <item label="Rxvt Unicode">
    <action name="Execute">
    <command>urxvt</command>
    </action>
    </item>
    <item label="Xfce Terminal">
    <action name="Execute">
    <command>xfce4-terminal</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="TMux">
    <action name="Execute">
    <execute>tmux</execute>
    </action>
    </item>
    </menu>
    <menu id="apps-office-menu" label="Office">
    <menu id="apps-office-libreoffice"/>
    <separator/>
    <item label="Dictionary">
    <action name="Execute">
    <execute>xfce4-dict</execute>
    </action>
    </item>
    <item label="Foxit Reader">
    <action name="Execute">
    <execute>foxitreader</execute>
    </action>
    </item>
    <item label="GNU Cash">
    <action name="Execute">
    <execute>gnucash</execute>
    </action>
    </item>
    <item label="Task Coach">
    <action name="Execute">
    <execute>taskcoach.py</execute>
    </action>
    </item>
    </menu>
    <menu id="apps-net-menu" label="Internet">
    <item label="Firefox">
    <action name="Execute">
    <command>firefox</command>
    <startupnotify>
    <enabled>yes</enabled>
    <wmclass>Firefox</wmclass>
    </startupnotify>
    </action>
    </item>
    <item label="Thunderbird">
    <action name="Execute">
    <execute>thunderbird</execute>
    </action>
    </item>
    <item label="Pidgin">
    <action name="Execute">
    <command>pidgin</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="qBittorrent">
    <action name="Execute">
    <execute>qbittorrent</execute>
    </action>
    </item>
    <separator/>
    <item label="Dropbox">
    <action name="Execute">
    <execute>/opt/dropbox/dropboxd</execute>
    </action>
    </item>
    <item label="Mumble">
    <action name="Execute">
    <execute>mumble</execute>
    </action>
    </item>
    <item label="SpiderOak">
    <action name="Execute">
    <execute>SpiderOak</execute>
    </action>
    </item>
    <item label="Teamspeak">
    <action name="Execute">
    <execute>teamspeak3</execute>
    </action>
    </item>
    <item label="Teamviewer">
    <action name="Execute">
    <execute>/opt/teamviewer/teamviewer/7/bin/teamviewer</execute>
    </action>
    </item>
    </menu>
    <menu id="apps-multimedia-menu" label="Multimedia">
    <item label="Amarok">
    <action name="Execute">
    <command>amarok</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="Audacity">
    <action name="Execute">
    <execute>audacity</execute>
    </action>
    </item>
    <item label="VLC Media Player">
    <action name="Execute">
    <execute>vlc</execute>
    </action>
    </item>
    </menu>
    <menu id="apps-fileman-menu" label="File Managers">
    <item label="Thunar">
    <action name="Execute">
    <command>Thunar</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    </menu>
    <menu id="apps-graphics-menu" label="Graphics">
    <item label="Gimp">
    <action name="Execute">
    <command>gimp</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    </menu>
    <menu id="system-menu" label="System">
    <item label="Openbox Menu Editor">
    <action name="Execute">
    <execute>obmenu</execute>
    </action>
    </item>
    <item label="Openbox Configuration Manager">
    <action name="Execute">
    <command>obconf</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <item label="tint2 Configuration">
    <action name="Execute">
    <execute>tint2conf</execute>
    </action>
    </item>
    <item label="Xfce Settings">
    <action name="Execute">
    <command>xfce-setting-show</command>
    <startupnotify>
    <enabled>yes</enabled>
    </startupnotify>
    </action>
    </item>
    <separator/>
    <item label="Reconfigure Openbox">
    <action name="Reconfigure"/>
    </item>
    </menu>
    <menu id="apps-wine-menu" label="Wine">
    <item label="Wine Configuration (Q4Wine)">
    <action name="Execute">
    <execute>q4wine -b</execute>
    </action>
    </item>
    <item label="WineCFG">
    <action name="Execute">
    <execute>winecfg</execute>
    </action>
    </item>
    <item label="WineTricks">
    <action name="Execute">
    <execute>winetricks</execute>
    </action>
    </item>
    <separator/>
    <item label="Steam">
    <action name="Execute">
    <execute>wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe -no-dwrite &gt;/dev/null 2&gt;&amp;1 &amp;</execute>
    </action>
    </item>
    </menu>
    <menu id="apps-office-libreoffice" label="LibreOffice">
    <item label="LibreOffice">
    <action name="Execute">
    <execute>libreoffice</execute>
    </action>
    </item>
    <item label="Base">
    <action name="Execute">
    <execute>libreoffice --base</execute>
    </action>
    </item>
    <item label="Calc">
    <action name="Execute">
    <execute>libreoffice --calc</execute>
    </action>
    </item>
    <item label="Draw">
    <action name="Execute">
    <execute>libreoffice --draw</execute>
    </action>
    </item>
    <item label="Impress">
    <action name="Execute">
    <execute>libreoffice --impress</execute>
    </action>
    </item>
    <item label="Math">
    <action name="Execute">
    <execute>libreoffice --math</execute>
    </action>
    </item>
    <item label="Writer">
    <action name="Execute">
    <execute>libreoffice --writer</execute>
    </action>
    </item>
    </menu>
    <menu id="apps-development-qt" label="Qt">
    <item label="Qt Assistant">
    <action name="Execute">
    <execute>assistant</execute>
    </action>
    </item>
    <item label="Qt Designer">
    <action name="Execute">
    <execute>designer</execute>
    </action>
    </item>
    <item label="Qt Linguist">
    <action name="Execute">
    <execute>linguist</execute>
    </action>
    </item>
    </menu>
    <menu id="apps-games-doom" label="DOOM">
    <item label="GZDoom">
    <action name="Execute">
    <execute>gzdoom</execute>
    </action>
    </item>
    <item label="GZDoom (Brutal)">
    <action name="Execute">
    <execute>gzdoom -file /usr/share/games/doom/brutalv017gzdoom.pk3</execute>
    </action>
    </item>
    </menu>
    <menu icon="gtk-execute" id="root-menu" label="Openbox 3">
    <item label="Run Application...">
    <action name="Execute">
    <execute>xfce4-appfinder</execute>
    </action>
    </item>
    <separator label="Applications"/>
    <menu id="apps-accessories-menu"/>
    <menu id="apps-development-menu"/>
    <menu id="app-games-menu"/>
    <menu id="apps-net-menu"/>
    <menu id="apps-multimedia-menu"/>
    <menu id="apps-graphics-menu"/>
    <menu id="apps-office-menu"/>
    <menu id="apps-fileman-menu"/>
    <separator label="System"/>
    <menu id="system-menu"/>
    <menu id="apps-term-menu"/>
    <menu id="apps-wine-menu"/>
    <separator/>
    <item label="Restart">
    <action name="Restart"/>
    </item>
    <item label="Log Out">
    <action name="Exit">
    <prompt>yes</prompt>
    </action>
    </item>
    </menu>
    </openbox_menu>
    Last edited by ZeroKnight (2012-11-09 08:05:29)

    I figured out the issue. I did have all three menus defined separately, and I linked to them the same way all the other menus were linked to the root menu:
    <menu icon="gtk-execute" id="root-menu" label="Openbox 3">
    <item label="Run Application...">
    <action name="Execute">
    <execute>xfce4-appfinder</execute>
    </action>
    </item>
    <separator label="Applications"/>
    <menu id="apps-accessories-menu"/>
    <menu id="apps-development-menu"/>
    <menu id="app-games-menu"/>
    <menu id="apps-net-menu"/>
    <menu id="apps-multimedia-menu"/>
    <menu id="apps-graphics-menu"/>
    <menu id="apps-office-menu"/>
    <menu id="apps-fileman-menu"/>
    <separator label="System"/>
    <menu id="system-menu"/>
    <menu id="apps-term-menu"/>
    <menu id="apps-wine-menu"/>
    <separator/>
    <item label="Restart">
    <action name="Restart"/>
    </item>
    <item label="Log Out">
    <action name="Exit">
    <prompt>yes</prompt>
    </action>
    </item>
    </menu>
    As you can see, all of them are defined, and then linked into the root window with the: <menu id="..."/> lines. I did the same with my Qt, Doom, and LibreOffice menus; defined them separately, then linked them into my other menus that way, ie. <menu id="apps-games-doom"/>
    Defined later, near the bottom of the file:
    <menu id="apps-development-qt" label="Qt">
    <item label="Qt Assistant">
    <action name="Execute">
    <execute>assistant</execute>
    </action>
    </item>
    <item label="Qt Designer">
    <action name="Execute">
    <execute>designer</execute>
    </action>
    </item>
    <item label="Qt Linguist">
    <action name="Execute">
    <execute>linguist</execute>
    </action>
    </item>
    </menu>
    Then "linked" earlier in the file, in the "Development" menu definition:
    <menu id="apps-development-menu" label="Development">
    <item label="GVim">
    <action name="Execute">
    <command>gvim</command>
    <startupnotify>
    <enabled>yes</enabled>
    <wmclass>GVim</wmclass>
    </startupnotify>
    </action>
    </item>
    <separator/>
    <item label="CMake">
    <action name="Execute">
    <execute>cmake-gui</execute>
    </action>
    </item>
    <item label="Meld">
    <action name="Execute">
    <execute>meld</execute>
    </action>
    </item>
    <item label="Kodos">
    <action name="Execute">
    <execute>kodos</execute>
    </action>
    </item>
    <menu id="apps-development-qt"/> <<-------- just like in the root window definition...yet it doesn't work here.
    </menu>
    Anyway...I tried what you said and just put the whole menu definition itself inside of the previous ones and it worked out, strangely enough. Maybe it's just an ordering error? The definitions did get pushed to the bottom, so I wonder if that was it. Oh well...simple enough fix. Thanks for the suggestion
    I feel somewhat silly, though I really don't know why that didn't work. I guess obmenu is a little misleading
    [EDIT]
    Interestingly enough, yes, ordering was the issue. I tried moving the sub-menu definitions to the top of the file, and kept the "links" where they were, and it worked out. So for clarity:
    Menus must be defined before linking them, OR just put the sub-menu definition inside the parent menu definition.
    Last edited by ZeroKnight (2012-11-09 08:05:04)

  • Spry Menu Bar 1.7 Rendering Variable background height based presence/absense of sub-menus

    First, let me thank those who have offered help on previous posts on this issue -- the suggestions have pointed me in new directions.
    However I am still having problems with the first menu item on the top level of a horizontal menu bar which (because it has no sub-menu) renders the background differently from the other main level items.  I have implemented suggestions, as you will see, by setting a class for menu items with sub-menus as per the suggestion, and then proceeding working with line height to make specific changes within that class.  However any changes appeared universally through the menu bar at all levels.
    Working from that suggestion, I tried establishing a class of "menubarhorizontal_no-sub-menu" and then adjusted the line height for that item.  Unfortunately it applied this change again to all items leaving a displeasing white gap between menu items in the drop down menus.
    I wanted to put out a call once more.  I realize that the problem is in determining which of the rules to style, but I seem to have exhausted the possibilities.  The latest version can be seen at www.aclco.org/testing/index.html which will provide a visual of the problem.  You can see it doesn't look much different than the original which is http://www.aclco.org/index.html.
    I am also including the code for the nav bar which is inserted as a library item into all the pages:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a class="MenuBarHorizontal_no-sub-menu" href="../index.html" title="Home">Home</a></li>
    <li><a class="MenuBarItemSubmenu" href="../about_aclco.html" title="ACLCO-ACJCO">ACLCO-ACJCO</a>
      <ul>
        <li><a href="../about_aclco.html#mission_mandate" title="Mission and Mandate">Mission and Mandate</a></li>
        <li><a href="../about_aclco.html#governance" title="Governance">Governance</a>
          <ul>
            <li><a href="../about_aclco.html#executive">Executive</a></li>
          </ul>
        </li>
        <li><a href="../by-laws_policies.html" title="By-Laws and Policies">By-Laws and Policies</a></li>
        <li><a href="../about_aclco.html#staff_volunteers" title="Staff and Volunteers">Staff and Volunteers</a></li>
        <li><a href="../public_documents.html" title="Public Documents">Public Documents</a></li>
      </ul>
    </li>
            <li><a class="MenuBarItemSubmenu" href="../about_Clinics_overview.html" title="About Community Legal Clinics">Community Legal Clinics</a>
              <ul>
      <li><a href="../about_Clinics_overview.html" title="About Clinics - Overview">Overview</a></li>
    <li><a href="../critical_characteristics.html" title="Critical Characteristics">Critical Characteristics </a></li>
    <li><a href="../what_clinic_do.html" title="What Clinics Do">What Clinics Do</a>
      <ul>
        <li><a href="../Advice+referrals.html" title="Advice and Referrals">Advice and Referrals</a></li>
    <li><a href="../case_work+legal_representation.html" title="Case Work and Legal Representation">Case Work and Legal Representation</a></li>
    <li><a href="../community_development.html" title="Community Development">Community Development</a></li>
    <li><a href="../public_legal_education.html" title="Public Legal Education">Public Legal Education</a></li>
    <li><a href="../law_reform.html" title="Law Reform">Law Reform</a></li>
      </ul>
    </li>
    <li><a href="../who_clinics_serve.html" title="Who Clinics Serve">Who Clinics Serve</a></li>
    <li><a href="../impacts.html" title="Impact on Clients and their Communities">Impact</a></li>
              </ul>
            </li>
            <li><a class="MenuBarItemSubmenu" href="../Members_Only/intranet_portal_page.html" title="Members Only">Members Only</a>
              <ul>
                <li><a href="../Members_Only/intranet_portal_page.html" title="ACLCO Intranet Pages">ACLCO  Intranet Pages</a></li>
                <li><a href="http://www.bulletinboards.com/message.cfm?comcode=ACLCO  " title="ACLCO Discussion Forum">ACLCO Discussion Forum</a></li>
              </ul>
            </li>
            <li><a class="MenuBarItemSubmenu" href="../contact_us.html" title="Contact Us">Contact</a>
              <ul>
      <li><a href="../contact_us.html" title="Contact Information">Contact Information</a></li>
    <li><a href="../links.html" title="Links">Links</a></li>
              </ul>
            </li>
          </ul>
    The spry framework coding  For the Horizontal Menu Bar is as follows:
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
        margin: 0;
        padding: 0;
        line-height: 23px;   
        list-style-type: none;
        font-size: 100%;
        cursor: default;
        width: auto;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
        z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
        margin: 0;
        padding: 0;
        line-height: 21px;
        list-style-type: none;
        font-size: 100%;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: auto;  /* This allows the width of the various top level menu items to adjust automatically to fit the contents of each menu item */
        float: left;
    ul.MenuBarHorizontal_no-sub-menu li
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: auto;  /* This allows the width of the various top level menu items to adjust automatically to fit the contents of each menu item */
        float: left;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: 1020;
        cursor: default;
        width: 8.2em;
        position: absolute;
        left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
        width: 200px; /* This establishes a fixed width for the drop down menus */
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
        position: absolute;
        margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
        left: auto;
        top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
        border: none; /* removes the grey border from around the sub-menu container */
    /* Menu items are a light gray block with padding and no text decoration NB: Remove - background-color: #EEE;  reset color from #333 to #FFF*, and establish a background image with repeat, Especially note that this only sets the top level items, i.e. those with no children sub-menus attached to them.*/
    ul.MenuBarHorizontal a
        display: block;
        cursor: pointer;   
        background-image:url(../ACLCO%20Graphics%20-%20Web%20site%20Parts/Navigation%20Bar%20Segm ent-Dark.png);
        background-repeat: repeat-x;
        background-color: #000088;  /*background color must exactly match the color of the bottom edge of the repeating background png so that if it runs over 39px in height their won't be any gaps of white. */
        padding: 0.5em 0.75em;
        color: #FFF;
        text-decoration: none;
    /* Menu items that have mouse over or focus have a blue background and white text; again reset thebackground-color: #3CC to equal the color of the bottom edge of the repeating png (see above). Set background image and repeat for a hover state.  However, this only sets hover states for top level menu items and sub-menus that have higher level items above them. If for example a menu has 3 levels it will not set for the 1st and 2nd level.  */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
        background-image:url(../ACLCO%20Graphics%20-%20Web%20site%20Parts/Navigation%20Bar%20Segm ent%20Light2.png);
        background-repeat:repeat-x;
        background-color: #2E35A3;
        color: #FFF;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
        background-image:url(../ACLCO%20Graphics%20-%20Web%20site%20Parts/Navigation%20Bar%20Segm ent%20Light2.png);
        background-repeat:repeat-x;
        background-color: #2E35A3;
        color: #FFF;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%)  Remove the background image that displays arrows and set the appropriate background image and repeat. */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
        background-image: url(../ACLCO%20Graphics%20-%20Web%20site%20Parts/Navigation%20Bar%20Segment-Dark.png);
        background-repeat:repeat-x;
        background-color: #000088;
        background-position: 95% 50%;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%)   */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
        background-image:url(../ACLCO%20Graphics%20-%20Web%20site%20Parts/Navigation%20Bar%20Segm ent-Dark.png);
        background-repeat: repeat-x;
        background-color: #000088;
        background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) This controls sub-sub-menu items in hover state. */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
        background-image:url(../ACLCO%20Graphics%20-%20Web%20site%20Parts/Navigation%20Bar%20Segm ent%20Light2.png);
        background-repeat:repeat-x;
        background-color: #2E35A3;
        color: #FFF;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically Controls fly-out menu items in hover or focus state.(50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
        background-image:url(../ACLCO%20Graphics%20-%20Web%20site%20Parts/Navigation%20Bar%20Segm ent%20Light2.png);
        background-repeat:repeat-x;
        background-color: #2E35A3;
        color: #FFF;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
        position: absolute;
        z-index: 1010;
        filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarHorizontal li.MenuBarItemIE
            display: inline;
            f\loat: left;
            background: #FFF;
    Finally, there is minimal css coding to help position the menu bar within the web page relative to the top of the page, and left edge of the web page.
    This is done with a div tag called Main Nav Contents.
    #Main_nav_contents {
        padding: 0;
        margin-top: 0px;
        height: auto;
        width: 950px;       
        padding-top: 275px; 
        padding-left: 35px;
    I would very much appreciate any further help that people can provide me.  It seems that the trick is to identify the appropriate rule; however that has thus far alluded me.
    Thanks,
    Steve Webster

    This will help http://www.dwcourse.com/dreamweaver/ten-commandments-spry-menubars.php#one

  • How do I use one song for all Theme sub-menus?

    I'm using IDVD '08.I have created a theme with 3 chapter selection sub menus. Is there any way to choose a single song that plays from start to finish (and then loops normally) regardless of which submenu you happen to be in? I know how to add the same song to every submenu, but the problem is that every time you go back and forth between the submenus the song starts again at the beginning. It's very annoying. Any help would be much appreciated.

    Hi
    No I don't think this is possibly with iDVD.
    Never seen a Professional DVD that behaves like that either - so my plain guess is that
    not even DVD Studio Pro would be able to do it.
    Never seen this function in Roxio Toast™ either.
    All of them starts the audio file from start when changing menu - as far as I know.
    Sorry
    Yours Bengt W

  • How do you make a transparent spry menu that has a background color on sub menus?

    Hi i am a total newbie at html and css scripting/coding and i've been working on creating a website of course because im here and i have search and search and i've found a few topics about this but none of them have what i want and it would be helpful if when you post the reply you explain it so hopefully i can add on and learn but i am trying to get the background color on the sub menus #1A1A1A and then the menu it self transparent here is my code it might make no sense at all since im a newbie ;P
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
              margin: 0 auto;
              padding: 0;
              list-style-type: none;
              font-size: small;
              cursor: default;
              width: 100em;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
              z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
              margin: 0;
              padding: 0;
              list-style-type: none;
              font-size: 18px;
              position: relative;
              text-align: left;
              cursor: pointer;
              width: 10.8em;
              float: left;
              visibility: visible;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
              margin: 0;
              padding: 0;
              list-style-type: none;
              font-size: 100%;
              z-index: 1020;
              cursor: default;
              width: 8.2em;
              position: absolute;
              left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
              left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
              width: 15em;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
              position: absolute;
              margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
              left: auto;
              top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    ul.MenuBarHorizontal ul
              border: 0px solid #1A1A1A;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
              display: block;
              cursor: pointer;
              background-color: transparent;
              padding: 9px;
              color: #FFF;
              text-decoration: #1A1A1A;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
              font-weight: bold;
              font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
              font-size: 18px;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
              background-color: #0048ff;
              color: #EEE;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
              background-image: url(SpryMenuBarDown.gif);
              background-repeat: no-repeat;
              background-position: 95% 50%;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
              background-color:#1A1A1A;
              background-repeat: no-repeat;
              background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
              background-color:#1A1A1A
              background-repeat: no-repeat;
              background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
              background-image: url(SpryMenuBarRightHover.gif);
              background-repeat: no-repeat;
              background-position: 85% 50%;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
              position: absolute;
              z-index: 1010;
              filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
              ul.MenuBarHorizontal li.MenuBarItemIE
                        display: inline;
                        f\loat: left;
                        background: #222222;

    Hi and welcome -
    Start with fixing this missing semicolon  (in red)
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
              background-color:#1A1A1A;
              background-repeat: no-repeat;
              background-position: 95% 50%;
    You will find you will get faster, more accurate help from us if you upload your test page and any dependent files to your server and post a link here.  That way we can examine ALL your code

  • How to add sub menus in dreamweaver CC using Jquery Tabs

    How can I add sub menus to a Menu Bar in DreamWeaver CC. I know how to do it in CS6 using Spry Menu bar but it's just not as simple as that was now in CC.
    Any Help is appreciated!!

    jQuery tabs is a replacement for Spry tabs, not the Spry menubar.
    Stella333 found a good replacement for the Spry menubar http://forums.adobe.com/thread/1247870

Maybe you are looking for

  • Computer crashes and sound loops while playing a game

    My problem is similar some others i have seen in this forum and others. I have been struggling with this issues since i made the computer.  The problem is while playing counter-strike after around 30 min to 2 hours the screen freezes and the sound lo

  • Create an Action: insert square box in a corner of the images

    Hello! I have a problem with the Actions of Photoshop, I wish you can help me: I need to put a square box (or a point, some kind of mark) in the corner of the bottom-left in hundreds of images, so I think an Action is the best way to do it but I don'

  • Uninstalling Academic version of Logic Express

    I have an academic copy of Logic express on my Macbook pro and retail version on my iMac. I purchased Logic Pro 8 upgrade and just found out I can only upgrade my retail version. Any ideas on how to uninstall the Academic version from my Macbook Pro

  • Shift key appears to be stuck...

    I just recently installed Snow Leopard on my MacBook Air, and I can no longer type numbers. It seems as if the Shift key is being pressed. Any advice?

  • Workflow to show package contents

    I have 190 'incremental backup packages' created by Apple's Backup software. I need to search within those packages for all files with a certain file extension, but it's a fairly laborious process to open each one: 1. Right-click each and 'show packa