menu

Loop through multi-dimensional array and remove certain keys

Hi! I've got a nested tree structure which is based on the array below: Array ( [1] => Array ( [id] => 1 [parent] => 0 [name] => Startpage [uri] => 125 [basename] => index.php [child] => ) [23] => Array ( [id] => 23 ...

Do you know a website that implements a menubar at an angle between 0 and 90 degrees?

I was asked to implement a menu bar that is neither horizontal nor vertical. Here are two example buttons: This is something new to me, so to learn how to make this work I'm looking for a site (or better yet, a tutorial) that uses a similar menu bar. Any ideas? ...

Issues after customizing the Superfish drop-down menu

I've been tinkering around with the excellent Superfish drop-down menu to fit my needs. Here's the result. Still, there are two oddities I need to fix. Since I changed the font family and font size used for the items in the menu bar, the drop-down menus are aligned incorrectly a few pixels lower than where they should be. Secondly, whe...

Python Game using pyGame with Window Menu elements

Here's the deal. I'm trying to write an arkanoid clone game and the thing is that I need a window menu like you get in pyGTK. For example File->(Open/Save/Exit) .. something like that and opening an "about" context where the author should be written. I'm already using pyGame for writting the game logic. I've tried pgu to write the GUI ...

jquery menu with saving position

is any menu like treeview (open\hide each node), but after postback it restore the state ? ...

Java GUI File Menu

I have a GUI with a Menu named file how do I Add a file open and close function to the program. If the program is in the encrypting mode, it should load/save the cleartext text area. If the program is in decrypting mode, it should load/save the ciphertext area. ...

Stop VCL Child Controls from Inheriting Parent Popup Menu

I have a Delphi 2007 VCL TPanel with a TPopupMenu assigned to it. There are some TEdit controls on the panel. The edits inherit the popup menu of the parent panel. I want to not allow this popup inheriting, so the edits will show the default Windows TEdit popup menu with Copy, Cut, Paste, etc., but have not found a way to do it yet. T...

Cake php menu generation

hai everyone........ I am trying to generate dynamic menu according to the user permission given with ACL component in cake php.. ie., if a user logins, i need to check which all actions are permitted for that specific user and according that list of actions i need to generate menu can any one help me to get all the permitted actions ...

PHP equivalent to ASP.net Menu

Hi, I always use ASP.NET but I'm making a site of my own with a friend of mine so we don't have the money to use webhosts which can use asp.net & sql server. So I'm planning on using a free php based webhost. I actually already created my entire site in asp.net, so I'm researching in php equivalents. I managed to find as good as anything...

Drupal - how to add add same page to two menus?

How can I add same callback to 2 different menus? function my_callback_menu(){ $items = array(); $items['my_callback'] = array( 'title' => t('My title'), 'menu_name' => 'menu-my-menu', 'page callback' => 'my_callback', 'access arguments' => array('access content'), ...

jQuery CSS menu not selecting the active link

What is wrong with this and how could I fix it? I have a CSS menu (horizontal) that I want the background and font to be changed when one of the items is selected. I found another post that gave me some jQuery code to help make it work, and I thought I had it coded right, but when I click on an item to change its class it adds the clas...

Why do i get a 403 error when viewing a Drupal custom menu item via clean url?

Hi all, I've created a custom menu item in my Drupal 6 website by defining it in a custom module. This is an extremely simple MENU_NORMAL_ITEM menu item. The menu item is defined as /** * Implementation of hook_menu(). */ function menu_test_menu() { $items['menu_test'] = array( 'title' => 'Menu Test', 'page callback' => 'me...

MainMenu with Images (WinForms, C#)

Hi All I have a MainMenu in my app and I would like to have little icons relevant to the Item in each menu. But the MainMenu control does not support this. I would use the MenuStrip control, though that is a pretty ugly option in my opinion. Does anybody have any suggestions? Are there any free/open source alt's out there, or would it...

CSS Menu Problems with Safari and Chrome

Hi, trying to fix a CSS bug for some code that someone else wrote. I'm no CSS expert, so I'm having trouble trying to find what is giving me this problem. This page is supposed to have 4 main menu buttons at the top. The user can hover over each and it will display a sub menu. This work fine in FF and IE, but in Safari and Chrome the...

Controllling Drupal's active/active-trail with duplicate menu items

I'm developing a site that requires some duplication of links within the menu: Section A -- Introduction -- Testimonials Section B -- Introduction -- Testimonials Testimonials -- Section A -- Section B So 'Section A > Testimonials' and 'Testimonials > Section A' point to the same node. But regardless of w...

BlackBerry - Custom menu toolbar

Hi I'm a beginner in BlackBerry programming, I need to replace in my application the default menu (when you press the menu button) by a custom menu, horizontal. The best to describe is I want the same result as the WeatherEye application for BlackBerry... I know how to create the default menu, but this one I have no idea! Thank you,...

javascript pop-up menu help

I am working on a project similar to a table where the user will be able to add rows. Right now there is just one row type available but I would like to give the user the ability to select from a list without changing the layout of the page. So, I put together a menu that appears on mouseover of the 'add row' link and disappears on mou...

PHP Menu Items Count then add under more button

Hello, I use the bellow code to load the main menu elements from some CMS, the present code is perfect except that it loads ALL the main items on a single line of menu - which will make the width of it unusable in any centered design (under 1000px).. I want to change this script so after 15 main elements will add a "MORE" button under w...

PHP Dynamic Count & Limit Menu items

Hello, I want to modify this code which works pretty good but (or I don't know because I'm new with php) I can't limit the number of li's displayed for the main elements in the menu. The actual code will echo all elements it finds, I want to limit the times <li><a href='{$sLink}' {$sOnclick} target='_parent'>{$sPictureRep}{$sText}</a> ...

IE8 Accordion menu is throwing out some weird bugs

I have an accordion side menu in my latest project that works in all modern browsers properly, apart from ie8. In Ie8, using the menu and clicking results in random padding and margins to be added and sometimes disappear for no apparent reason. I can't find any bit of jquery code that would potentially cause this to happen which is a p...