Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3760424
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:28:10+00:00 2026-05-19T10:28:10+00:00

I have a menu-button that I want to remove the drop-shadow from. I would

  • 0

I have a menu-button that I want to remove the drop-shadow from. I would like to not have to instantiate a menu object first (since it requires me to specify a div in the DOM to attach it to). I am able to instantiate a menu in the JS, but when I try to remove the drop shadow via: this.menuButton.getMenu().cfg.setProperty('shadow', false); the drop shadow still appears. I checked the cfg object in the JS debugger and shadow is set to false, but the shadow still appears.

Another option would be to remove the shadow div from the dom, but that doesn’t seem like the right thing to do.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T10:28:11+00:00Added an answer on May 19, 2026 at 10:28 am

    I did eventually create a div in my DOM to hold my menu. I was wary at first because my layout is not very robust (we outsourced to a graphic designer and have been trying to integrate his work with our code); this was why I didn’t want to introduce a div into the DOM.

    The key for me was to include the div in a place where it wouldn’t affect the layout. Originally I had something that looked like this:

    <input> type="button" id="srchType" />
    <input type="text" id="first-name" value="First Name" />
    <input type="submit" id="profiles-search-submit" value="Search" />
    

    I inserted the div between two of the inputs; this screwed up my layout. The key was to insert the div before or after; this wouldn’t screw up my layout. YMMV, depending on how sensitive your DOM is to changes; I hope this helps someone out if they’re wondering what they should do.

    After you do this (create your div) you can create a YUI Menu object like so:

    var searchMenuItems = 
      [{ text: "First Name", value: 'firstName', onclick: {fn: onMenuItemClick}},
       { text: "Last Name", value: 'lastName', onclick: {fn: onMenuItemClick}}];
    
    var srchTypeMenuConfig = { shadow: false,
                               effect: { 
                                effect: YAHOO.widget.ContainerEffect.FADE,
                                duration: .25 
                               }
                             };
    this.srchTypeMenu = new YAHOO.widget.Menu(this.searchMenuEl, 
                                              srchTypeMenuConfig);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hope this is any easy one. I have a view that I want
I have a button that I touch to enter a game mode. All buttons
I'm new to JQuery, so please bear with me =) I have a Menu
I am brand new to Jquery and have run into something that if answered
I have a database, a ListView , and a CustomCursorAdapter that extends CursorAdapter .
I have a dropdown menu system setup such as this... This is the scripting
I have a root view which contains a table and a button. When I
I'm trying to create a transparent (no button background) ImageButton that has a custom
I develop a application and in which i have a Menu option which i
I have a menu on my page which changes the source of a particular

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.