Solved

Images & Drop Downs/Selects

Posted on 2003-10-22
3
154 Views
Last Modified: 2010-04-09
I have navigation menu with images that are appearing underneath my drop down boxes which are near where the menus are to unfold.  

Here's the question . . .
Is it possible to display an image over a select?
If not do you have any good samples of how to perform a select with
DHTML so we can pop up an image over it.
0
Comment
Question by:kbsitz
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
superslamwich earned 25 total points
ID: 9603386
better idea, just hide the selects when dropping the menu.  DHTML selects are very confusing and require a lot of code that is unecessary if you just use a normal select and hide it:

<script type='text/javascript'>
<!--

  function DropMenu()  {               //This is whatever function drops the menu
    for(i=0;i<document.childNodes.length;i++)  {
      if(document.childNodes[i].tagName == "select")  {
        document.childNodes[i].style.visibility = "hidden"
      }
    }

    //Rest of your function goes here

  }

  function unDropMenu()  {
    for(i=0;i<document.childNodes.length;i++)  {
      if(document.childNodes[i].tagName == "select")  {
        document.childNodes[i].style.visibility = "visible"
      }
    }

   //Rest of the function here

  }

{Slam}
0
 

Author Comment

by:kbsitz
ID: 9606443
excellent, i will try it
0
 
LVL 3

Expert Comment

by:superslamwich
ID: 9610490
Happy to help ;-)

{Slam}
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

4 Experts available now in Live!

Get 1:1 Help Now