473,397 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

this site overcomes the "select / z-index / IE" issue

I know this issue is discussed frequently, but all the threads end
with, "There is no way around this... this is how IE is designed."

Well, I found a site that has completely solved this problem. It's not
hiding the entire SELECT element, or using some other method to
simulate the SELECT box. It's using real SELECT boxes, and even if the
menu layer only covers half of the SELECT box, it displays it
correctly.

I tried looking in the source, but I can't figure out how it does it.
Can anyone figure it out? The source code is very clean. I found some
code that checks for SELECT elements and hides them if overlapping, but
that doesn't explain how it can hide half of the SELECT element.

Open this site with IE, and mouse over the menus. You will be amazed:
http://titantv.com/TTV/Grid/Grid.aspx

Jul 23 '05 #1
3 1963
> I tried looking in the source, but I can't figure out how it does it.
Can anyone figure it out? The source code is very clean. I found some
code that checks for SELECT elements and hides them if overlapping, but
that doesn't explain how it can hide half of the SELECT element.


I've narrowed it down to this include file, which unfortunately, is not
easy to read:

http://titantv.com/scripts/menu/menu...6DHTML.js.aspx

It appears that this was generated by this professional software:
http://www.coalesys.com/products/mer...es/webmenu.asp

One of the features listed is "Cover IE Select Boxes". =) I just wish I
could figure out how they do it!

Jul 23 '05 #2
I couldn't fully understand the code, but I did get an idea while
trying to decipher the code. I tested my idea, and it worked!

You can cover up an IE select box with an iframe. So whenever you
display a layer menu with a div tag, you place an iframe of the exact
size and position underneath it. The iframe will automatically block
out anything below, even PARTIAL SELECT BOXES!

Here's the concept:

div layer menu: z-index: 20
iframe: z-index: 10
select: z-index: 0

Jul 23 '05 #3
hi,
Good job!!

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Phil Powell | last post by:
Has anyone here ever done a case where you have a select multiple form element and you have to do both server-side and client-side validation? I am honestly not sure how to do it in Javascript (I...
23
by: ian justice | last post by:
Before i post actual code, as i need a speedyish reply. Can i first ask if anyone knows off the top of their head, if there is a likely obvious cause to the following problem. For the moment i've...
0
by: Michael | last post by:
I have a problem forcing files to download. If I select Save the document is saved with no problems. If I select "Open" the document is empty or I get a "File not found" error from the application...
10
by: serge | last post by:
Using "SELECT * " is a bad practice even when using a VIEW instead of a table? I have some stored procedures that are identical with the difference of one statement in the WHERE clause. If I...
2
by: google | last post by:
Hello everyone, I am having an issue using the "Multi Select" option in a list box in MS Access 2003. I am making a form that users can fill out to add an issue to the database. Each issue can...
0
by: Ross Marchant | last post by:
Hi all, I wrote a simple server console application, and i notice that if I click on the console window is stops processing because the window is in a text select mode. Is there anyway to turn...
3
by: divya | last post by:
Hi, I have a table tblbwday with 2 fields Name and Birthday.I have written this script for displaying evryday names of the people on that day. <% set objConn...
0
by: mafandon | last post by:
Hello all... My application uses custom reports from Microsoft's report viewer and not Crystal Reports. My understanding is there is no way to make the printdialog select a different printer...
2
by: junkblog747 | last post by:
What will the expression "/.." in the attribute select="/.." return? I just inherited a huge stylesheet to maintain which has a lot of parameters such as <xsl:param name="myParam"...
1
by: subbarao.puvvada | last post by:
Hi All, I am working on a Windows application, Which browser control on main form itself develped in .NET 1.1. Recently we have migrated it to .NET 2.0. It's combination of Web pages and .NET...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.