menu

Removing the navigation menu from the node menu settings in Drupal

江枫思渺然 提交于 2020-01-13 10:56:30
问题 How do you remove the "Navigation" menu (and others) from the menu settings on the node edit form? I suspect this can be achieved somehow using a hook like module_form_alter, but am not sure how to implement it. The motivation for this is to remove the confusion our users have when menus other than the standard primary links menu is in the drop down. The aim is to restrict the options to just the menus they will need/want to post content to. This question is in part related to an earlier

Java Swing Mac OSX Preferences Menu

♀尐吖头ヾ 提交于 2020-01-13 09:11:11
问题 I'm trying to add the Preferences menu to my Java Swing application and it's proving a bit of a nause. I have read many posts and articles on this and it sounds easy but... I see references to com.apple.eawt.Application in the examples I have found but when I try to import it in Eclipse Indigo I get an error: Access restriction: The type Application is not accessible due to restriction on required library /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar Any ideas? I

Java Swing Mac OSX Preferences Menu

笑着哭i 提交于 2020-01-13 09:09:19
问题 I'm trying to add the Preferences menu to my Java Swing application and it's proving a bit of a nause. I have read many posts and articles on this and it sounds easy but... I see references to com.apple.eawt.Application in the examples I have found but when I try to import it in Eclipse Indigo I get an error: Access restriction: The type Application is not accessible due to restriction on required library /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar Any ideas? I

How to prevent Javascript Menu from getting hidden under Flash Video (SWFObject )

女生的网名这么多〃 提交于 2020-01-12 18:48:49
问题 How to prevent Javascript Menu from getting hidden under Flash Video (SWFObject ). I am using Open Flash Chart and the chart is displaying fine in my php shoppping cart, but my javascript menu is getting hidden behind the Flash Chart. How to correct this problem? Here is my script code: <script type="text/javascript"> swfobject.embedSWF( "open-flash-chart.swf", "Dashboard_Chart", "800", "400", "9.0.0", "expressInstall.swf", {"data-file":"ofc-chart.php"} ); </script> UPDATE (Solved): I found

How to prevent Javascript Menu from getting hidden under Flash Video (SWFObject )

时光毁灭记忆、已成空白 提交于 2020-01-12 18:48:38
问题 How to prevent Javascript Menu from getting hidden under Flash Video (SWFObject ). I am using Open Flash Chart and the chart is displaying fine in my php shoppping cart, but my javascript menu is getting hidden behind the Flash Chart. How to correct this problem? Here is my script code: <script type="text/javascript"> swfobject.embedSWF( "open-flash-chart.swf", "Dashboard_Chart", "800", "400", "9.0.0", "expressInstall.swf", {"data-file":"ofc-chart.php"} ); </script> UPDATE (Solved): I found

Display MYSQL Data From a Menu

孤街醉人 提交于 2020-01-11 14:23:41
问题 I have a MYSQL database with a number of fields such as property, bedrooms, size etc I have two dropdown list with data that is contained within the database When submitting the options I want a new page to open displaying the results. I am getting the error message mysql_fetch_assoc(): supplied argument is not a valid MySQL and have no idea how to fix this! help much appreciated...I know about SQL injections and looking to rectify this after I get this section working first HTML <form method

hover-menu in right side of fixed div

亡梦爱人 提交于 2020-01-11 13:10:28
问题 I have a div with a fixed position (a top panel) which shall also contain a settings menu at the far right (currently via floating). When hovering over the settings-image, I want to display a menu below the image. I want the menu to be aligned to the right side just like the image. <div id="panel" style="position:fixed"> <panel-entry 1> <panel-entry 2> <panel-entry n> <div id="settings" style="float:right/snapped to the right side> <img src=settings> <ul> <li>setting 1</li> <li>setting 2</li>

Access Mac OS X Application Menu from Java

北城余情 提交于 2020-01-11 09:14:09
问题 I'm writing a Java application designed for all platforms, but specifically, I am working on OS X appearance and integration (I use NetBeans on my MacBook Pro). I'd like to access the application's menu, i.e. the bolded menu named after the application. I want to register listeners for the About and Quit items, as well as show the Preferences item. I wouldn't mind adding a few more items of my own, too. So, how do I do this? I have seen previous posts refer to OSXAdapter, but the geniuses at

css3 menu with inverse rounded corners

半城伤御伤魂 提交于 2020-01-11 07:02:06
问题 I designed a navigation menu which looks like the image here: I want to code it with css3 rounded corners and box-shadows, not using any images. Problem is the rounded corner to the left of the first menu-item, and the one to the right of the menu... I call it a "reverse" rounded corner... It should have to change color on :hover . Is there any way to get this done in css only? And how? 回答1: HTML <div class="menu"> <div class="outer_bg_left"> <div class="outer"> <div class="outer_shadow"> <

How to implement the “Edit” menu with “Undo”, “Cut”, “Paste” and “Copy”?

自古美人都是妖i 提交于 2020-01-11 04:48:09
问题 Greetings, for one of my applications I'm trying to implement an "Edit" menu. This menu usually has the standard-entries Undo , Cut , Copy and Paste . This menu is not there by default, and users seem to expect it especially on Mac OS X. Is there a an easier way of implementing this, without doing so in every widget manually? Since most widgets have the copy/paste/undo mechanism already implemented via shortcuts, I'd like to provide a few simple menu actions that call them as well. The