Afficher un message
Vieux 14/03/2008, 23h34   #6
Jonathan N. Little
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: IE 6: select menus will not let divs cover them

Steve wrote:
> On Mar 14, 2:08 pm, "Jonathan N. Little" <lws4...@central.net> wrote:
>> Steve wrote:
>>> I was hoping for a third solution, which I believe I
>>> wrote in my original post. Thanks anyway

>> Okay, don't use IE ;-)

>
> If you can sell my boss and our clients on that I would be happy to
> comply!


How about toggling their visibility? Here is a rudimentary example. Does
require JavaScript

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta http-equiv="content-language" content="en-us">

<title>Blinker</title>

<script type="text/javascript">
function blinkme(state){
var target=document.getElementById('blink');
if(state){
target.style.visibility="visible";
}
else{
target.style.visibility="hidden";
}
}
</script>

</head>
<body>

<form>
<div id="blink">
<label for="fred">Bink in and out</label>
<select name="fred" id="fred">
<option>foo</option>
<option>bar</option>
<option>baz</option>
</select>
</div>
<div>
<input type="button" value="Bink in" onclick="blinkme(1)">
<input type="button" value="Bink out" onclick="blinkme(0)">
</div>
</form>

</body>
</html>



--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
  Réponse avec citation
 
Page generated in 0,06213 seconds with 9 queries