Hey all I have a problem thats driving me crazy. I have a search area that contains html select items. The catch is that the search container div needs to be hidden and shown using JS and the select menu is taller than the containing div. Confusing I know but take a look a the screen shot.
div showing select objects

div showing select open

The div hides and shows just fine (all browsers) and if you open a select menu and keep your mouse inside the list the div stays open as long as your are over the menu list in FF, Opera and Safari. In those three browsers the div goes away if you mouse out of the div or the menu as they should.
However, In IE 6/7 as soon as you roll over an item in the select object it hides the container div. I've tried every work around I can think of including setting an open action on the select getFocus and mouseOver. I've even tried to extend the size of the background div when the select receives focus. Nothing seems to work.
Here's the minimal jQuery to open/close the div.
$('#searchBtn').hover(
function() {
$(this).css('z-index', '75');
$('div.searchOpen').css('display', 'block');
},
function() {
$(this).css('z-index', '0');
$('div.searchOpen').css('display', 'none');
});
-
- $('#searchBtn').hover(
- function() {
- $(this).css('z-index', '75');
- $('div.searchOpen').css('display', 'block');
- },
- function() {
- $(this).css('z-index', '0');
- $('div.searchOpen').css('display', 'none');
- });
-
Any ideas or examples would be much appreciated since I can't seem to ask Google the right questions to get any results about this.
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com